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

unparse of choices not working properly - eventUnparserMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0, 2.3.0, 2.4.0, 2.5.0
    • 2.5.0
    • Back End, Middle "End"
    • None

    Description

      Still isolating the bug, but from dev at daffodil email:

      eventUnparserMaps are not being properly populated.

      Given an incoming infoset event these maps steer the unparser to select the correct choice branch to unparse.

      In the schema for mil-std-2045 version 0.0.4, there is a choice between control_release_marking_D1 and control_release_marking_C, so the choice branch map should be a table matching those elements to corresponding branches in the schema.

      But the eventUnparserMap contains only a mapping for control_release_marking_C.

      There is no test in the mil-std-2045 schema project itself that runs into this bug.

      There is a test in the vmf project which runs into this (The quite old master branch, which I am updating to use mil-std-2045 version 0.0.4 headers). The test is of a mil-std-2045-header-rev-D1, with a VMF message payload. This test has the control_release_marking_D1 element in it, which is the correct element given that the header says it is rev D1. But the unparser looks for only control_release_marking_C.

      The VMF test is test_K07_1.

      Attachments

        Issue Links

          Activity

            People

              mbeckerle Mike Beckerle
              mbeckerle Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 40m
                  40m