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

Terminator with leading space causes assertion failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.4.0
    • Front End

    Description

      User reported that dfdl:terminator=" %LF;" causes the following exception, likely due to the space at the beginning of property value. If this property (and likely others) start or end with a space, it should probably be an SDE, since they probably meant to do something like dfdl:terminator="%SP;%LF;". Exception below:

      Exception in thread "main" java.lang.AssertionError: assertion failed
      	at scala.Predef$.assert(Predef.scala:156)
      	at org.apache.daffodil.processors.dfa.CreateDelimiterDFA$.buildTransitions(CreateDelimiterDFA.scala:119)
      	at org.apache.daffodil.processors.dfa.CreateDelimiterDFA$.apply(CreateDelimiterDFA.scala:56)
      	at org.apache.daffodil.processors.dfa.CreateDelimiterDFA$.apply(CreateDelimiterDFA.scala:69)
      	at org.apache.daffodil.processors.dfa.CreateDelimiterDFA$$anonfun$apply$1.apply(CreateDelimi…fun$apply$1.apply(CreateDelimiterDFA.scala:88)
      	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
      	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
      	at scala.collection.immutable.List.foreach(List.scala:381)
      	at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
      	at scala.collection.immutable.List.map(List.scala:285)
      	at org.apache.daffodil.processors.dfa.CreateDelimiterDFA$.apply(CreateDelimiterDFA.scala:88)
      

      Attachments

        Activity

          People

            dfthompson Dave Thompson
            slawrence Steve Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: