cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Gerzabek" <michael.gerza...@gmx.net>
Subject [BUG] SessionModule creates sessions on default
Date Tue, 13 Jan 2004 10:31:53 GMT
recently I found another bug in SessionModule. Though it say's explicitly it
doesn't create a new seesion on default it does exactly this. See the pasted
snapshots below.

from o.a.c.environment.Session (javax.servlet.http.HttpSession) Interface:
/**
*
* Returns the current session associated with this request,
* or if the request does not have a session, creates one.
*
* @return                the <code>Session</code> associated
*                        with this request
*
* @see        #getSession(boolean)
*
*/
Session getSession();


from o.a.c.components.module.input.SessionModule:
/* ...
* <strong>NOTE:</strong> The module does not create a new session.
*/

    protected Object getContextObject(Configuration modeConf,
                                      Map objectModel) {

        return ObjectModelHelper.getRequest(objectModel).getSession();
    }

it should be 
    return ObjectModelHelper.getRequest(objectModel).getSession( false );

Regards
Michael

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net



Mime
View raw message