jetty-9 removed debugs
This commit is contained in:
parent
4ff7ae6106
commit
4f30fb17a6
|
@ -201,7 +201,6 @@ public class FormAuthenticator extends LoginAuthenticator
|
||||||
return _deferred;
|
return _deferred;
|
||||||
|
|
||||||
HttpSession session = request.getSession(true);
|
HttpSession session = request.getSession(true);
|
||||||
System.err.println(session.getId()+((HashedSession)session).getAttributeMap());
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
//(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)
|
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);
|
HttpSession newSession = AbstractSessionManager.renewSession(request, httpSession,true);
|
||||||
LOG.debug("renew {}->{}",httpSession.getId(),newSession.getId());
|
LOG.debug("renew {}->{}",httpSession.getId(),newSession.getId());
|
||||||
System.err.println(((HashedSession)newSession).getAttributeMap());
|
|
||||||
httpSession=newSession;
|
httpSession=newSession;
|
||||||
}
|
}
|
||||||
return httpSession;
|
return httpSession;
|
||||||
|
|
|
@ -332,7 +332,6 @@ public class ConstraintTest
|
||||||
assertThat(response,containsString(" 200 OK"));
|
assertThat(response,containsString(" 200 OK"));
|
||||||
assertThat(response,containsString("URI=/ctx/testLoginPage"));
|
assertThat(response,containsString("URI=/ctx/testLoginPage"));
|
||||||
|
|
||||||
System.err.println("-- wrong password");
|
|
||||||
response = _connector.getResponses("POST /ctx/j_security_check HTTP/1.0\r\n" +
|
response = _connector.getResponses("POST /ctx/j_security_check HTTP/1.0\r\n" +
|
||||||
"Cookie: JSESSIONID=" + session + "\r\n" +
|
"Cookie: JSESSIONID=" + session + "\r\n" +
|
||||||
"Content-Type: application/x-www-form-urlencoded\r\n" +
|
"Content-Type: application/x-www-form-urlencoded\r\n" +
|
||||||
|
@ -341,7 +340,6 @@ public class ConstraintTest
|
||||||
"j_username=user&j_password=wrong");
|
"j_username=user&j_password=wrong");
|
||||||
assertThat(response,containsString("Location"));
|
assertThat(response,containsString("Location"));
|
||||||
|
|
||||||
System.err.println("-- right password");
|
|
||||||
response = _connector.getResponses("POST /ctx/j_security_check HTTP/1.0\r\n" +
|
response = _connector.getResponses("POST /ctx/j_security_check HTTP/1.0\r\n" +
|
||||||
"Cookie: JSESSIONID=" + session + "\r\n" +
|
"Cookie: JSESSIONID=" + session + "\r\n" +
|
||||||
"Content-Type: application/x-www-form-urlencoded\r\n" +
|
"Content-Type: application/x-www-form-urlencoded\r\n" +
|
||||||
|
@ -353,11 +351,9 @@ public class ConstraintTest
|
||||||
assertThat(response,containsString("/ctx/auth/info"));
|
assertThat(response,containsString("/ctx/auth/info"));
|
||||||
session = response.substring(response.indexOf("JSESSIONID=") + 11, response.indexOf(";Path=/ctx"));
|
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" +
|
response = _connector.getResponses("GET /ctx/auth/info HTTP/1.0\r\n" +
|
||||||
"Cookie: JSESSIONID=" + session + "\r\n" +
|
"Cookie: JSESSIONID=" + session + "\r\n" +
|
||||||
"\r\n");
|
"\r\n");
|
||||||
System.err.println("==");
|
|
||||||
assertThat(response,startsWith("HTTP/1.1 200 OK"));
|
assertThat(response,startsWith("HTTP/1.1 200 OK"));
|
||||||
|
|
||||||
response = _connector.getResponses("GET /ctx/admin/info HTTP/1.0\r\n" +
|
response = _connector.getResponses("GET /ctx/admin/info HTTP/1.0\r\n" +
|
||||||
|
|
Loading…
Reference in New Issue