Struts 2
  1. Struts 2
  2. WW-4023

ParametersInterceptor produces a warning when parameter method:* is set

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.7, 2.3.8, 2.3.12
    • Fix Version/s: 2.3.16
    • Component/s: Core Interceptors
    • Labels:
      None

      Description

      The following example produces a form with the parameter names: number and method:add

      <s:form namespace="/example" action="example">
      <s:textfield name="number"/>
      <s:submit method="add" value="Add"></s:submit>
      </s:form>
      

      The ParametersInterceptor throws a warning when devMode is set:

      Parameter [method:add] didn't match acceptedPattern pattern!

      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.

        Issue Links

          Activity

            People

            • Assignee:
              Lukasz Lenart
              Reporter:
              Jon Y.
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development