* CalDAV/GroupDAV: return empty collection, as iCal under iOS 5 had problems with returning "404 Not found" status

This commit is contained in:
Ralf Becker 2011-09-30 12:55:12 +00:00
parent b6bfe9373a
commit 8edcf808d2
2 changed files with 7 additions and 2 deletions

View File

@ -136,7 +136,9 @@ class calendar_groupdav extends groupdav_handler
// process REPORT filters or multiget href's // process REPORT filters or multiget href's
if (($id || $options['root']['name'] != 'propfind') && !$this->_report_filters($options,$filter,$id)) if (($id || $options['root']['name'] != 'propfind') && !$this->_report_filters($options,$filter,$id))
{ {
return false; // return empty collection, as iCal under iOS 5 had problems with returning "404 Not found" status
// when trying to request not supported components, eg. VTODO on a calendar collection
return true;
} }
if ($this->debug > 1) if ($this->debug > 1)
{ {

View File

@ -119,7 +119,9 @@ class infolog_groupdav extends groupdav_handler
// process REPORT filters or multiget href's // process REPORT filters or multiget href's
if (($id || $options['root']['name'] != 'propfind') && !$this->_report_filters($options,$filter,$id)) if (($id || $options['root']['name'] != 'propfind') && !$this->_report_filters($options,$filter,$id))
{ {
return false; // return empty collection, as iCal under iOS 5 had problems with returning "404 Not found" status
// when trying to request not supported components, eg. VTODO on a calendar collection
return true;
} }
if ($this->debug > 1) if ($this->debug > 1)
{ {
@ -143,6 +145,7 @@ class infolog_groupdav extends groupdav_handler
// return iterator, calling ourself to return result in chunks // return iterator, calling ourself to return result in chunks
$files['files'] = new groupdav_propfind_iterator($this,$path,$filter,$files['files']); $files['files'] = new groupdav_propfind_iterator($this,$path,$filter,$files['files']);
return true; return true;
} }