Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2069

Unparser interaction of outputValueCalc with hexBinary with following bitOrder LSBF element.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0
    • Back End
    • None

    Description

      I don't know if we should block release 2.3.0 for this fix or not.

      It seems like a quite serious issue. It was discovered because one of the unit tests of mil-std-2045 schema fails now on the 2.3.0-RC1. test_2045msghdr2 fails now.

      I isolated this and created a test in daffodil-test module.

      When in bitOrder="leastSignificantBitFirst", a hexBinary element seems to interact with the following element, but only in the case where there is an outputValueCalc.

      The situation occurs when you have a length element which has an OVC that gets the valueLength of a hexBinary element following it. In this case, parsing works fine, but unparsing it seems that the bitOrder LSBF after the hexBinary element is lost. The bits are positioned in MSBF position, not LSBF.

      If you replace the hexBinary element with a string, the problem does not occur.

      See test test_ovcHexBinaryLSBF1

       

      Attachments

        Issue Links

          Activity

            People

              slawrence Steve Lawrence
              mbeckerle Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m