Issue Details (XML | Word | Printable)

Key: EQX-117
Type: Bug Bug
Status: Resolved Resolved
Resolution: Cannot Reproduce
Priority: Minor Minor
Assignee: Matt Raible
Reporter: Anno Langen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse Light

IllegalStateException in HttpSessionContextIntegrationFilter following logout

Created: 02/Nov/06 10:55 AM   Updated: 07/Sep/07 10:52 AM   Resolved: 07/Sep/07 10:52 AM
Component/s: Web - General
Affects Version/s: 1.7
Fix Version/s: 1.8


 Description  « Hide
The default behavior of the SecurityContextLogoutHandler is to invalidate the session. This causes an IllegalStateException in HttpSessionContextIntegrationFilter following logout. I fix this in security.xml:

         <constructor-arg>
             <list>
                 <ref bean="rememberMeServices"/>
- <bean class="org.acegisecurity.ui.logout.SecurityContextLogoutHandler"/>
+ <ref bean="logoutHandler"/>
             </list>
         </constructor-arg>
         <property name="filterProcessesUrl" value="/logout.jsp"/>
     </bean>
 
+ <bean id="logoutHandler" class="org.acegisecurity.ui.logout.SecurityContextLogoutHandler">
+ <property name="invalidateHttpSession" value="false"/>
+ </bean>
+
     <bean id="authenticationProcessingFilter" class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter">
         <property name="authenticationManager" ref="authenticationManager"/>
         <property name="authenticationFailureUrl" value="/login.jsp?error=true"/>


Matt Raible made changes - 02/Nov/06 11:06 AM
Field Original Value New Value
Fix Version/s 1.8 [ 10100 ]
Matt Raible added a comment - 07/Sep/07 10:52 AM
Unable to reproduce using "mvn jetty:run".

Matt Raible made changes - 07/Sep/07 10:52 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Cannot Reproduce [ 5 ]