You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2016/11/16 06:20:58 UTC
[jira] [Updated] (WW-4715) Scope interceptor always resets because
of org.apache.struts2.dispatcher.HttpParameters
[ https://issues.apache.org/jira/browse/WW-4715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-4715:
------------------------------
Fix Version/s: 2.5.6
> Scope interceptor always resets because of org.apache.struts2.dispatcher.HttpParameters
> ---------------------------------------------------------------------------------------
>
> Key: WW-4715
> URL: https://issues.apache.org/jira/browse/WW-4715
> Project: Struts 2
> Issue Type: Bug
> Components: Core Interceptors
> Affects Versions: 2.5.5
> Reporter: Greg Baker
> Fix For: 2.5.6
>
>
> Line 302 of org.apache.struts2.interceptor.ScopeInterceptor performs a not-null check to see if a session reset parameter exists by calling com.opensymphony.xwork2.ActionContext.getParameters().get(...).
> The return type of getParameters() is org.apache.struts2.dispatcher.HttpParameters, and HttpParamters.get() never returns null on a missing parameter, causing the not-null check to always evaluate to true.
> This breaks the interceptor by short circuiting the scoped variable injection.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)