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 2021/02/02 12:59:00 UTC

[jira] [Closed] (DAFFODIL-1420) Error when unparsing an apostrophe (scala XMLEventReader bug)

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

Dave Thompson closed DAFFODIL-1420.
-----------------------------------

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

Verified the all affected sbt test suites execute successfully including the modified tests.

Verified the nightly test schemas compile and save successfully.

Verified the nightly test suite executes successfully.

> Error when unparsing an apostrophe (scala XMLEventReader bug)
> -------------------------------------------------------------
>
>                 Key: DAFFODIL-1420
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1420
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Clean Ups, General, Libraries, Unparsing
>    Affects Versions: 2.0.0
>            Reporter: Jessie Chab
>            Assignee: Mike Beckerle
>            Priority: Major
>              Labels: beginner
>             Fix For: 3.1.0
>
>
> This is an issue with scala's XMLEventReader. This bug has been reported and can be tracked here: https://github.com/scala/scala-xml/issues/72 
> Once this has been resolved on the scala side, we need to verify that the functionality works within Daffodil.
> When attempting to unparse an apostrophe, the following error is thrown:
> {code}
> [error] Test edu.illinois.ncsa.daffodil.section00.general.TestUnparserGeneral.test_apostrophe_01 failed: edu.illinois.ncsa.daffodil.tdml.TDMLException: Unexpected data ' ' was created.
> [error]     at edu.illinois.ncsa.daffodil.tdml.VerifyTestCase$.verifyTextData(TDMLRunner.scala:993)
> [error]     at edu.illinois.ncsa.daffodil.tdml.UnparserTestCase.runUnparserExpectSuccess(TDMLRunner.scala:787)
> [error]     at edu.illinois.ncsa.daffodil.tdml.UnparserTestCase$$anonfun$runProcessor$9.apply(TDMLRunner.scala:752)
> [error]     at edu.illinois.ncsa.daffodil.tdml.UnparserTestCase$$anonfun$runProcessor$9.apply(TDMLRunner.scala:751)
> [error]     at scala.util.Either$RightProjection.foreach(Either.scala:469)
> [error]     at edu.illinois.ncsa.daffodil.tdml.UnparserTestCase.runProcessor(TDMLRunner.scala:751)
> [error]     at edu.illinois.ncsa.daffodil.tdml.TestCase.run(TDMLRunner.scala:536)
> [error]     at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTestWithDataVolumes(TDMLRunner.scala:318)
> [error]     at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:306)
> [error]     at edu.illinois.ncsa.daffodil.tdml.Runner.runOneTest(RunnerFactory.scala:48)
> [error]     at edu.illinois.ncsa.daffodil.section00.general.TestUnparserGeneral.test_apostrophe_01(TestUnparserGeneral.scala:61)
> {code}
> See test:
> apostrophe_01
> In the following files:
> daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section00/general/testUnparserGeneral.tdml
> daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section00/general/TestUnparserGeneralDebug.scala
> daffodil-test/src/test/scala/edu/illinois/ncsa/daffodil/section00/general/TestUnparserGeneral.scala



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