You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2020/08/05 18:18:00 UTC

[jira] [Updated] (DAFFODIL-774) SDE checks don't take into account escaped character entities

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

Mike Beckerle updated DAFFODIL-774:
-----------------------------------
    Labels: beginner  (was: )

> SDE checks don't take into account escaped character entities
> -------------------------------------------------------------
>
>                 Key: DAFFODIL-774
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-774
>             Project: Daffodil
>          Issue Type: Bug
>          Components: General
>            Reporter: Steve Lawrence
>            Priority: Major
>              Labels: beginner
>
> In RuntimePropertyMixins.scala, many checks are done to make sure various character entities aren't in the data, for example:
> {code}
> this.schemaDefinitionUnless(!s.contains("%NL;"), "textStandardDecimalSeparator cannot contain NL")
> {code}
> 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:
> {code}
> textStandardInfinityRep="%%NL;"
> {code}
> Checks should be performed using the EntityReplacer



--
This message was sent by Atlassian Jira
(v8.3.4#803005)