You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2020/12/16 18:46:00 UTC
[jira] [Updated] (DAFFODIL-1164) DPath: Need more specific error
message for invalid predicates
[ https://issues.apache.org/jira/browse/DAFFODIL-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Beckerle updated DAFFODIL-1164:
------------------------------------
Priority: Minor (was: Major)
> DPath: Need more specific error message for invalid predicates
> --------------------------------------------------------------
>
> Key: DAFFODIL-1164
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1164
> Project: Daffodil
> Issue Type: Bug
> Components: Diagnostics, Usability
> Affects Versions: s15
> Reporter: Elizabeth Fahl
> Priority: Minor
>
> DPath only allows predicates as integer expressions to index arrays. With an invalid test, a Schema Definition Error is thrown but it seems to be trying to parse the predicate as a path and giving the error message that the element was not found.
> {noformat}
> [error] Test edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressionsDebug.test_predicate_02 failed:
> java.lang.Exception: Schema Definition Error: No element corresponding to step b found.
> {noformat}
> See tests:
> test_predicate_02
> test_predicate_03
> In files:
> daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressionsDebug.scala
> daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/expressions.tdml
--
This message was sent by Atlassian Jira
(v8.3.4#803005)