WIP fix ee9 session tests

This commit is contained in:
Jan Bartel 2022-05-09 14:23:14 +02:00
parent 5aadbb6006
commit 963251faa4
4 changed files with 2 additions and 5 deletions

View File

@ -125,7 +125,7 @@ public class ContextHandlerCollection extends Handler.Collection
public Request.Processor handle(Request request) throws Exception
{
List<Handler> handlers = getHandlers();
//
// Handle no contexts
if (handlers == null || handlers.isEmpty())
return null;

View File

@ -393,7 +393,6 @@ public class SessionHandler extends ScopedHandler implements SessionConfig.Mutab
@Override
public void doScope(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
System.err.println("doscope sessionhandler " + _contextHandler);
if (baseRequest.getDispatcherType() == DispatcherType.REQUEST)
{
org.eclipse.jetty.server.Request coreRequest = baseRequest.getHttpChannel().getCoreRequest();

View File

@ -252,8 +252,6 @@ public class CreationTest
/**
* Create and then invalidate and then create a session in the same request
*/
//TODO not working
@Disabled
@Test
public void testSessionCreateInvalidateCreate() throws Exception
{

View File

@ -275,7 +275,7 @@ public class IdleSessionTest
HttpSession session = request.getSession(false);
assertNotNull(session);
assertEquals(originalId, session.getId());
Session s = (Session)session;
Session s = ((org.eclipse.jetty.ee9.nested.Request)request).getCoreSession();
try (AutoLock lock = s.lock())
{
assertTrue(s.isResident());