summaryrefslogtreecommitdiffstats
path: root/common/Authorization.cpp
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2019-12-23 19:15:38 +0530
committerMichael Meeks <michael.meeks@collabora.com>2020-01-22 23:23:51 +0100
commita019c93d90e08aceb8b645e6cf963e6256fb38c6 (patch)
treee7ad2b35b2c5d7320fd5cfc34c3d51c114e2353f /common/Authorization.cpp
parentcypress: Use a bigger timeout for document load. (diff)
downloadonline-a019c93d90e08aceb8b645e6cf963e6256fb38c6.tar.gz
online-a019c93d90e08aceb8b645e6cf963e6256fb38c6.zip
Resolved: Server crash when link opened in new tab
When trying to open a link normally from help->Online help nothing happens but the popup is closed. When trying to open a like forcefully in new tab from help->online help it crashes the server. Change-Id: I7e0944ebe521002625a84e155e379ed7e25d2309 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/85466 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'common/Authorization.cpp')
-rw-r--r--common/Authorization.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/Authorization.cpp b/common/Authorization.cpp
index dce34abb09..138f98889b 100644
--- a/common/Authorization.cpp
+++ b/common/Authorization.cpp
@@ -11,6 +11,8 @@
#include "Authorization.hpp"
#include "Protocol.hpp"
+#include "Log.hpp"
+#include <Exceptions.hpp>
#include <cstdlib>
#include <cassert>
@@ -77,7 +79,9 @@ void Authorization::authorizeRequest(Poco::Net::HTTPRequest& request) const
break;
}
default:
- assert(false);
+ // assert(false);
+ throw BadRequestException("Invalid HTTP request type");
+ break;
}
}