Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 371040 - HttpSession.isNew() fails with MongoSessionManager
Summary: HttpSession.isNew() fails with MongoSessionManager
Status: CLOSED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 7.6.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.5.x   Edit
Assignee: Jesse McConnell CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-09 02:05 EST by Jan Bartel CLA
Modified: 2012-02-09 13:56 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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