mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
fix found URL in multiget REPORT where reported as NOT found too, if number of URLs exceeds chunk-size of 500
This commit is contained in:
parent
03a237fd7e
commit
5e0fd45173
@ -205,7 +205,7 @@ class addressbook_groupdav extends Api\CalDAV\Handler
|
||||
* @param array|boolean $start =false false=return all or array(start,num)
|
||||
* @return array with "files" array with values for keys path and props
|
||||
*/
|
||||
function &propfind_callback($path, array $filter, $start=false)
|
||||
function &propfind_callback($path, array &$filter, $start=false)
|
||||
{
|
||||
return $this->propfind_callback2($path, $filter, $start);
|
||||
}
|
||||
|
@ -158,11 +158,11 @@ abstract class Handler
|
||||
* Propfind callback, if interator is used
|
||||
*
|
||||
* @param string $path
|
||||
* @param array $filter
|
||||
* @param array &$filter
|
||||
* @param array|boolean $start false=return all or array(start,num)
|
||||
* @return array with "files" array with values for keys path and props
|
||||
*/
|
||||
function &propfind_callback($path, array $filter, $start)
|
||||
function &propfind_callback($path, array &$filter, $start)
|
||||
{
|
||||
unset($path, $filter, $start); // not used, but required by function signature
|
||||
}
|
||||
|
@ -326,11 +326,11 @@ class calendar_groupdav extends Api\CalDAV\Handler
|
||||
* Callback for profind interator
|
||||
*
|
||||
* @param string $path
|
||||
* @param array $filter
|
||||
* @param array &$filter
|
||||
* @param array|boolean $start =false false=return all or array(start,num)
|
||||
* @return array with "files" array with values for keys path and props
|
||||
*/
|
||||
function &propfind_callback($path,array $filter,$start=false)
|
||||
function &propfind_callback($path, array &$filter, $start=false)
|
||||
{
|
||||
if ($this->debug) $starttime = microtime(true);
|
||||
|
||||
@ -344,7 +344,7 @@ class calendar_groupdav extends Api\CalDAV\Handler
|
||||
$filter['offset'] = $start[0];
|
||||
$filter['num_rows'] = $start[1];
|
||||
}
|
||||
$requested_multiget_ids = (array)$filter['query'][self::$path_attr];
|
||||
$requested_multiget_ids =& $filter['query'][self::$path_attr];
|
||||
$sync_collection = $filter['sync-collection'];
|
||||
|
||||
$events =& $this->bo->search($filter);
|
||||
@ -1787,4 +1787,4 @@ class calendar_groupdav extends Api\CalDAV\Handler
|
||||
}
|
||||
return $settings;
|
||||
}
|
||||
}
|
||||
}
|
@ -227,11 +227,11 @@ class infolog_groupdav extends Api\CalDAV\Handler
|
||||
* Callback for profind interator
|
||||
*
|
||||
* @param string $path
|
||||
* @param array $filter
|
||||
* @param array &$filter
|
||||
* @param array|boolean $start =false false=return all or array(start,num)
|
||||
* @return array with "files" array with values for keys path and props
|
||||
*/
|
||||
function &propfind_callback($path,array $filter,$start=false)
|
||||
function &propfind_callback($path,array &$filter,$start=false)
|
||||
{
|
||||
if ($this->debug) $starttime = microtime(true);
|
||||
|
||||
@ -282,7 +282,7 @@ class infolog_groupdav extends Api\CalDAV\Handler
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
$requested_multiget_ids = (array)$filter[self::$path_attr];
|
||||
$requested_multiget_ids =& $filter[self::$path_attr];
|
||||
|
||||
$files = array();
|
||||
// ToDo: add parameter to only return id & etag
|
||||
@ -902,4 +902,4 @@ class infolog_groupdav extends Api\CalDAV\Handler
|
||||
);
|
||||
return $settings;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user