# HG changeset patch # User Björn Ricks # Date 1352885841 -3600 # Node ID fea3e4b6fabaa669f5ffa93cdd4231663a3875a1 # Parent 5041105d2edd168a49a0a6709adfa5ba6d29f2f6 Return after sending a redirect Maybe this avoids the internel state errors in tomcat. diff -r 5041105d2edd -r fea3e4b6faba flys-client/src/main/java/de/intevation/flys/client/server/LoginServlet.java --- 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; } }