Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-561

If you do not specify a type for documentPart, results in Abort

    XMLWordPrintableJSON

Details

    Description

      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'.
      [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)

      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.

      Attachments

        Activity

          People

            okilo@tresys.com Olabusayo Kilo
            daffodil-jchab Jessie Chab
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: