camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-11620) Requiredement for date string to be longer than pattern is invalid.
Date Tue, 01 Aug 2017 13:54:02 GMT

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

ASF GitHub Bot commented on CAMEL-11620:
----------------------------------------

GitHub user pchhabra11 opened a pull request:

    https://github.com/apache/camel/pull/1860

    "CAMEL-11620:Requiredement for date string to be longer than pattern …

    Fix For CAMEL-11620


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pchhabra11/camel CAMEL-11620

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1860.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1860
    
----
commit 4b731b921022ff354065bdceb0308354a73bd4d0
Author: Pulkit <pchhabra@redhat.com>
Date:   2017-08-01T13:49:44Z

    "CAMEL-11620:Requiredement for date string to be longer than pattern is invalid

----


> Requiredement for date string to be longer than pattern is invalid.
> -------------------------------------------------------------------
>
>                 Key: CAMEL-11620
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11620
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-bindy
>    Affects Versions: 2.18.3, 2.19.1
>            Reporter: Peter Carpenter
>
> Came across a bug attempting to parse date fields into a LocalDate using bindy.
> LocalDateTimeFormatFactory.parse(String string) calls "doesStringFitLengthOfPattern(string)
which does a string length comparison between the date and the pattern.
> This fails if the pattern includes "X" for timezone and the date string includes "+10:00".
 Obviously 5 characters is more than 1 character and therefore this date is rejected incorrectly.
> This check should be removed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message