lukaszlenart opened a new pull request, #1593:
URL: https://github.com/apache/struts/pull/1593
## Summary
- Fix `DefaultActionProxy.resolveMethod()` to only set
`methodSpecified=false` when truly defaulting to `"execute"`, not when the
method is resolved from action config (including wildcard substitution like
`method="{1}"`)
- This ensures `HttpMethodInterceptor` checks method-level
`@HttpPost`/`@HttpGet` annotations for wildcard-resolved actions
- Backport of PR #1592 to the 6.8.x branch
## Test plan
- [x] `DefaultActionProxyTest` — 4 new tests covering explicit method,
config-resolved method, execute default, and wildcard resolution
- [x] `HttpMethodInterceptorTest` — 2 new tests verifying wildcard-resolved
methods respect `@HttpPost` annotations
- [x] `XmlConfigurationProviderAllowedMethodsTest` — updated assertion for 3
new action configs
- [ ] Full CI passes
🤖 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]