Indeed, I discovered it after filing the bug entry.

On Sun, May 13, 2012 at 5:40 PM, Paul J. Lucas
<998...@bugs.launchpad.net> wrote:
> FYI: Your JsonML is illegal. Zorba supports only the array form of
> JsonML. There's still a bug in that I didn't detect this, but that's
> easy to fix. The correct result should be an error.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/998757
>
> Title:
>  Object form of JsonML causes crash
>
> Status in Zorba - The XQuery Processor:
>  In Progress
>
> Bug description:
>  The following query:
>
>  import module namespace json = "http://www.zorba-
>  xquery.com/modules/converters/json";
>
>  let $opt := <options 
> xmlns="http://www.zorba-xquery.com/modules/converters/json-options";><json-format
>  value="JsonML-array"/></options>
>  let $json := '{"name": "msg", "args": ["<div><span>@wcandillon:</span> 
> parse</div>"]}'
>  return
>    json:parse($json, $opt)
>
>  Returns:
>  <?xml version="1.0" encoding="UTF-8"?>
>  Zorba Internal Fatal Error in 
> /Users/wcandillon/tmp/zorba/src/store/naive/node_items.cpp:2908:
>  "!ns.empty() || prefix.empty()": condition failed: prefix = 
> <div><span>@wcandillon ns =
>  Abort trap: 6
>
>  Example:
>  http://www.zorba-xquery.com/html/demo#qCL4/2QZzsmiSyPv6SjmdZH025s=
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zorba/+bug/998757/+subscriptions

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/998757

Title:
  Object form of JsonML causes crash

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  The following query:

  import module namespace json = "http://www.zorba-
  xquery.com/modules/converters/json";

  let $opt := <options 
xmlns="http://www.zorba-xquery.com/modules/converters/json-options";><json-format
 value="JsonML-array"/></options>
  let $json := '{"name": "msg", "args": ["<div><span>@wcandillon:</span> 
parse</div>"]}'
  return
    json:parse($json, $opt)

  Returns:
  <?xml version="1.0" encoding="UTF-8"?>
  Zorba Internal Fatal Error in 
/Users/wcandillon/tmp/zorba/src/store/naive/node_items.cpp:2908:
  "!ns.empty() || prefix.empty()": condition failed: prefix = 
<div><span>@wcandillon ns =
  Abort trap: 6

  Example:
  http://www.zorba-xquery.com/html/demo#qCL4/2QZzsmiSyPv6SjmdZH025s=

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/998757/+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