[
https://issues.apache.org/jira/browse/WW-5706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart resolved WW-5706.
-------------------------------
Resolution: Fixed
> 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
> Priority: Major
> Fix For: 6.12.0, 7.4.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> {{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)