Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4023

ParametersInterceptor produces a warning when parameter method:* is set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.7, 2.3.8, 2.3.12
    • 2.3.16
    • Core Interceptors
    • 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.

      Attachments

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              pepsifan Jon Y.
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: