Issue #9046 Fix tck session invalidate test (#9047)

This commit is contained in:
Jan Bartel 2022-12-14 08:25:52 +11:00 committed by GitHub
parent e16b7948b2
commit f139b66d63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -696,7 +696,7 @@ public class ServletContextRequest extends ContextRequest
if (getRequestedSessionId() == null || _coreSession == null)
return false;
//check requestedId (which may have worker suffix) against the actual session id
return getSessionManager().getSessionIdManager().getId(getRequestedSessionId()).equals(_coreSession.getId());
return _coreSession.isValid() && getSessionManager().getSessionIdManager().getId(getRequestedSessionId()).equals(_coreSession.getId());
}
@Override

View File

@ -1511,7 +1511,7 @@ public class Request implements HttpServletRequest
if (getRequestedSessionId() == null || _coreSession == null)
return false;
return (_sessionManager.getSessionIdManager().getId(getRequestedSessionId()).equals(_coreSession.getId()));
return (_coreSession.isValid() && _sessionManager.getSessionIdManager().getId(getRequestedSessionId()).equals(_coreSession.getId()));
}
@Override