struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: paramsPrepareParamsStack and token interceptor
Date Wed, 20 Aug 2014 19:09:36 GMT
2014-08-19 17:09 GMT+02:00 Fabian Richter <frichter@mtg.de>:
> Hi,
>
> when using paramsPrepareParamsStack with the convention plugin I'm getting
> multiple errors/warnings in devMode=true:
>
> Error setting expression 'token' with value
> ['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ]
> Error setting expression 'token' with value
> ['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ]
>
> At least one I got rid of by excluding these params (important is 'token'):
>
> @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, which
> is rather uncool :/
>
> Bug or feature?

Feature and bug ;-) This kind of error report was introduced to inform
developer about possible typo in setter or value name in JSP, but you
are right, it's a bit annoying when something stupid like this clutter
the logs. Please fill an issue in JIRA.


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message