You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Michael Beckerle (JIRA)" <ji...@apache.org> on 2019/06/20 21:59:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16868965#comment-16868965 ] 

Michael Beckerle commented on DAFFODIL-1420:
--------------------------------------------

This improved version of scala-xml has been out as release 1.1.0 for a while now.

Fixing this requires updating our scala-xml dependency in project/Dependencies.scala to the newest scala-xml (or at least 1.1.0), and retesting, enabling the apostrophe_01 test mentioned above.

 

> 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
>            Priority: Major
>
> 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
(v7.6.3#76005)