← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1717: STQC security: Users are not shown unexpected exception on screen

 

------------------------------------------------------------
revno: 1717
committer: Saptarshi <sunbiz@xxxxxxxxx>
branch nick: trunk
timestamp: Wed 2010-03-31 21:01:07 +0200
message:
  STQC security: Users are not shown unexpected exception on screen
added:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/error.html
modified:
  dhis-2/dhis-web/dhis-web-portal/src/main/webapp/WEB-INF/web.xml


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/error.html'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/error.html	1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/error.html	2010-03-31 19:01:07 +0000
@@ -0,0 +1,67 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+    <head>
+        <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"><title>DHIS 2 - Error Occurred</title>
+        <style type="text/css" media="screen">
+            <!--
+            body
+            {
+                color: white;
+                background-color: #425073;
+                margin: 0px
+            }
+
+            #horizon
+            {
+                color: white;
+                background-color: transparent;
+                text-align: center;
+                position: absolute;
+                top: 30%;
+                left: 0px;
+                width: 100%;
+                height: 1px;
+                overflow: visible;
+                visibility: visible;
+                display: block
+            }
+
+            #content
+            {
+                font-family: Verdana, Geneva, Arial, sans-serif;
+                background-color: transparent;
+            }
+
+            #logo
+            {
+                margin-bottom: 20px;
+                
+            }
+
+            .bodytext
+            {
+                font-size: 14px
+            }
+
+            .headline
+            {
+                font-weight: bold;
+                font-size: 24px
+            }
+
+            -->
+        </style>
+    </head>
+    <body>
+        <div id="horizon">
+            <div id="content">
+                <div id="logo"><img src="../images/logo_banner.png" alt="" /></div>
+                <div class="bodytext">
+                    <span class="headline">Aw, Snap! Something went wrong</span><br>
+					Do not panic... We've recorded in the log
+                </div> <br>
+                <input type="button" value="Go Back" onclick="history.go( -1 )">
+            </div>
+        </div>
+    </body>
+</html>
\ No newline at end of file

=== modified file 'dhis-2/dhis-web/dhis-web-portal/src/main/webapp/WEB-INF/web.xml'
--- dhis-2/dhis-web/dhis-web-portal/src/main/webapp/WEB-INF/web.xml	2010-03-09 15:29:22 +0000
+++ dhis-2/dhis-web/dhis-web-portal/src/main/webapp/WEB-INF/web.xml	2010-03-31 19:01:07 +0000
@@ -73,4 +73,9 @@
     <url-pattern>/pdf/*</url-pattern>
   </servlet-mapping>
 
+  <error-page>
+   <exception-type>java.lang.Throwable</exception-type>
+   <location>/error.html</location>
+  </error-page>
+
 </web-app>