You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Olabusayo Kilo (Jira)" <ji...@apache.org> on 2024/09/23 19:59:00 UTC

[jira] [Assigned] (DAFFODIL-561) If you do not specify a type for documentPart, results in Abort

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

Olabusayo Kilo reassigned DAFFODIL-561:
---------------------------------------

    Assignee: Olabusayo Kilo

> 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
>
> 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)