You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Andrew Khomyakov (JIRA)" <ji...@apache.org> on 2010/11/29 16:45:14 UTC

[jira] Commented: (TAP5-891) RequestImpl.getSession(true) is broken

    [ https://issues.apache.org/jira/browse/TAP5-891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12964783#action_12964783 ] 

Andrew Khomyakov commented on TAP5-891:
---------------------------------------

Hello!
How to replace existing RequestImpl with your implementation? Our project uses maven and it's not good idea to replace it inside the jar. Also I can not put it into the classpath, because we pack all java classes in jar.
Also, if I write method buildHttpServletRequestHandler in our TapestryModule, the application does not start without any exception or any calls of this method.
Could I write something in TapestryModule to make it work?

Thanks

> RequestImpl.getSession(true) is broken
> --------------------------------------
>
>                 Key: TAP5-891
>                 URL: https://issues.apache.org/jira/browse/TAP5-891
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5
>            Reporter: Olle Hallin
>         Attachments: RequestImpl.java, RequestImplTest.java
>
>
> I think that the implementation of org.apache.tapestry5.internal.services.RequestImpl.getSession(true) is broken.
> It returns an old invalidated session instead of creating a new.
> IMO this is a bug since it behaves differently than HttpServletRequest.getSession(true).
> This is the expected behaviour:
> 1. Session s1 = request.getSession(true);
> 2. s1.invalidate();
> 3. Session s2 = request.getSession(true);
> 4. assertNotNull(s2);
> 5. assertNotSame(s1, s2);
> 6. assertFalse(s2.isInvalidated());

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.