You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "John Interrante (Jira)" <ji...@apache.org> on 2022/03/18 15:13:00 UTC
[jira] [Updated] (DAFFODIL-2678) LengthUnits being applied to minLength/maxLength facets
[ https://issues.apache.org/jira/browse/DAFFODIL-2678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Interrante updated DAFFODIL-2678:
--------------------------------------
Fix Version/s: 3.4.0
(was: 3.2.1)
> LengthUnits being applied to minLength/maxLength facets
> -------------------------------------------------------
>
> Key: DAFFODIL-2678
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2678
> Project: Daffodil
> Issue Type: Bug
> Affects Versions: 3.3.0
> Reporter: Olabusayo Kilo
> Priority: Major
> Fix For: 3.4.0
>
>
> NOTE: schema showing error exists on a private repo. Info on accessing will show up in a comment
> In a schema, where lengthUnit is 'bits', and encoding='X-DFDL-US-ASCII-7-BIT-PACKED', where we have the following element definedÂ
> {code:java}
> <xs:element name="alpha" dfdl:lengthKind="explicit" dfdl:length="14">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:minLength value="2"/>
> <xs:maxLength value="2"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:element>{code}
> Daffodil issues the following warning on compiling the schema with save-parser
> java.lang.AssertionError: Schema Definition Warning: Explicit dfdl:length of 14 is out of range for facet maxLength='2'.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)