diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2021-11-25 18:40:38 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-11-26 18:03:11 +0100 |
commit | a2decb07a8c4fc63d0b535501e26d82f84dcaf17 (patch) | |
tree | b0556f186c42987edd82c54b1565d4a2b130e530 /ucb/source | |
parent | 8edbf6b1c8e7359f26a41ce6c5524d19eda05e08 (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>
(cherry picked from commit 9f94ea12c7d919441ccbb8ebc99adff11a2e6fd1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125887
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/ucp/webdav-curl/SerfLockStore.cxx | 5 |
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; } |