changeset 4489:fea3e4b6faba

Return after sending a redirect Maybe this avoids the internel state errors in tomcat.
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 14 Nov 2012 10:37:21 +0100
parents 5041105d2edd
children 82cc03e5f1c4
files flys-client/src/main/java/de/intevation/flys/client/server/LoginServlet.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/LoginServlet.java	Wed Nov 14 10:36:21 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/LoginServlet.java	Wed Nov 14 10:37:21 2012 +0100
@@ -80,6 +80,7 @@
             if (aresp == null || !aresp.isSuccess()) {
                 logger.debug("Authentication not successful");
                 this.redirectFailure(resp, req.getContextPath());
+                return;
             }
             User user = aresp.getUser();
 
@@ -90,6 +91,7 @@
                 if (!client.createUser(user)) {
                     this.redirectFailure(resp, req.getContextPath(),
                             "Could not create new user");
+                    return;
                 }
             }
 

http://dive4elements.wald.intevation.org