You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2020/05/29 18:42:00 UTC

[jira] [Closed] (DAFFODIL-1681) Need validation of infoset data

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

Dave Thompson closed DAFFODIL-1681.
-----------------------------------

Verified the specified commit (commit 6362e3ef9393c93b1e8c2de96d92bea548138760) is included in the latest pull from the incubator-daffodil repository.

Verified the dfd-schema repository sbt tests execute successfully.

Verified the effected incubator-daffodil sbt test suites execute successfully.

Verified the nightly test schemas compile and save successfully.

Verified the nightly test suite executes successfully.

> Need validation of infoset data
> -------------------------------
>
>                 Key: DAFFODIL-1681
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1681
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End, General
>    Affects Versions: 2.0.0
>            Reporter: Steve Lawrence
>            Priority: Major
>             Fix For: 3.0.0
>
>
> Currently, if you have a xs:hexBinary element that doesn't contain xs:hexBinary in the infoset, we get an InvalidArgumentException:
> {code}
> java.lang.IllegalArgumentException: Hex character must be 0-9, a-z, or A-Z, but was 'X'
> at edu.illinois.ncsa.daffodil.util.Misc$.hexCharToValue$1(Misc.scala:278)
> at edu.illinois.ncsa.daffodil.util.Misc$.hex2Bytes(Misc.scala:292)
> at edu.illinois.ncsa.daffodil.dpath.NodeInfo$PrimType$HexBinary$.fromXMLString(NodeInfo.scala:526)
> at edu.illinois.ncsa.daffodil.processors.unparsers.InfosetCursorFromXMLReader.createElement(InfosetCursorFromXMLReader.scala:373)
> at edu.illinois.ncsa.daffodil.processors.unparsers.InfosetCursorFromXMLReader.handleStartElement(InfosetCursorFromXMLReader.scala:279)
> at edu.illinois.ncsa.daffodil.processors.unparsers.InfosetCursorFromXMLReader.reallyFill(InfosetCursorFromXMLReader.scala:232)
> at edu.illinois.ncsa.daffodil.processors.unparsers.InfosetCursorFromXMLReader.fill(InfosetCursorFromXMLReader.scala:222)
> at edu.illinois.ncsa.daffodil.util.CursorImplMixin$class.doAdvance(Cursor.scala:189)
> at edu.illinois.ncsa.daffodil.util.CursorImplMixin$class.inspect(Cursor.scala:178)
> ..
> {code}
> We need to fix this, and ensure that all other data formats have proper error handling to report which element in the infoset was invalid.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)