You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/12/30 22:27:00 UTC

[jira] [Commented] (WICKET-6441) MockHttpSession and MockSessionStore don't call onInvalidate() on invalidate()

    [ https://issues.apache.org/jira/browse/WICKET-6441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16306981#comment-16306981 ] 

ASF subversion and git services commented on WICKET-6441:
---------------------------------------------------------

Commit e6e0f0ef908dc99a924f6b1358ec5b7f3791e1f3 in wicket's branch refs/heads/master from [~mgrigorov]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=e6e0f0e ]

WICKET-6441 MockHttpSession and MockSessionStore don't call onInvalidate() on invalidate()


> MockHttpSession and MockSessionStore don't call onInvalidate() on invalidate()
> ------------------------------------------------------------------------------
>
>                 Key: WICKET-6441
>                 URL: https://issues.apache.org/jira/browse/WICKET-6441
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 8.0.0-M6
>            Reporter: Kamil
>            Assignee: Martin Grigorov
>             Fix For: 8.0.0, 7.10.0
>
>         Attachments: showcase-onInvalidate.zip
>
>
> org.apache.wicket.protocol.http.mock.MockHttpSession on invalidate calls just:
> {code}
> @Override
> public void invalidate()
> {
> 	attributes.clear();
> 	id = generateSessionId();
> }
> {code}
> while org.apache.wicket.session.HttpSessionStore valueUnbound calls
> {code}
> public void valueUnbound(final HttpSessionBindingEvent evt)
> {
> 	String sessionId = evt.getSession().getId();
> 	log.debug("Session unbound: {}", sessionId);
> 	if (wicketSession != null)
> 	{
> 		wicketSession.onInvalidate();
> 	}
> ...
> }
> {code}
> (valueUnbound is called on org.apache.catalina.session.StandardSession.invalidate)
> this causes to be impossible to properly test what happens on invalidation of the session.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)