Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1660

Expression with sub paths to not evaluate correctly

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • 2.0.0
    • Back End
    • None

      A user has reported an error in which we have a expression like so:

      { ../../foo[../bar] }

      In this case, DPath is able to successfully traverse the ../../foo expression, setting currentNode to foo. But when it tries to execute the ../bar subexpression, it uses the current node as it's context. The ../bar subexpression should be executed with the original context, but is instead executed with a currentNode of foo, which causes a failure.

              dthompson David Thompson
              slawrence Steve Lawrence
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: