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

occursCount function fails when there is only 1 occurrence

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s12
    • None
    • None
    • None

      Whenever the occursCount function should return the value of one, this error is seen instead:

      [error] Test edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressions.test_occursCount_1b failed: java.lang.Exception: Runtime Schema Definition Error: dfdl:occursCount did not receive a NodeSeq back, check your path.

      The exact same schema works when occursCount is greater than 1.

      See tests:
      occursCount_1b
      occursCount_3b
      in the following files:

      1. modified: daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/Functions.tdml
      2. modified: daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressionsDebug.scala
      3. modified: daffodil-test/src/test/scala/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressions.scala

              efinnegan Elizabeth Finnegan
              jchab Jessie Chab
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 minute
                  1m