[
https://issues.apache.org/jira/browse/DAFFODIL-561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Olabusayo Kilo resolved DAFFODIL-561.
-------------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
This was fixed sometime in the past so it no longer causes an Abort. Test added
in 7736d5fddf784a6ec3b73321262ccdbc971acf9e to verify that this works as
expected (which is the TDMLException).
> 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)