Public bug reported: 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= ** Affects: zorba Importance: Undecided Assignee: Paul J. Lucas (paul-lucas) Status: New ** Changed in: zorba Milestone: None => 2.5 ** Changed in: zorba Assignee: (unassigned) => Paul J. Lucas (paul-lucas) -- 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: JSON Module crash Status in Zorba - The XQuery Processor: New 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