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

Steve Lawrence commented on DAFFODIL-1124:
------------------------------------------

I think this is actually behaving as expected. We are now getting an error 
message that the date is invalid, which is correct. It's just that the test is 
failing because it's expecting a slightly different error message. We probably 
just need to update the test.

> DPath: xs:date constructor more lax - allows missing digits
> -----------------------------------------------------------
>
>                 Key: DAFFODIL-1124
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1124
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End, ICU
>    Affects Versions: s15
>            Reporter: Jessie Chab
>            Assignee: Mike Beckerle
>            Priority: Minor
>
> Note: this issue is in the dpath branches, not the current 0.15.0
> In the XPath implementation of Daffodil, if you provided the xs:date 
> constructor with a date like the following: 1991-03-4, you would get this 
> error:
> Invalid date "1991-03-4" (Day must be two digits). Now the function accepts 
> sincle-digit days and it parses as 1991-03-04+00:00.
> This may be our expected behavior but I thought I should note the discrepancy.
> See test test_date_constructor_01 in the following file:
> daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/Functions.tdml



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

Reply via email to