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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 3.5.0
    • General, Unparsing
    • None

    Description

      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.

      Attachments

        Activity

          People

            dfthompson Dave Thompson
            slawrence Steve Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: