XPathBuilder date conversion is not working on java6
----------------------------------------------------
Key: NXP-2546
URL: http://jira.nuxeo.org/browse/NXP-2546
Project: Nuxeo Enterprise Platform
Issue Type: Bug
Affects Versions: 5.2 M2
Reporter: Bogdan Stefanescu
Assignee: Bogdan Stefanescu
Fix For: 5.2 M3
The following test from
/nuxeo-core-jcr-connector/src/test/java/org/nuxeo/ecm/core/repository/jcr/TestXPathBuilder.java
was disabled because it is not working on java 6:
// This test is disabled since it is not passing in Java6. In java6 the
expected date in xs:dateTime
// is T00:00:00.000Z and not T00:00:00.000+01:00
q = "select * from document where ecm:path LIKE '%/ws/%' and dc:created
between DATE '2004-02-10' and DATE '2005-01-02'";
x = "//%/ecm:children/ws/ecm:children//element(*,ecmnt:document)[(
(dc:created >= xs:dateTime('2004-02-10T00:00:00.000+01:00') and dc:created <=
xs:dateTime('2005-01-02T00:00:00.000+01:00')))]";
// assertEquals(x, XPathBuilder.fromNXQL(q));
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets