You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Dave Thompson (JIRA)" <ji...@apache.org> on 2018/10/08 17:07:00 UTC

[jira] [Closed] (DAFFODIL-1519) occursCount that is greater than maxOccursBounds causes PE/UE rather than SDE

     [ https://issues.apache.org/jira/browse/DAFFODIL-1519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Thompson closed DAFFODIL-1519.
-----------------------------------

Pulled latest updates from incubator-daffodil repository which included specified commit, 62da5b5a44e3f90c42ed446f7e64950ff61b6738.

Verified daffodil builds and executes all sbt tests successfully, including the test case added by the commit.

Verified changes specified in the commit comment included.

All nightly tests also executed successfully.

> occursCount that is greater than maxOccursBounds causes PE/UE rather than SDE
> -----------------------------------------------------------------------------
>
>                 Key: DAFFODIL-1519
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1519
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End, Diagnostics, Usability
>            Reporter: Steve Lawrence
>            Assignee: Steve Lawrence
>            Priority: Major
>             Fix For: 2.2.0
>
>
> Currently, if you have an expression for occursCount, and that expression results in a value greater than maxOccursBounds (which defaults to 1024), then we currently throw a PE/UE. When parsing, this can result in backtracking for a non-obvious reason. The fact that maxOccursBounds was exceeded may not even be reported.
> Instead, it seems like this should instead be a SDE so that the error is reported immediately and the user can either modify a tunable to increase the maxOccursBOunds, or rework the schema to not need such a large array.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)