* CalDAV: fixed wrong http-status for delete in inbox and announce sync-report on inbox, so clients using it get events only once

This commit is contained in:
Ralf Becker 2013-10-31 11:29:44 +00:00
parent eca96a4411
commit d25f9dce25
2 changed files with 7 additions and 2 deletions

View File

@ -1429,8 +1429,8 @@ class calendar_groupdav extends groupdav_handler
HTTP_WebDAV_Server::mkprop('report',array(
HTTP_WebDAV_Server::mkprop(groupdav::CALDAV,'free-busy-query',''))))),
);
// 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))
// rfc 6578 sync-collection report for everything but outbox
if (strpos($path, '/outbox/') === false)
{
$props['supported-report-set']['sync-collection'] = HTTP_WebDAV_Server::mkprop('supported-report',array(
HTTP_WebDAV_Server::mkprop('report',array(

View File

@ -1556,6 +1556,11 @@ class groupdav extends HTTP_WebDAV_Server
{
$user_prefix = '/'.$user;
$user = $account_id;
// /<currentuser>/inbox/
if ($user == $GLOBALS['egw_info']['user']['account_id'] && $app == 'inbox')
{
$app = 'calendar';
}
}
else
{