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

escapeChar same separator not behaving as expected (parsing)

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • 1.1.0
    • Unparsing
    • None

      I wrote an unparser test case for the scenario when an escapeChar is the same as the separator. This test behaves as expected. However, the parser equivalent does not.

      Input:

      test#double te##st

      I would expect the first # to separate the two elements. The second would escape the third, resulting in:

      <e1>test</e1>
      <e2>double te#st</e2>

      However, the result is the following:

      <e1>test</e1>
      <e2>double te</e2>

      See test parseDelimitedEscapedString05
      in the following files:
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section07/escapeScheme/escapeSchemeUnparse.tdml
      daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section07/escapeScheme/TestEscapeSchemeUnparseDebug.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 - 51 minutes
                  51m