diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2021-10-11 13:45:19 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-11-01 18:38:02 +0100 |
commit | ae8528e4b7c219411e4fa6f33fc693479bb5ce56 (patch) | |
tree | daba4adcefe963285732dac35e91a55e176b882d | |
parent | 51579e00fef7baf5e248b1e9a2bf0e9fa8ef1a60 (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>
-rw-r--r-- | ucb/source/ucp/webdav-curl/CurlSession.cxx | 7 |
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( |