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

DPath: Need more specific error message for invalid predicates

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: s15
    • Fix Version/s: deferred
    • Component/s: Diagnostics, Usability
    • Labels:
      None

      Description

      DPath only allows predicates as integer expressions to index arrays. With an invalid test, a Schema Definition Error is thrown but it seems to be trying to parse the predicate as a path and giving the error message that the element was not found.

      [error] Test edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressionsDebug.test_predicate_02 failed: 
      java.lang.Exception: Schema Definition Error: No element corresponding to step b found.

      See tests:
      test_predicate_02
      test_predicate_03

      In files:
      daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressionsDebug.scala
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/expressions.tdml

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              efinnegan Elizabeth Finnegan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Tasks

                  Progress: 
                   0/0