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:
Andrew Ruthven 2022-12-17 01:44:29 +13:00 committed by Andrew Ruthven
parent 7a3486563c
commit 0cb7381c88

View File

@ -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 );
}