[gatein-issues] [JBoss JIRA] Closed: (GTNWCI-15) Portlets and servlets within the same .war don't share the same session

Matt Wringe (JIRA) jira-events at lists.jboss.org
Fri Apr 23 10:32:10 EDT 2010


     [ https://jira.jboss.org/jira/browse/GTNWCI-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Wringe closed GTNWCI-15.
-----------------------------

    Resolution: Duplicate Issue


Opened jira GTNPORTAL-1118 for the cross context sessions issues, this has now been fixed.

> Portlets and servlets within the same .war don't share the same session
> -----------------------------------------------------------------------
>
>                 Key: GTNWCI-15
>                 URL: https://jira.jboss.org/jira/browse/GTNWCI-15
>             Project: GateIn Web Container Integration
>          Issue Type: Bug
>    Affects Versions: 2.0.0-GA
>         Environment: GateIn with JBoss - 3.0-Final, GateIn with Tomcat - 3.0-Final
>            Reporter: Marko Strukelj
>         Attachments: portlet_with_servlet.zip
>
>
> Servlets don't see an already existing session previously used by portlets in the same .war, as required by Portlet Spec.
> The consequence of this is that if you use PortletSession.setAttribute("someAttr", "Some value", PortletSession.APPLICATION_SCOPE) in your portlet and HttpSession.getAttribute("someAttrs") in your servlet, the servlet will get null, because it uses a session with a different id.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list