* 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:52:40 +00:00
parent 90bc88449a
commit b11fa0302f
2 changed files with 7 additions and 2 deletions

View File

@ -165,7 +165,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

@ -147,7 +147,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)
{ {
@ -171,6 +173,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;
} }