diff options
Diffstat (limited to 'wsd/Storage.cpp')
-rw-r--r-- | wsd/Storage.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wsd/Storage.cpp b/wsd/Storage.cpp index e67c568ac..08a974d0d 100644 --- a/wsd/Storage.cpp +++ b/wsd/Storage.cpp @@ -770,6 +770,7 @@ WopiStorage::WOPIFileInfo::WOPIFileInfo(const FileInfo &fileInfo, bool WopiStorage::updateLockState(const Authorization& auth, const std::string& cookies, LockContext& lockCtx, bool lock) { + lockCtx._lockFailureReason.clear(); if (!lockCtx._supportsLocks) return true; @@ -821,7 +822,10 @@ bool WopiStorage::updateLockState(const Authorization& auth, const std::string& { std::string sMoreInfo = response.get("X-WOPI-LockFailureReason", ""); if (!sMoreInfo.empty()) + { + lockCtx._lockFailureReason = sMoreInfo; sMoreInfo = ", failure reason: \"" + sMoreInfo + "\""; + } LOG_WRN("Un-successful " << wopiLog << " with status " << response.getStatus() << sMoreInfo << " and response: " << responseString); } |