zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #04014
[Bug 920720] Re: json 2.0 bug: error raised when passing invalid JSON option
Your test in illegal XQuery: you need a "return" before the
json:parse(). Once the "return" is added, the test fails with an invalid
schema validation error which is correct.
This test wrong and this bug is bogus and should be closed.
** Changed in: zorba
Status: New => Invalid
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/920720
Title:
json 2.0 bug: error raised when passing invalid JSON option
Status in Zorba - The XQuery Processor:
Invalid
Bug description:
When trying to parsing a valid JSON string with invalid JSON option parameter the error raised is:
http://www.w3.org/2005/xqt-errors:XPST0003:
In order to raise a more useful error message saying that the options are not set correctly.
Please note that setting the wrong options will happen very often due to the changing of the way the options were set in JSON 1.0 and JSON 2.0.
For instance adding try{} catch {} inside the validation of the
options will do the trick.
Please see added failing test
test/rbkt/zorba/json/json-invalid-option-parameter
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/920720/+subscriptions
References