WIP fix ee9 session tests
This commit is contained in:
parent
5aadbb6006
commit
963251faa4
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue