[
https://issues.apache.org/jira/browse/WW-4288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897854#comment-13897854
]
Jasper Rosenberg commented on WW-4288:
--------------------------------------
Whoops, totally wrong :) I was trying to find the version where that change
went in and missed it. (Gotta get Git setup locally so I don't have to use the
web source viewer). I now see that it has been like this since xwork was
brought into the struts2 project. It's weird though because I could have sworn
it used to work...
> staticParams interceptor overwrites params conversion errors
> ------------------------------------------------------------
>
> Key: WW-4288
> URL: https://issues.apache.org/jira/browse/WW-4288
> Project: Struts 2
> Issue Type: Bug
> Components: Core Interceptors
> Affects Versions: 2.3.15.3
> Reporter: Jasper Rosenberg
> Fix For: 2.3.x
>
>
> Have a stack like:
> ...
> <interceptor-ref name="params">
> <interceptor-ref name="staticParams"/>
> ...
> <interceptor-ref name="conversionError"/>
> If have type conversion errors in params, they aren't seen by the
> conversionError interceptor.
> It looks like this in StaticParametersInterceptor:
> {code:java}
> if (clearableStack && (stack.getContext() != null) &&
> (newStack.getContext() != null))
> stack.getContext().put(ActionContext.CONVERSION_ERRORS,
> newStack.getContext().get(ActionContext.CONVERSION_ERRORS));
> {code}
> ends up just overwriting the old value of ActionContext.CONVERSION_ERRORS
> rather than merging.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)