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

complex type with lengthKind 'explicit' and discriminator interaction

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • 2.0.0
    • 2.0.0
    • Back End
    • None

      Found when

      <element ref="foo"...>
         <dfdl:discriminator>{ ../foo/bar eq 2 }</dfdl:discriminator>
      </element>
       
      <element name="foo" dfdl:lengthKind="explicit" dfdl:length="75" >
         .... complex type contains child bar
      </element>

      Given hundreds of bits this was spuriously saying that there were "insufficient bits for elmeent foo. only 7 found but 75 required" So it doesn't create element foo, but evaluates the discriminator anyway, which fails with a runtime SDE (another bug - separate ticket).

      This bug is about the spurious length limit of 7 bits. That's just wrong in this situation.

      This occurred in a dense bit packed format. Not publishable, so a test case that mimics it needs to be created.

              dthompson David Thompson
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: