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 2021/01/07 21:20:00 UTC

[jira] [Commented] (DAFFODIL-1592) unparsing - string truncation modifies the value

    [ https://issues.apache.org/jira/browse/DAFFODIL-1592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17260834#comment-17260834 ] 

Mike Beckerle commented on DAFFODIL-1592:
-----------------------------------------

Issue is modifying the value in the infoset which changes its length when length is used by an expression subsequently.

> unparsing - string truncation modifies the value
> ------------------------------------------------
>
>                 Key: DAFFODIL-1592
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1592
>             Project: Daffodil
>          Issue Type: Bug
>          Components: General, Unparsing
>            Reporter: Mike Beckerle
>            Priority: Major
>
> Bug: should not overwrite the value with truncated value. the fn:string-length function should always return the same value which is the un-truncated length.
> We'll need a separate slot for the truncated value which is generally unused, but when actually outputting data is checked and preferred to the un-truncated value.



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