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

Add test for Erratum 5.1 escapeEscapeCharacter processing error detection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.7.0
    • None
    • DFDL Language, QA
    • None

    Description

      Erratum 5.1 describes a specific test case for escapeEscapeCharacter:

      Consider a dfdl:escapeScheme annotation with the following properties:

      dfdl:escapeBlockStart="start"

      dfdl:escapeBlockEnd="end"

      dfdl:escapeEscapeCharacter="#"

      If this is used to serialize a DFDL Infoset element of type xs:string with value “A hash is a #”, then the value is wrapped with the dfdl:escapeBlockStart and dfdl:escapeBlockEnd, giving simple content "startA hash is a #end".  If this data was parsed, the "#end" will be treated as an escaped escape block end and the parse will fail, reporting that there is no escape block end in the data.

      In this scenario, the data is not compliant with the escape scheme, and the DFDL serializer must issue a processing error.

      We need a specific test to match this case verifying that the processing error does in fact occur, and of course to fix the behavior if it does not.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: