lukaszlenart opened a new pull request, #1881: URL: https://github.com/apache/struts/pull/1881
6.x backport of #1880. `RestfulActionMapper` derived the action name directly from the request URI, whereas `DefaultActionMapper` normalizes and validates it through `cleanupActionName` against the `allowedActionNames` pattern. This change applies the same validation in `RestfulActionMapper` (honouring the `struts.allowed.action.names` and `struts.default.action.name` settings) so both mappers handle action names consistently. When the extracted name does not match the allowed pattern, the configured default action name is used and a warning is logged. `Restful2ActionMapper` already extends `DefaultActionMapper` and inherits this behaviour, so no change is needed there. Added regression tests covering both a rejected and an accepted action name. Fixes [WW-5706](https://issues.apache.org/jira/browse/WW-5706) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
