json 2.0 bug: wrong behavior for parsing empty value
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Medium
|
Paul J. Lucas |
Bug Description
Parsing an empty value has wrong behavior for both JSON mappings (Snelson and JSON-ML).
Please see failing tests:
- test/rbkt/
- test/rbkt/
For instance in zorba/json/
import module namespace json = "http://
json:parse(<a/>)
Should raise error(s) http://
But instead Zorba returns a result.
For test/rbkt/
import module namespace json = "http://
let $options :=
<options xmlns="http://
<json-format value="
</options>
json:parse(
Zorba returns http://
instead of http://
Changed in zorba: | |
status: | New → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
Renamed the tests to conform to all the rest, i.e., contain "parse" or "serialize" in the test name. Also, again, the second test is invalid XQuery since it's missing a "return".