[
https://issues.apache.org/jira/browse/WW-5706?focusedWorklogId=1038872&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1038872
]
ASF GitHub Bot logged work on WW-5706:
--------------------------------------
Author: ASF GitHub Bot
Created on: 31/Aug/26 18:04
Start Date: 31/Aug/26 18:04
Worklog Time Spent: 10m
Work Description: lukaszlenart merged PR #1881:
URL: https://github.com/apache/struts/pull/1881
Issue Time Tracking
-------------------
Worklog Id: (was: 1038872)
Time Spent: 1h (was: 50m)
> 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)