You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2009/03/07 21:20:58 UTC

[jira] Assigned: (WICKET-2151) WicketSessionFilter doesn't takes into account WebApplication#getSessionAttributePrefix(WebRequest)

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

Igor Vaynberg reassigned WICKET-2151:
-------------------------------------

    Assignee: Igor Vaynberg

> WicketSessionFilter doesn't takes into account WebApplication#getSessionAttributePrefix(WebRequest)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2151
>                 URL: https://issues.apache.org/jira/browse/WICKET-2151
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.5
>         Environment: Any
>            Reporter: Martin Grigorov
>            Assignee: Igor Vaynberg
>         Attachments: quickstart.tgz
>
>
> WicketSessionFilter#init(FilterConfig), line 139 constructs the 'sessionKey' without taking into account the return value of WebApplication#getSessionAttributePrefix(WebRequest).
> Patch:
> Index: protocol/http/servlet/WicketSessionFilter.java
> ===================================================================
> --- protocol/http/servlet/WicketSessionFilter.java	(revisión: 725053)
> +++ protocol/http/servlet/WicketSessionFilter.java	(copia de trabajo)
> @@ -28,6 +28,7 @@
>  import javax.servlet.http.HttpSession;
>  
>  import org.apache.wicket.Session;
> +import org.apache.wicket.protocol.http.WebApplication;
>  import org.slf4j.Logger;
>  import org.slf4j.LoggerFactory;
>  
> @@ -136,7 +137,8 @@
>  			log.debug("filterName/ application key set to " + filterName);
>  		}
>  
> -		sessionKey = "wicket:" + filterName + ":" + Session.SESSION_ATTRIBUTE_NAME;
> +		WebApplication application = WebApplication.get(filterName);
> +		sessionKey = application.getSessionAttributePrefix(null) + Session.SESSION_ATTRIBUTE_NAME;
>  
>  		if (log.isDebugEnabled())
>  		{

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