You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2022/01/25 19:10:00 UTC

[jira] [Closed] (DAFFODIL-2629) Runtime SDE with SetVariable expression

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

Dave Thompson closed DAFFODIL-2629.
-----------------------------------

Verified the applicable commits (commit e97739484c028460934d2ec823f831180e1e5287 and 2e420f43199d878ba4f18a03b374bf37255d472d) are included in the latest pull from the daffodil repository.

Verified changes identified in commit comments were implemented.

Tests testSetVarWithValueLength1 and testSetVarWithValueLength2 were added and commented out in commit e97739484c028460934d2ec823f831180e1e5287 for future use.

Verified that when uncommented the specified tests cause the runtime SDEs prior to fix commit 2e420f43199d878ba4f18a03b374bf37255d472d.

Verified that the specified tests no longer cause Runtime SDEs in fix commit 2e420f43199d878ba4f18a03b374bf37255d472d.

> Runtime SDE with SetVariable expression
> ---------------------------------------
>
>                 Key: DAFFODIL-2629
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2629
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End, Middle &quot;End&quot;
>    Affects Versions: 3.2.1
>            Reporter: Mike Beckerle
>            Assignee: Steve Lawrence
>            Priority: Major
>             Fix For: 3.3.0
>
>
> I get a runtime SDE when I have a situation like this:
> {code:java}
> <element name="someElement" type="xs:int"/>
> <sequence>
>   <annotation>
>     <appinfo source="http://www.ogf.org/dfdl/">
>       <dfdl:setVariable ref="f:someVar">{ dfdl:valueLength(someElement, "bytes") }</dfdl:setVariable>
>     </appinfo>
>   </annotation>
> </sequence>
> {code}
> The runtime SDE (when parsing) is that message has no value length.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)