Because DateTime comparisons ignore the time [1], the CMIS synchronization task will always be at least 12 hours behind the actual repository with the following query (perhaps only for content in UTC+1200 timezone), and in some cases changes will not be detected until 36 hours afterwards (depending on Cron job):

// cmis_sync/cmis_sync.cmis.inc line 83
$sync_full_rule =  $sync_map_type['full_sync_next_cron']?'':sprintf('AND cmis:lastModificationDate > \'%s\'', date_create('12 hour ago')->format('Y-m-d\TH:i:s.000-00:00'));

By changing the > to a >=, the CMIS repository can be kept immediately up-to-date.

[1]: http://wiki.alfresco.com/wiki/CMIS_Query_Language#comparison_predicate

CommentFileSizeAuthor
#1 cmis.1402160.1.patch920 bytestobiasb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tobiasb’s picture

Status: Active » Needs review
Issue tags: +Novice
FileSize
920 bytes
IanNorton’s picture

Assigned: Unassigned » IanNorton
IanNorton’s picture

Thanks tobiasb & soundasleep for the fix, pushed into the 7.x branch

IanNorton’s picture

Status: Needs review » Closed (fixed)