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 2023/02/08 19:43:00 UTC

[jira] [Closed] (DAFFODIL-2676) number constructors from string do not tolerate leading whitespace

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

Dave Thompson closed DAFFODIL-2676.
-----------------------------------

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

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

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

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

Rolled back to a pre-fix commit, copied the associated .tdml and .scala test files and verified that the added test failed for the identified error. Verified the error does not occur on the fix commit.

> number constructors from string do not tolerate leading whitespace
> ------------------------------------------------------------------
>
>                 Key: DAFFODIL-2676
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2676
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End
>    Affects Versions: 3.3.0
>            Reporter: Mike Beckerle
>            Assignee: Mike McGann
>            Priority: Major
>              Labels: beginner
>             Fix For: 3.5.0
>
>
> User reports that an expression xs:unsignedInt(str) where the str contains leading whitespace, fails with:
> {code:java}
> Unparse Error: Cannot convert '    0' from String type to Long (Cannot conert to type long: for input string: "    0"){code}
> Note that this is an unparse error. 
> The XPath specification says that when converting from string to other atomic simple types, whitespace normalization applies, which trims leading and trailing whitespace. So this should not fail. 



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