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

Dave Thompson closed DAFFODIL-561.
----------------------------------

The identified Abort issue has been fixed in a previous commit sometime in the 
past so it no longer causes an Abort per dev. Which commit was not identified.

Verified the specified commit (commit 7736d5fddf784a6ec3b73321262ccdbc971acf9e 
) the adds a test for the Abort issue is included in the latest pull from the 
daffodil repository.

Verified, via review, changes identified in the commit comment were 
implemented. 

Verified the affected daffodil subproject sbt test suites executed 
successfully, including the added test.

> If you do not specify a type for documentPart, results in Abort
> ---------------------------------------------------------------
>
>                 Key: DAFFODIL-561
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-561
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Infrastructure, TDML Runner
>            Reporter: Jessie Chab
>            Assignee: Olabusayo Kilo
>            Priority: Minor
>              Labels: beginnner
>             Fix For: 4.0.0
>
>
> It seems that the TDMLRunner Error should be the same sort of text that gets 
> propagated through to the error message. However, you get an "Invariant 
> broken" Abort message, though it does state "invalid content type." Since it 
> is an abort, I'm opening a bug.
> TDMLRunner Error: cvc-complex-type.4: Attribute 'type' must appear on element 
> 'tdml:documentPart'.
> TDMLRunner Error: cvc-complex-type.4: Attribute 'type' must appear on element 
> 'tdml:documentPart'.
> TDMLRunner Error: cvc-complex-type.4: Attribute 'type' must appear on element 
> 'tdml:documentPart'.
> TDMLRunner Error: cvc-complex-type.4: Attribute 'type' must appear on element 
> 'tdml:documentPart'.
> TDMLRunner Error: cvc-complex-type.4: Attribute 'type' must appear on element 
> 'tdml:documentPart'.
> TDMLRunner Error: cvc-complex-type.4: Attribute 'type' must appear on element 
> 'tdml:documentPart'.
> TDMLRunner Error: cvc-complex-type.4: Attribute 'type' must appear on element 
> 'tdml:documentPart'.
> TDMLRunner Error: cvc-complex-type.4: Attribute 'type' must appear on element 
> 'tdml:documentPart'.
> TDMLRunner Error: cvc-complex-type.4: Attribute 'type' must appear on element 
> 'tdml:documentPart'.
> {color:red}[info] - test_lion_eater_ambiguity_01 *** FAILED ***
> [info]   edu.illinois.ncsa.daffodil.exceptions.Abort: Invariant broken. 
> invalid content type.
> [info] edu.illinois.ncsa.daffodil.exceptions.Assert$.abort(Assert.scala:85)
> [info] 
> edu.illinois.ncsa.daffodil.exceptions.Assert$.invariantFailed(Assert.scala:122)
> [info] 
> edu.illinois.ncsa.daffodil.tdml.DocumentPart.partContentType(TDMLRunner.scala:727)
> [info] 
> edu.illinois.ncsa.daffodil.tdml.DocumentPart.contentAsBits(TDMLRunner.scala:733)
> [info]   at 
> edu.illinois.ncsa.daffodil.exceptions.Assert$.abort(Assert.scala:85)
> [info]   at 
> edu.illinois.ncsa.daffodil.exceptions.Assert$.invariantFailed(Assert.scala:122)
> [info]   at 
> edu.illinois.ncsa.daffodil.tdml.DocumentPart.partContentType(TDMLRunner.scala:727)
> [info]   at 
> edu.illinois.ncsa.daffodil.tdml.DocumentPart.contentAsBits(TDMLRunner.scala:733)
> [info]   at 
> edu.illinois.ncsa.daffodil.tdml.Document$$anonfun$31.apply(TDMLRunner.scala:692)
> [info]   at 
> edu.illinois.ncsa.daffodil.tdml.Document$$anonfun$31.apply(TDMLRunner.scala:692)
> [info]   at 
> scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
> [info]   at 
> scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
> [info]   at 
> scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
> [info]   at scala.collection.immutable.List.foreach(List.scala:76)
> {color}
> I'm still working on the test so I probably won't have that pushed up, but 
> this should be easily reproducible. If not, let me know and I'll get a test 
> into the repo.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to