| Summary: | [GSS] (6.4.z) JvmRouteValve resets cookie max-age | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | dereed |
| Component: | Clustering | Assignee: | Paul Ferraro <paul.ferraro> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jiří Bílek <jbilek> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 6.4.6 | CC: | bmaxwell, jbilek, jtruhlar, paul.ferraro, ppalaga, rbost, smatasar |
| Target Milestone: | CR1 | ||
| Target Release: | EAP 6.4.12 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | eap6412-proposed | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-01-17 13:11:46 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 1375585 | ||
Verified with EAP 6.4.12.CP.CR1 Retroactively bulk-closing issues from released EAP 6.4 cummulative patches. |
When the JvmRouteValve resets the session cookie, it hard-codes max-age to -1. It should use the max-age configured for the session cookie. org.jboss.as.web.session.AbstractSessionManager#setNewSessionCookie // JBAS-6206. Configure cookie a la o.a.c.connector.Request.configureSessionCookie() cookie.setMaxAge(-1); ... However Request.configureSessionCookie has instead: cookie.setMaxAge(context.getSessionCookie().getMaxAge()); It appears the code was copied long ago before max-age was added to the session cookie configuration, and not kept in sync.