ucb/source/ucp/webdav-curl/webdavcontent.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 43c1de58c3115dd0495d0326975d520a333845b8 Author: Giuseppe Castagno <[email protected]> AuthorDate: Wed Jan 27 17:41:30 2016 +0100 Commit: Michael Stahl <[email protected]> CommitDate: Mon Nov 1 18:39:51 2021 +0100 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 <[email protected]> Reviewed-by: Michael Stahl <[email protected]> diff --git a/ucb/source/ucp/webdav-curl/webdavcontent.cxx b/ucb/source/ucp/webdav-curl/webdavcontent.cxx index 6e0b57cb5b01..3f42acc56223 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.
