[
https://issues.apache.org/jira/browse/DAFFODIL-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16613737#comment-16613737
]
Steve Lawrence commented on DAFFODIL-1080:
------------------------------------------
This test no longer results in the "No forward progress" error. However, it now
fails similar to DAFFODIL-1976. An empty string with no initiator/terminator is
parsed and results in the creation of a empty <item/> element. The item element
is an optional array of type xs:string–since it is optional and the parsed
string has is length zero, the <item> element should not be created.
> RepUnbounded Error: Sequence of Optional Comma-separated String items
> ---------------------------------------------------------------------
>
> Key: DAFFODIL-1080
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1080
> Project: Daffodil
> Issue Type: Bug
> Components: General
> Reporter: Jessie Chab
> Priority: Major
> Fix For: 2.3.0
>
>
> I set up a schema with a nested sequence. The sequence contains a
> comma-delimited sequence of a recurring string element, with minOccurs 0,
> maxOccurs 10. The second item of the top-level sequence is a boolean with
> inputValueCalc. I get the following error:
> [error] Test
> edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressions.test_empty_02
> failed: edu.illinois.ncsa.daffodil.processors.ParseError: Parse Error:
> RepUnbounded - No forward progress at byte 0. Attempt to parse element.item
> succeeded but consumed no data.
> [error] Please re-examine your schema to correct this infinite loop.
> works when items are ints, not strings.
> See test empty_02 in the following files:
> scala-debug/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressionsDebug.scala
> scala/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressions.scala
> daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/Functions.tdml
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)