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>
diff --git a/ucb/source/ucp/webdav-curl/SerfLockStore.cxx b/ucb/source/ucp/webdav-curl/SerfLockStore.cxx
index 0de3979..3601d0c6 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;
}