ucb: webdav-curl: tdf#101094 (17) OPTIONS: Options cache removal: COPY
[ port of commit bedae6b06c51c641c38fa7dd3e25dd2aaafb30cf ]
Change-Id: I1618a7a5ec4e52fdd9e99b17b2b36e5ef77decae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123469
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
diff --git a/ucb/source/ucp/webdav-curl/webdavcontent.cxx b/ucb/source/ucp/webdav-curl/webdavcontent.cxx
index 6e0b57c..3f42acc 100644
--- a/ucb/source/ucp/webdav-curl/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav-curl/webdavcontent.cxx
@@ -865,6 +865,8 @@ void Content::addProperty( const css::ucb::PropertyCommandArgument &aCmdArg,
osl::Guard< osl::Mutex > aGuard( m_aMutex );
m_xResAccess.reset( new DAVResourceAccess( *xResAccess ) );
}
// TODO PLACEHOLDER:
// remove target URL options from cache, since PROPPATCH may change them
// Notify propertyset info change listeners.
beans::PropertySetInfoChangeEvent evt(
@@ -1885,6 +1887,8 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
{
// Set property values at server.
xResAccess->PROPPATCH( aProppatchValues, xEnv );
// TODO PLACEHOLDER:
// remove target URL options from cache, since PROPPATCH may change it
for ( const auto& rProppatchValue : aProppatchValues )
{
@@ -2757,6 +2761,8 @@ void Content::transfer(
rArgs.NameClash
== ucb::NameClash::OVERWRITE,
Environment );
aStaticDAVOptionsCache.removeDAVOptions( sourceURI.GetURI() );
aStaticDAVOptionsCache.removeDAVOptions( targetURI.GetURI() );
// DAV resources store all additional props on server!
// // Copy own and all children's Additional Core Properties.