Public bug reported:

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

** Affects: zorba
     Importance: Medium
     Assignee: Paul J. Lucas (paul-lucas)
         Status: New

-- 
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:
  New

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

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to