Skip to content

Commit

Permalink
jetty-9 removed debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
gregw committed Aug 19, 2012
1 parent 4ff7ae6 commit 4f30fb1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ public Authentication validateRequest(ServletRequest req, ServletResponse res, b
return _deferred;

HttpSession session = request.getSession(true);
System.err.println(session.getId()+((HashedSession)session).getAttributeMap());

try
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,8 @@ protected HttpSession renewSession(HttpServletRequest request, HttpServletRespon
//(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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ public void testFormRedirect() throws Exception
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" +
Expand All @@ -341,7 +340,6 @@ public void testFormRedirect() throws Exception
"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" +
Expand All @@ -353,11 +351,9 @@ public void testFormRedirect() throws Exception
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" +
Expand Down

0 comments on commit 4f30fb1

Please sign in to comment.