PILLUTLAAVINASH / google-enterprise-connector-manager

Automatically exported from code.google.com/p/google-enterprise-connector-manager
0 stars 0 forks source link

Test data for connector manager lastmodified time not if format JcrTraversalManager requires #159

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The files in the directory
http://code.google.com/p/google-enterprise-connector-manager/source/browse/#svn/
trunk/projects/connector-manager/testdata/mocktestdata
contain specifications for returned document list entries for
JcrTraversalManager
(http://code.google.com/p/google-enterprise-connector-manager/source/browse/trun
k/projects/connector-manager/source/javatests/com/google/enterprise/connector/jc
r/JcrTraversalManager.java).

The JcrTraversalManager uses the lastmodified field from these events
during resume traveral to construct a query for additional documents. (Note
the call to Value.iso8601ToCalendar() in
JcrTraversalManager.makeCheckpointQueryString()). The JcrTraversalManager
expects the lastmodified value to be in the format like
"1994-11-15T12:45:26" but the actural format in the events is like "Tue, 15
Nov 1994 12:45:26 GMT". This causes stack traces in tests.

This issue does not cause tests to fail or affect production connector
manager code.

Original issue reported on code.google.com by EricStre...@gmail.com on 17 Jun 2009 at 10:05

GoogleCodeExporter commented 8 years ago

Original comment by EricStre...@gmail.com on 17 Jun 2009 at 11:30

GoogleCodeExporter commented 8 years ago

Original comment by EricStre...@gmail.com on 17 Jun 2009 at 11:31

GoogleCodeExporter commented 8 years ago
Fixed 08 November 2010 as Connector Manager revision r2648

JcrDocumentList now generates ISO8601 format checkpoint.

Code Reviewed:  http://codereview.appspot.com/2969041/

Original comment by Brett.Mi...@gmail.com on 9 Nov 2010 at 2:41