[ 
https://issues.apache.org/jira/browse/WW-4390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14557879#comment-14557879
 ] 

Matias Rodriguez commented on WW-4390:
--------------------------------------

Hi! I believe that this issue is present on struts2-core 2.3.24. I'm using the 
following configuration:
...
{code:xml}
  <interceptor-ref name="paramsPrepareParamsStack">
    <param name="params.excludeParams">^action:.*,^method:.*,_</param>
  </interceptor-ref>
{code}
...

But the excludeParams is only consider at first params interceptor. The output 
is:

{noformat}
[2015-05-24 20:00:57,224]  WARN (CommonsLogger.java:60) - Parameter [_] matches 
excluded pattern [_]!
[2015-05-24 20:00:57,281] ERROR (CommonsLogger.java:34) - Developer 
Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting '_' on 'class 
action.flota.EventoMovilAction: Error setting expression '_' with value 
['1432508453195', ]
{noformat}

Thanks in advance!

> paramsPrepareParamsStack ignored excludeParams parameter in second 
> params-Interceptor
> -------------------------------------------------------------------------------------
>
>                 Key: WW-4390
>                 URL: https://issues.apache.org/jira/browse/WW-4390
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors, Plugin - Convention
>    Affects Versions: 2.3.16.3
>            Reporter: Fabian Richter
>            Assignee: Lukasz Lenart
>             Fix For: 2.3.20
>
>
> When using paramsPrepareParamsStack with the convention plugin multiple 
> duplicate errors/warnings with devMode=true occur like:
> {noformat}
> Error setting expression 'token' with value 
> ['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ]
> Error setting expression 'token' with value 
> ['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ]
> {noformat}
> By excluding these params (important is 'token') I was able to get rid of the 
> duplication of these messages:
> {code:java}
> @InterceptorRefs({@InterceptorRef(value = "paramsPrepareParamsStack", params 
> = {"params.excludeParams",
> "struts.token,struts.token.name,token"})})
> {code}
> But apparently only the first params interceptor in the stack uses these 
> params. The second one (the one after the prepare interceptor) only uses the 
> built-in excludeParams. So one of the above mentioned errors persists,



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to