Lukasz Lenart created WW-5706:
---------------------------------

             Summary: RestfulActionMapper does not apply the action name 
validation used by DefaultActionMapper
                 Key: WW-5706
                 URL: https://issues.apache.org/jira/browse/WW-5706
             Project: Struts 2
          Issue Type: Bug
            Reporter: Lukasz Lenart
             Fix For: 7.4.0, 6.12.0


{{RestfulActionMapper.getMapping()}} derives the action name directly from the 
request URI ({{actionName = uri.substring(1, nextSlash)}}), whereas 
{{DefaultActionMapper}} normalizes and validates the action name through 
{{cleanupActionName}} against the {{allowedActionNames}} pattern.

Align {{RestfulActionMapper}} with {{DefaultActionMapper}} so both apply the 
same action-name handling.

{{Restful2ActionMapper}} already extends {{DefaultActionMapper}} and inherits 
this behaviour, so no change is needed there.

Add a regression test covering the aligned handling.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to