[
https://issues.apache.org/jira/browse/DAFFODIL-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16464074#comment-16464074
]
Michael Beckerle commented on DAFFODIL-1934:
--------------------------------------------
for line folding, currently layerLengthKind 'implicit' goes on until "end of
data". layerLengthKind 'boundaryMark' has a fixed boundary mark of CRLF not
followed by space or tab.
Neither does what this example needs. Suggest the header element use
lengthKind='pattern' with a regex that isolates the header data. Then
layerLengthKind 'implicit' will be constrained to only that data.
> Inability to read data following a layer
> ----------------------------------------
>
> Key: DAFFODIL-1934
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1934
> Project: Daffodil
> Issue Type: Bug
> Components: Back End
> Affects Versions: 2.2.0
> Reporter: Steve Lawrence
> Priority: Major
> Fix For: 2.2.0
>
>
> I have a schema that has two parts: a header and a body. The header contains
> an unbounded array of delimited fields. The header has a terminator to
> signify when the fields are complete. The entire header element is in a
> lineFolded_IMF layered sequence. Immediately following the layered sequence
> is a body element, which is just a delimited string. The header fields and
> terminator are parsed correctly. However, the body is parsed with length
> zero, and no error is given about left over data. Perhaps the limiting layer
> is not being reset to the original layer correctly? So the layer IOStream is
> closed, making it so no data after the layer can be read?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)