You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
I just created a new hybrid-project using dev-branch and marklogic-version 7 to test out the unit-test functionality.
I get one failing test when i run the auto-generated tests via the browser.
in /roxy/lib/request.xqy on line 162,
in req:get("dt", (), "type=xs:dateTime")
variables:
name = "dt"
default = ()
options = "type=xs:dateTime"
type = "xs:dateTime"
max-count = ()
allow-empty = fn:true()
value = "2014-08-11T12:07:45.192734 02:00"
v = ()
in /roxy/lib/request.xqy on line 91,
in req:get("dt", "type=xs:dateTime")
variables:
name = "dt"
options = "type=xs:dateTime"
in /app/controllers/test-request.xqy on line 68,
in xdmp:function(fn:QName("http://marklogic.com/roxy/controller/test-request", "test1"), "/app/controllers/test-request.xqy")()
in /roxy/router.xqy on line 51,
in router:route()
in /roxy/query-router.xqy on line 20,
in
It looks like the problem is due to the fact that the value is not a valid string-representation of an xs:dateTime. It lacks the + sign between the fractions of a second and time-zone indicator.
Regards,
Johan
The text was updated successfully, but these errors were encountered:
Not sure it is the same, but I recall having seen something similar a while ago. That was caused by JavaScript code that started returning date objects that contained a timezone, where one wasn't expected. That might be a hint..
I just tried to reproduce this on a mac and windows box with the latest code from the dev branch but it worked fine. Can you provide some more details? Which version of Roxy? Which exact version of MarkLogic? Which operating system?
It goes wrong when fn:current-dateTime() returns a dateTime containing a timezone. More accurately when it is a + timezone. One of the tests does a http request including the date, but the + is not uri-encoded. A + in a uri gets translated to space, hence the error with the space before the timezone..
Luckily I'm in a + timezone, and was able to reproduce the error..
grtjn
added a commit
to grtjn/roxy
that referenced
this issue
Feb 23, 2015
Hi
I just created a new hybrid-project using dev-branch and marklogic-version 7 to test out the unit-test functionality.
I get one failing test when i run the auto-generated tests via the browser.
It looks like the problem is due to the fact that the value is not a valid string-representation of an xs:dateTime. It lacks the + sign between the fractions of a second and time-zone indicator.
Regards,
Johan
The text was updated successfully, but these errors were encountered: