You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Michael Zhavzharov (JIRA)" <ji...@apache.org> on 2013/05/16 14:25:16 UTC

[jira] [Updated] (WICKET-5191) Session is created unnecessarily

     [ https://issues.apache.org/jira/browse/WICKET-5191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Zhavzharov updated WICKET-5191:
---------------------------------------

    Attachment: multiple_session.zip

When I created a quickstart, the StackTrace of app.newSession() method, have changed and do not calls getSessionId() method now.
Now for all session creation it is:
1)com.alee.WicketApplication.newSession(WicketApplication.java:37)
2)org.apache.wicket.Application.fetchCreateAndSetSession(Application.java:1557)
3)org.apache.wicket.Session.get(Session.java:152)
4)org.apache.wicket.RestartResponseAtInterceptPageException$InterceptData.get(RestartResponseAtInterceptPageException.java:146)
5)org.apache.wicket.RestartResponseAtInterceptPageException$1.matchedData(RestartResponseAtInterceptPageException.java:211)
6)org.apache.wicket.RestartResponseAtInterceptPageException$1.getCompatibilityScore(RestartResponseAtInterceptPageException.java:179)
7)org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:134)
8)org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:182)
9)org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:207)
10)org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281)
11)org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
12)org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:245)
13)org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
...
                
> Session is created unnecessarily
> --------------------------------
>
>                 Key: WICKET-5191
>                 URL: https://issues.apache.org/jira/browse/WICKET-5191
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.6.0
>            Reporter: Michael Zhavzharov
>            Priority: Minor
>         Attachments: multiple_session.zip
>
>
> PageRenderer#getSessionId() should check for existence of a Session, otherwise session could creates multiple types. 
> For example if we mount home page, and starts an app, it will creates session 2 times, because of redirect, I think.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira