Retrieve list of collections fails to parse date if from/to parameters include milliseconds (#11)
Closed
Ariel Scarpinelli opened 1 decade ago

To reproduce:

Ask for list collections with a stanza like this:

<list xmlns='urn:xmpp:archive' with='juliet@capulet.com' start='1970-01-01T00:00:00.000Z' end='2014-05-12T21:41:48.911Z'/

It then returns:

Date parsing error

Expected behavior:

It should succeed and return the list, as using milliseconds complies with the DataTime format specified on XEP-0082, which is the one required on XEP-0136.

Notice that including the milliseconds in the timestamp is the behavior of the Javascript's Date class, toISOString() method; at least on Google Chrome, so it would make the life easier for working with Strophe for instance.

Andrzej Wójcik (Tigase) commented 1 decade ago

Applied in changeset commit:7619077bd38129df1fbaa045e2bcd13925ee2d0f.

Andrzej Wójcik (Tigase) commented 1 decade ago

Fix should appear in next daily snapshot version.

Ariel Scarpinelli commented 1 decade ago

Ok. I've checked and its working now :-D

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
1966
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-message-archiving#11
Please wait...
Page is in error, reload to recover