You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2013/04/16 21:35:16 UTC

[jira] [Commented] (WW-4023) ParametersInterceptor produces a warning when parameter method:* is set

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

Lukasz Lenart commented on WW-4023:
-----------------------------------

Problem occurs only in devMode. The second is that ParametersInterceptor is in XWork core, but method:, action: and redirect: are defined in DefaultActionMapper in Struts2 core :\

Adding them as a excludeParams will add cross dependency, I don't see a good solution now.
                
> ParametersInterceptor produces a warning when parameter method:* is set
> -----------------------------------------------------------------------
>
>                 Key: WW-4023
>                 URL: https://issues.apache.org/jira/browse/WW-4023
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.7, 2.3.8, 2.3.12
>            Reporter: Jon Y.
>             Fix For: 2.3.15
>
>
> The following example produces a form with the parameter names: number and method:add
> {code:xml}
> <s:form namespace="/example" action="example">
> <s:textfield name="number"/>
> <s:submit method="add" value="Add"></s:submit>
> </s:form>
> {code}
> The ParametersInterceptor throws a warning when devMode is set:
> {quote}
> Parameter [method:add] didn't match acceptedPattern pattern!
> {quote} 
> I think this warn message shouldn't be logged because it's a normal use case. The "method:" parameter should be included in the excludeParams configuration.
> This issue relates to [WW-3973].

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira