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

Unparse: dfdl:content/valueLength of an Array returns unexpected result

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • deferred
    • 2.0.0
    • General, Unparsing
    • None

      When trying to get the dfdl:contentLength of dfdl:valueLength of an array, Daffodil returns the length of it's parent, rather than the array. This is because the NodeType.Exists parameter type ends up creating a DownArrayExists recipe, which does not change the current node. Either we need to disallow getting the content/valueLength of an array and require the user to wrap the array in a complex type, or we need to allow it and modify/add parsers to store value/contentLength of an array.

      Alternatively, we maybe be able to do some magic where we get the start pos of the first child and the end pos of the last child and return that length. It's not immeidately clear if that is correct.

              Unassigned Unassigned
              slawrence Steve Lawrence
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: