jsoniq: SourceFinder::findLocalNodeSources missing json expressions

Bug #1047538 reported by Matthias Brantner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Markos Zaharioudakis

Bug Description

The function SourceFinder::findLocalNodeSources doesn't handle JSONiq expressions in its switch. Hence, the default assertion is triggered and a query might fail. This can be reproduced using the following example:

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

declare function local:foo()
{
  {|
     for $i in 1 to 3
     return { xs:string($i) : $i }
  |}
};

r:eval-s('local:foo()')

Changed in zorba:
status: New → In Progress
Changed in zorba:
status: In Progress → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.