summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2021-11-25 18:40:38 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2021-11-26 12:24:56 +0100
commit9f94ea12c7d919441ccbb8ebc99adff11a2e6fd1 (patch)
treefdac8a3a59c5482ec5e188c7fbaa748db6759e90 /ucb
parentf50d0ca0978d8c6b8dff5ce680bce9fe71c0a7dd (diff)
ucb: webdav-curl: remove useless assert in getLockTokenForURI()
Change-Id: Ia27acf55bd7baf70c0b57e0922a62b1d9680c5b4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125848 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav-curl/SerfLockStore.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/ucb/source/ucp/webdav-curl/SerfLockStore.cxx b/ucb/source/ucp/webdav-curl/SerfLockStore.cxx
index 0de397986f8f..3601d0c66642 100644
--- a/ucb/source/ucp/webdav-curl/SerfLockStore.cxx
+++ b/ucb/source/ucp/webdav-curl/SerfLockStore.cxx
@@ -168,7 +168,10 @@ SerfLockStore::getLockTokenForURI(OUString const& rURI, css::ucb::Lock const*con
{
return nullptr;
}
- assert(it->second.m_Lock.Owner == pLock->Owner); // only own locks expected
+ // Only own locks are expected in the lock store, but depending on the
+ // server it->second.m_Lock.Owner may contain the string this UCP passed in
+ // the LOCK request, or a user identifier generated by the server (happens
+ // with Sharepoint), so just ignore it here.
// ignore Timeout ?
return &it->second.m_sToken;
}