You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2019/12/26 14:49:00 UTC

[jira] [Created] (DAFFODIL-2259) unparse of choices not working properly - eventUnparserMap

Mike Beckerle created DAFFODIL-2259:
---------------------------------------

             Summary: unparse of choices not working properly - eventUnparserMap
                 Key: DAFFODIL-2259
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2259
             Project: Daffodil
          Issue Type: Bug
          Components: Back End, Middle &quot;End&quot;
    Affects Versions: 2.5.0
            Reporter: Mike Beckerle
            Assignee: Mike Beckerle
             Fix For: 2.5.0


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)