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

Improve detection of disallowed entities in property values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • General

    Description

      In RuntimePropertyMixins.scala, many checks are done to make sure various character entities aren't in the data, for example:

      this.schemaDefinitionUnless(!s.contains("%NL;"), "textStandardDecimalSeparator cannot contain NL")
      

      Because this just does String.contains, it doesn't take into account character entities that were escaped. For example, the following would be incorrectly considered a schema definition error:

      textStandardInfinityRep="%%NL;"
      

      Checks should be performed using the EntityReplacer

      Attachments

        Activity

          People

            regetom Regis Thomas
            slawrence Steve Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: