You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Fabian Richter (JIRA)" <ji...@apache.org> on 2014/08/21 10:31:12 UTC
[jira] [Created] (WW-4390) paramsPrepareParamsStack ignored
excludeParams parameter in second params-Interceptor
Fabian Richter created WW-4390:
----------------------------------
Summary: 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
When using paramsPrepareParamsStack with the convention plugin multiple duplicate errors/warnings with devMode=true occur like:
Error setting expression 'token' with value ['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ]
Error setting expression 'token' with value ['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ]
By excluding these params (important is 'token') I was able to get rid of the duplication of these messages:
@InterceptorRefs({@InterceptorRef(value = "paramsPrepareParamsStack", params = {"params.excludeParams",
"struts.token,struts.token.name,token"})})
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.2#6252)