struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject [1/2] struts git commit: WW-4540 Enable Strict DMI be default
Date Mon, 05 Oct 2015 19:25:14 GMT
Repository: struts
Updated Branches:
  refs/heads/master 50ae859da -> a6241552b


WW-4540 Enable Strict DMI be default

- Extend global allowed methods in rest plugin with rest plugin specific default methods


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/ecde389e
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/ecde389e
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/ecde389e

Branch: refs/heads/master
Commit: ecde389ee6fa2a58318d5c78d0186edf8b189b63
Parents: 50ae859
Author: Johannes Geppert <jogep@apache.org>
Authored: Mon Oct 5 20:15:51 2015 +0200
Committer: Johannes Geppert <jogep@apache.org>
Committed: Mon Oct 5 20:15:51 2015 +0200

----------------------------------------------------------------------
 plugins/rest/src/main/resources/struts-plugin.xml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/ecde389e/plugins/rest/src/main/resources/struts-plugin.xml
----------------------------------------------------------------------
diff --git a/plugins/rest/src/main/resources/struts-plugin.xml b/plugins/rest/src/main/resources/struts-plugin.xml
index 6607dcf..36dbc5f 100644
--- a/plugins/rest/src/main/resources/struts-plugin.xml
+++ b/plugins/rest/src/main/resources/struts-plugin.xml
@@ -22,8 +22,8 @@
  */
 -->
 <!DOCTYPE struts PUBLIC
-	"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
-	"http://struts.apache.org/dtds/struts-2.3.dtd">
+        "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
+        "http://struts.apache.org/dtds/struts-2.5.dtd">
 
 <struts>
 
@@ -109,6 +109,8 @@
 
         <default-class-ref class="org.apache.struts2.rest.RestActionSupport"/>
 
+        <global-allowed-methods>execute,input,back,cancel,browse,save,delete,list,index,show,create,update,destroy,edit,editNew</global-allowed-methods>
+
     </package>
 
 </struts>


Mime
View raw message