This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/struts.git
from f648b288d WW-3655 test(freemarker): guard against resolving the result
location from the request URI (#2037)
add 9b1fac7bf WW-3717 feat(core): restrict an action to HTTP methods with
an http-method attribute
add c3155ce9b WW-3717 fix(core): resolve the bad-request result like the
action invocation does
add ced991c4f WW-3717 fix(core): look up the unknown handler manager when
a request is rejected
add 1dade4fa7 WW-3717 refactor(core): address Sonar findings on the
http-method change
new f69198c53 Merge pull request #2038 from
apache/feature/WW-3717-http-method-attribute
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../struts2/config/entities/ActionConfig.java | 29 ++-
.../struts2/config/impl/ActionConfigMatcher.java | 1 +
.../struts2/config/impl/DefaultConfiguration.java | 10 +
.../providers/XmlDocConfigurationProvider.java | 21 +++
.../httpmethod/HttpMethodInterceptor.java | 77 +++++++-
core/src/main/resources/struts-7.5.dtd | 1 +
.../XmlConfigurationProviderHttpMethodTest.java | 88 +++++++++
.../httpmethod/HttpMethodInterceptorTest.java | 204 ++++++++++++++++++++-
...uplicate.xml => struts-http-method-invalid.xml} | 9 +-
.../config/providers/struts-http-method.xml | 79 ++++++++
10 files changed, 506 insertions(+), 13 deletions(-)
create mode 100644
core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderHttpMethodTest.java
copy
core/src/test/resources/org/apache/struts2/config/providers/{struts-scoped-constants-duplicate.xml
=> struts-http-method-invalid.xml} (78%)
create mode 100644
core/src/test/resources/org/apache/struts2/config/providers/struts-http-method.xml