| Summary: | HttpSession.isNew() fails with MongoSessionManager | ||
|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | Jan Bartel <janb> |
| Component: | server | Assignee: | 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: | |||
took care of this, thanks |
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.