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 Thu, 21 Aug 2014 08:38:04 GMT
Great! Thanks!

2014-08-21 10:31 GMT+02:00 Fabian Richter <frichter@mtg.de>:
> Done, see WW-4390
>
> Am 20.08.2014 um 21:09 schrieb Lukasz Lenart:
>>
>> 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
>>
>

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


Mime
View raw message