From 98a1059413a20424351b8169003ec6216a2ce3fb Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Mon, 18 May 2015 22:09:11 +0100 Subject: [PATCH] ui: add custom error handling page This makes sure we don't expose CloudStack stacktrace (if any) on the frontend instead redirect to show an error handling page. This closes #256 (cherry picked from commit 112cecc2d4e44d032fb57d9794b02fe694122447) Signed-off-by: Rohit Yadav --- client/WEB-INF/web.xml | 6 ++++++ ui/error.jsp | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 ui/error.jsp diff --git a/client/WEB-INF/web.xml b/client/WEB-INF/web.xml index 7ccfc316617..a384f064794 100644 --- a/client/WEB-INF/web.xml +++ b/client/WEB-INF/web.xml @@ -77,4 +77,10 @@ *.html *.js + + + java.lang.Exception + /error.jsp + + diff --git a/ui/error.jsp b/ui/error.jsp new file mode 100644 index 00000000000..88fdfa1043e --- /dev/null +++ b/ui/error.jsp @@ -0,0 +1,12 @@ + + + + + + Apache CloudStack + + + +

Oops, looks like CloudStack hit an error. Ask your CloudStack Administrator to look into it.

+ +