Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 371040

Summary: HttpSession.isNew() fails with MongoSessionManager
Product: [RT] Jetty Reporter: Jan Bartel <janb>
Component: serverAssignee: Jesse McConnell <jesse.mcconnell>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox
Version: 7.6.0   
Target Milestone: 7.5.x   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Jan Bartel CLA 2012-02-09 02:05:02 EST
See AbstractNewSessionTest. If the TestServlet is modified to check if the session is new like so:

 if ("create".equals(action))
            {
                HttpSession session = request.getSession(true);
                assertTrue(session.isNew());
            }

then the assert fails.

I think this is because the NoSqlSession constructor always calls the AbstractSession constructor that is intended for use when re-inflating a previously saved session, instead of the constructor for a brand new session.
Comment 1 Jesse McConnell CLA 2012-02-09 13:56:39 EST
took care of this, thanks