ucb/source/ucp/webdav-curl/CurlSession.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit ae8528e4b7c219411e4fa6f33fc693479bb5ce56 Author: Michael Stahl <[email protected]> AuthorDate: Mon Oct 11 13:45:19 2021 +0200 Commit: Michael Stahl <[email protected]> CommitDate: Mon Nov 1 18:38:02 2021 +0100 ucb: webdav-curl: CurlSession OPTIONS() lock cache Change-Id: I3a815e70db04439dc33d57ce9e214d52a7f0e08d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123465 Tested-by: Michael Stahl <[email protected]> Reviewed-by: Michael Stahl <[email protected]> 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(
