disable sync-collection report for inbox and outbox, as the way they are created in EGw, we cant support sync-collection propperly

we filter by status unknown, but do not report event as deleted, when status changed to accepted
This commit is contained in:
Ralf Becker 2012-10-02 10:35:12 +00:00
parent 841182ff4e
commit 0af9ed0cd9

View File

@ -1312,11 +1312,14 @@ class calendar_groupdav extends groupdav_handler
'free-busy-query' => HTTP_WebDAV_Server::mkprop('supported-report',array(
HTTP_WebDAV_Server::mkprop('report',array(
HTTP_WebDAV_Server::mkprop(groupdav::CALDAV,'free-busy-query',''))))),
// rfc 6578 sync-collection report
'sync-collection' => HTTP_WebDAV_Server::mkprop('supported-report',array(
HTTP_WebDAV_Server::mkprop('report',array(
HTTP_WebDAV_Server::mkprop('sync-collection',''))))),
);
// rfc 6578 sync-collection report, not for inbox, as we dont report accepted events as deleted, because we filter!
if (!preg_match('#/(inbox|outbox)/#', $path))
{
$props['supported-report-set']['sync-collection'] = HTTP_WebDAV_Server::mkprop('supported-report',array(
HTTP_WebDAV_Server::mkprop('report',array(
HTTP_WebDAV_Server::mkprop('sync-collection','')))));
}
$props['supported-calendar-data'] = HTTP_WebDAV_Server::mkprop(groupdav::CALDAV,'supported-calendar-data',array(
HTTP_WebDAV_Server::mkprop(groupdav::CALDAV,'calendar-data', array('content-type' => 'text/calendar', 'version'=> '2.0')),
HTTP_WebDAV_Server::mkprop(groupdav::CALDAV,'calendar-data', array('content-type' => 'text/x-calendar', 'version'=> '1.0'))));