struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florent Fourcade (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4777) Bug in AliasInterceptor when used to aliases http parameters
Date Wed, 29 Mar 2017 11:17:41 GMT

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

Florent Fourcade updated WW-4777:
---------------------------------
    Description: 
When using AliasInterceptor to aliases http parameters, the AliasInterceptor put in the value
stack an instance of Parameter when it should call getValue() on this instance.

The problem seems to be located at line 168 of AliasInterceptor : 
{code}
value = new Evaluated(contextParameters.get(name));
{code}
when it could be something like :
{code}
Parameter param = contextParameters.get(name);
if (param != null){
value = new Evaluated(param.getValue());
}
{code}


  was:
When using AliasInterceptor to aliases http parameters, the AliasInterceptor put in the value
stack an instance of Parameter when it should call getValue() on this instance.

The problem seems to be located at line 168 of AliasInterceptor : 
value = new Evaluated(contextParameters.get(name));

when it could be something like :

Parameter param = contextParameters.get(name);
if (param != null){
value = new Evaluated(param.getValue());
}



> Bug in AliasInterceptor when used to aliases http parameters
> ------------------------------------------------------------
>
>                 Key: WW-4777
>                 URL: https://issues.apache.org/jira/browse/WW-4777
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.5.5
>            Reporter: Florent Fourcade
>            Priority: Minor
>
> When using AliasInterceptor to aliases http parameters, the AliasInterceptor put in the
value stack an instance of Parameter when it should call getValue() on this instance.
> The problem seems to be located at line 168 of AliasInterceptor : 
> {code}
> value = new Evaluated(contextParameters.get(name));
> {code}
> when it could be something like :
> {code}
> Parameter param = contextParameters.get(name);
> if (param != null){
> value = new Evaluated(param.getValue());
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message