Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#1 | cmis.1402160.1.patch | 920 bytes | tobiasb |
Comments
Comment #1
tobiasbComment #2
IanNorton CreditAttribution: IanNorton commentedComment #3
IanNorton CreditAttribution: IanNorton commentedThanks tobiasb & soundasleep for the fix, pushed into the 7.x branch
Comment #4
IanNorton CreditAttribution: IanNorton commented