[seam-issues] [JBoss JIRA] Created: (JBSEAM-4787) Session is destroyed by RESTeasy call
Ernst-Jan van der Laan (JIRA)
jira-events at lists.jboss.org
Tue Mar 1 09:48:05 EST 2011
Session is destroyed by RESTeasy call
-------------------------------------
Key: JBSEAM-4787
URL: https://issues.jboss.org/browse/JBSEAM-4787
Project: Seam
Issue Type: Bug
Affects Versions: 2.2.1.Final
Environment: JBoss 5.1.0 GA jdk 6, Windows Vista, Chrome and FF 3.6
Reporter: Ernst-Jan van der Laan
Due to the fix for JBSEAM-4770 sessions are always removed, with the setting <resteasy:application destroy-session-after-request="true" /> (which is the default). This is a problem when the session actualy existed, and is not created, because the complete conversation is destroyed.
ContextualHttpServletRequest.java: line 44
// Force creation of the session
if (request.getSession(false) == null)
{
request.getSession(true);
}
ResteasyResourceAdapter.java: line 149
// Prevent anemic sessions clog up the server
if (application.isDestroySessionAfterRequest())
{
log.debug("Destroying HttpSession after REST request");
Session.instance().invalidate();
}
What actualy should happen is that the session is not destroyed when it already existed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list