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

Davide Giannella commented on OAK-2497:
---------------------------------------

[~tmueller]

the problem does not rely on OAK-2056 as I initially thought rather in
the ISO8601.parse() from the jackrabbit JCR Commons.

quoting https://www.ietf.org/rfc/rfc3339.txt

{quote}
NOTE: Per ABNF and ISO8601, the "T" and "Z" characters in this
syntax may alternatively be lower case "t" or "z" respectively.
{quote}

currently the parse function does not consider the lowecase {{z}} and
tries to pick the {{java.util.TimeZone}} from it which does not exists
as java expects {{Z}} (uppercase).

We have two solutions here:

a) We change the jcr-commons and release by changing the parse
function.

b) we change our {{Conversions.toCalendar()}} for considering the
lowercase {{z}} (and {{t}}) to be upcased before passing it to the
ISO8601.parse().


In (0) a proposed solution for (b), which means we address it on the
oak side.

(0) 
https://github.com/davidegiannella/jackrabbit-oak/commit/03c35cc77cc98f201ccbefa9404d01c95e526c2b

thoughts? If fine I will commit my changes on the oak side.

> Range query with incorrectly formatted date
> -------------------------------------------
>
>                 Key: OAK-2497
>                 URL: https://issues.apache.org/jira/browse/OAK-2497
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>            Reporter: Thomas Mueller
>            Assignee: Davide Giannella
>             Fix For: 1.2, 1.0.12, 1.1.7
>
>
> Range queries on Date properties, with incorrectly formatted date, return no 
> results (instead of either failing, or returning the expected result). 
> Example date: {{2015-01-22T17:10:05.666z}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to