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

Konrad Windszus commented on JCRVLT-276:
----------------------------------------

{{o.a.j.util.ISO8601}} 
(https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/ISO8601.java)
 supports only a subset(!) of the formats defined by ISO8601, namely the ones 
listed in http://www.w3.org/TR/NOTE-datetime (compare with JCR-4267 and the 
javadoc). As this class is internally being used for 
{{JcrPackageDefinition.getCreated()}} the created date being generated by the 
package-maven-plugin must comply to this format.
The problem currently is timezone designator. 
* Using {{Z}} for {{SimpleDateFormat}} 
(https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html) 
does not mean Zulu but rather {{Sign TwoDigitHours Minutes}}, e.g. {{+0200}}, 
this is not supported by {{o.a.j.util.ISO8601}}
* Using {{X}} for {{SimpleDateFormat}} 
(https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html) 
means {{Sign TwoDigitHours}} or just {{Z}}, e.g. {{+02}}, , this is not 
supported by {{o.a.j.util.ISO8601}}
* Only the format {{XXX}} stands for the supported format  {{Sign TwoDigitHours 
: TwoDigitMinutes}}, e.g. {{+02:00}}

> Switch to timezone designators being understood by ISO8601.parse(...)
> ---------------------------------------------------------------------
>
>                 Key: JCRVLT-276
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-276
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: package maven plugin
>    Affects Versions: package-maven-plugin-1.0.1
>            Reporter: Konrad Windszus
>            Priority: Major
>             Fix For: package-maven-plugin-1.0.2
>
>
> Currently in 
> https://github.com/apache/jackrabbit-filevault-package-maven-plugin/blob/trunk/src/main/java/org/apache/jackrabbit/filevault/maven/packaging/VaultMojo.java#L1038
>  an unsupported timezone designator is being used which leads to the fact 
> that the creation date cannot be evaluated via 
> {{JcrPackageDefinition.getCreated()}} and this always returns {{null}}.
> Supported designators are e.g. {{±hh:mm}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to