wsd/Storage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) New commits: commit 3dbee6745b63d04afa5d2ce007ca06025f1181a5 Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Thu Nov 21 18:43:46 2019 +0000 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Thu Nov 21 18:44:38 2019 +0000
Log an error, and return failure on unhandled responses to save. Change-Id: Ib241a88e53a11276b3837f49ea6d964d706919a4 diff --git a/wsd/Storage.cpp b/wsd/Storage.cpp index d751f2f27..cc380ae7d 100644 --- a/wsd/Storage.cpp +++ b/wsd/Storage.cpp @@ -1041,6 +1041,12 @@ StorageBase::SaveResult WopiStorage::saveLocalFileToStorage(const Authorization& LOG_WRN("Invalid or missing JSON in " << wopiLog << " HTTP_CONFLICT response."); } } + else + { + LOG_ERR("Unexpected response to " << wopiLog << " : " << response.getStatus() << + "Cannot save file to WOPI storage uri [" << uriAnonym << "]. Error: "); + saveResult.setResult(StorageBase::SaveResult::FAILED); + } } catch (const Poco::Exception& pexc) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits