mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-28 03:04:15 +00:00
Keep track of proxy information for a Collection when using memcached
The test regression-suite/0549-iCal-REPORT was failing due to us not keeping track of the proxy information when storing/fetching collections from the cache.
This commit is contained in:
parent
7a3486563c
commit
0cb7381c88
@ -429,6 +429,7 @@ EOSQL;
|
||||
$this->collection->type = 'proxy';
|
||||
$this->_is_proxy_resource = true;
|
||||
$this->proxy_type = $matches[3];
|
||||
$this->collection->proxy_type = $matches[3];
|
||||
$this->collection->dav_name = $this->dav_name;
|
||||
$this->collection->dav_displayname = sprintf( '%s proxy %s', $matches[2], $matches[3] );
|
||||
$this->collection->exists = true;
|
||||
@ -552,6 +553,11 @@ EOSQL;
|
||||
$this->FetchPrincipal();
|
||||
$this->collection->is_principal = true;
|
||||
$this->collection->type = 'principal';
|
||||
} else {
|
||||
if ($this->collection->type == 'proxy') {
|
||||
$this->_is_proxy_resource = true;
|
||||
$this->proxy_type = $this->collection->proxy_type;
|
||||
}
|
||||
}
|
||||
@dbg_error_log( 'DAVResource', ':FetchCollection: Read cached collection named "%s" of type "%s".', $this->collection->dav_name, $this->collection->type );
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user