loolwsd/PrisonerSession.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
New commits: commit c4ae6da86fe821ee8826861167b695a7fd200577 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> Date: Sun May 29 12:00:09 2016 -0400 loolwsd: bccu#1687 - leaking loolkit processes When conversion fails we still have to put something in the save-as queue to avoid hanging WSD forever. Reviewed-on: https://gerrit.libreoffice.org/25618 Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> (cherry picked from commit 0c6887c744fcd811728de43a971ee9c964d86e8e) Change-Id: Ibc518bc922ee40f579a71e07571b21d9e633d998 Reviewed-on: https://gerrit.libreoffice.org/25623 Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> diff --git a/loolwsd/PrisonerSession.cpp b/loolwsd/PrisonerSession.cpp index 2a2fb8a..487fb7f 100644 --- a/loolwsd/PrisonerSession.cpp +++ b/loolwsd/PrisonerSession.cpp @@ -135,7 +135,16 @@ bool PrisonerSession::_handleInput(const char *buffer, int length) { // Rewrite file:// URLs, as they are visible to the outside world. const Path path(_docBroker->getJailRoot(), url.substr(filePrefix.length())); - url = filePrefix + path.toString().substr(1); + if (Poco::File(path).exists()) + { + url = filePrefix + path.toString().substr(1); + } + else + { + // Blank for failure. + Log::debug("SaveAs produced no output, producing blank url."); + url.clear(); + } } peer->setSaveAsUrl(url); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits