From 4f30fb17a61b223e90d02efe2bfa03cc9e37efac Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Mon, 20 Aug 2012 09:23:47 +1000 Subject: [PATCH] jetty-9 removed debugs --- .../jetty/security/authentication/FormAuthenticator.java | 1 - .../jetty/security/authentication/LoginAuthenticator.java | 2 -- .../test/java/org/eclipse/jetty/security/ConstraintTest.java | 4 ---- 3 files changed, 7 deletions(-) diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/FormAuthenticator.java b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/FormAuthenticator.java index 57587e12b4e..effd4f7c05a 100644 --- a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/FormAuthenticator.java +++ b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/FormAuthenticator.java @@ -201,7 +201,6 @@ public class FormAuthenticator extends LoginAuthenticator return _deferred; HttpSession session = request.getSession(true); - System.err.println(session.getId()+((HashedSession)session).getAttributeMap()); try { diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/LoginAuthenticator.java b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/LoginAuthenticator.java index a1f0501f784..aefd171814f 100644 --- a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/LoginAuthenticator.java +++ b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/LoginAuthenticator.java @@ -80,10 +80,8 @@ public abstract class LoginAuthenticator implements Authenticator //(indicated by SESSION_SECURED not being set on the session) then we should change id if (_renewSession && httpSession!=null && httpSession.getAttribute(AbstractSessionManager.SESSION_KNOWN_ONLY_TO_AUTHENTICATED)!=Boolean.TRUE) { - System.err.println(((HashedSession)httpSession).getAttributeMap()); HttpSession newSession = AbstractSessionManager.renewSession(request, httpSession,true); LOG.debug("renew {}->{}",httpSession.getId(),newSession.getId()); - System.err.println(((HashedSession)newSession).getAttributeMap()); httpSession=newSession; } return httpSession; diff --git a/jetty-security/src/test/java/org/eclipse/jetty/security/ConstraintTest.java b/jetty-security/src/test/java/org/eclipse/jetty/security/ConstraintTest.java index 11eabb3779e..973fbf0f016 100644 --- a/jetty-security/src/test/java/org/eclipse/jetty/security/ConstraintTest.java +++ b/jetty-security/src/test/java/org/eclipse/jetty/security/ConstraintTest.java @@ -332,7 +332,6 @@ public class ConstraintTest assertThat(response,containsString(" 200 OK")); assertThat(response,containsString("URI=/ctx/testLoginPage")); - System.err.println("-- wrong password"); response = _connector.getResponses("POST /ctx/j_security_check HTTP/1.0\r\n" + "Cookie: JSESSIONID=" + session + "\r\n" + "Content-Type: application/x-www-form-urlencoded\r\n" + @@ -341,7 +340,6 @@ public class ConstraintTest "j_username=user&j_password=wrong"); assertThat(response,containsString("Location")); - System.err.println("-- right password"); response = _connector.getResponses("POST /ctx/j_security_check HTTP/1.0\r\n" + "Cookie: JSESSIONID=" + session + "\r\n" + "Content-Type: application/x-www-form-urlencoded\r\n" + @@ -353,11 +351,9 @@ public class ConstraintTest assertThat(response,containsString("/ctx/auth/info")); session = response.substring(response.indexOf("JSESSIONID=") + 11, response.indexOf(";Path=/ctx")); - System.err.println("--"); response = _connector.getResponses("GET /ctx/auth/info HTTP/1.0\r\n" + "Cookie: JSESSIONID=" + session + "\r\n" + "\r\n"); - System.err.println("=="); assertThat(response,startsWith("HTTP/1.1 200 OK")); response = _connector.getResponses("GET /ctx/admin/info HTTP/1.0\r\n" +