You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2026/10/17 07:23:59 UTC

(struts) branch main updated (f648b288d -> f69198c53)

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


(struts) 01/01: Merge pull request #2038 from apache/feature/WW-3717-http-method-attribute

Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/struts.git

commit f69198c53a4726b517b88ff9ddcc703ed8b956c2
Merge: f648b288d 1dade4fa7
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Sat Oct 17 09:23:53 2026 +0200

    Merge pull request #2038 from apache/feature/WW-3717-http-method-attribute
    
    WW-3717 feat(core): restrict an action to HTTP methods with an http-method attribute

 .../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 ++++++++++++++++++++-
 .../providers/struts-http-method-invalid.xml       |  29 +++
 .../config/providers/struts-http-method.xml        |  79 ++++++++
 10 files changed, 531 insertions(+), 8 deletions(-)