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

Dave Thompson closed DAFFODIL-2806.
-----------------------------------

Verified the specified commit (commit d61a1e4aa39be45f569b9f4d958f1a77af8c1ccd) 
is included in the latest pull from the daffodil repository.

Verified, via review, changes identified in the commit comment were 
implemented. 

Verified the affected daffodil subproject sbt test suites executed 
successfully, including the added test.

Rolled commit back to pre-fix commit and verified that the added test genetated 
the specified SDE.

 

> Incorrect SDE on simpleType with lengthKind 'implicit' even if type is used 
> with a computed element
> ---------------------------------------------------------------------------------------------------
>
>                 Key: DAFFODIL-2806
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2806
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Front End
>    Affects Versions: 3.4.0
>            Reporter: Mike Beckerle
>            Assignee: Olabusayo Kilo
>            Priority: Major
>             Fix For: 4.0.0
>
>
> In my types xsd file I have default lengthKind 'implicit' and this type 
> definition:
> ```
> <simpleType name="messageVersion">
>   <xs:restriction base="xs:string">
>     <xs:maxLength value="13"/>
>   </xs:restriction>
> </simpleType>
> ```
> In a different place I have this:
> ```
> <element name="value" type="ms2045:messageVersion"
>    dfdl:inputValueCalc="{
>      if (fn:exists(../vmf_hdr_C)) then ../vmf_hdr_C else ../vmf_hdr_D1
>    }"/>
> ```
> This uses the simpleType definition, but notice this is a computed element 
> (inputValueCalc).
>  
> Hence, all format properties should be ignored, and we should not get an SDE 
> indicating that the value element needs to have both minLength and maxLength 
> and for them to be equal. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to