summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2021-10-11 13:45:19 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2021-11-01 18:38:02 +0100
commitae8528e4b7c219411e4fa6f33fc693479bb5ce56 (patch)
treedaba4adcefe963285732dac35e91a55e176b882d /ucb
parent51579e00fef7baf5e248b1e9a2bf0e9fa8ef1a60 (diff)
ucb: webdav-curl: CurlSession OPTIONS() lock cache
Change-Id: I3a815e70db04439dc33d57ce9e214d52a7f0e08d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123465 Tested-by: Michael Stahl <michael.stahl@allotropia.de> Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav-curl/CurlSession.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/ucb/source/ucp/webdav-curl/CurlSession.cxx b/ucb/source/ucp/webdav-curl/CurlSession.cxx
index 29ddf3671de6..eab01e77d07b 100644
--- a/ucb/source/ucp/webdav-curl/CurlSession.cxx
+++ b/ucb/source/ucp/webdav-curl/CurlSession.cxx
@@ -1179,6 +1179,13 @@ auto CurlSession::OPTIONS(OUString const& rURIReference,
}
}
rOptions.setResourceFound();
+ if (rOptions.isClass2() || rOptions.isClass3())
+ {
+ if (g_Init.LockStore.getLockTokenForURI(rURIReference, nullptr))
+ {
+ rOptions.setLocked();
+ }
+ }
}
auto CurlProcessor::PropFind(