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 2017/03/22 05:53:39 UTC

[1/5] struts-extras git commit: Adds info how to define a bean in struts.xml

Repository: struts-extras
Updated Branches:
  refs/heads/master f7be30754 -> c477f3ebc


Adds info how to define a bean in struts.xml


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

Branch: refs/heads/master
Commit: 3440fcaa27d30a4c801a3893787b71525de99ab9
Parents: f7be307
Author: Lukasz Lenart <lu...@gmail.com>
Authored: Wed Mar 22 06:50:14 2017 +0100
Committer: Lukasz Lenart <lu...@gmail.com>
Committed: Wed Mar 22 06:50:14 2017 +0100

----------------------------------------------------------------------
 .../README.md                                   | 28 +++++++++++++++++---
 1 file changed, 25 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-extras/blob/3440fcaa/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md
----------------------------------------------------------------------
diff --git a/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md b/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md
index 3e52efd..ca085f0 100644
--- a/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md
+++ b/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md
@@ -15,8 +15,29 @@ you must migrate to the latest version which is [Struts 2.5.10.1](http://struts.
 
 ## How to use it
 
-Just drop the jar into `WEB-INF/libs` folder and restart your application, you can use on of the existing PoCs
-to test if everything is ok.
+Just drop the jar into `WEB-INF/libs` folder and add the bellow definition into your `struts.xml`:
+
+- if you are running the Apache Struts 2.3.8 - 2.3.31
+ ```xml
+      <bean type="org.apache.struts2.dispatcher.multipart.MultiPartRequest"
+            class="org.apache.struts.extras.SecureJakartaStreamMultiPartRequest"
+            name="secure-jakarta-stream"
+            scope="default"/>
+    
+      <constant name="struts.multipart.parser" value="secure-jakarta-stream"/>
+ ```
+
+- if you are running the Apache Struts 2.5 - .2.5.5
+ ```xml
+      <bean type="org.apache.struts2.dispatcher.multipart.MultiPartRequest"
+            class="org.apache.struts.extras.SecureJakartaStreamMultiPartRequest"
+            name="secure-jakarta-stream"
+            scope="prototype"/>
+    
+      <constant name="struts.multipart.parser" value="secure-jakarta-stream"/> 
+ ```
+
+and then restart your application, you can use on of the existing PoCs to test if everything is ok.
 
 If you are using Maven to build your project, please add the following dependency into your pom:
   
@@ -28,7 +49,8 @@ If you are using Maven to build your project, please add the following dependenc
 </dependency>
 ```
 
-If you are not building with Maven or you simply need the Jar to drop it into an existing Struts 2 based application deployment, you can [download it directly from Maven Central](http://search.maven.org/remotecontent?filepath=org/apache/struts/struts2-secure-jakarta-stream-multipart-parser-plugin/1.0/struts2-secure-jakarta-stream-multipart-parser-plugin-1.0.jar).
+If you are not building with Maven or you simply need the Jar to drop it into an existing Struts 2 based application deployment, 
+you can [download it directly from Maven Central](http://search.maven.org/remotecontent?filepath=org/apache/struts/struts2-secure-jakarta-stream-multipart-parser-plugin/1.0/struts2-secure-jakarta-stream-multipart-parser-plugin-1.0.jar).
 
 ## Remarks
 


[3/5] struts-extras git commit: Adds info how to define a bean in struts.xml

Posted by lu...@apache.org.
Adds info how to define a bean in struts.xml


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

Branch: refs/heads/master
Commit: 7b24dca44b05ffbfdfa7f520d979540caf9f44d6
Parents: 994062e
Author: Lukasz Lenart <lu...@gmail.com>
Authored: Wed Mar 22 06:52:48 2017 +0100
Committer: Lukasz Lenart <lu...@gmail.com>
Committed: Wed Mar 22 06:52:48 2017 +0100

----------------------------------------------------------------------
 .../README.md                                   | 26 +++++++++++++++++---
 1 file changed, 23 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-extras/blob/7b24dca4/struts2-secure-jakarta-multipart-parser-plugin/README.md
----------------------------------------------------------------------
diff --git a/struts2-secure-jakarta-multipart-parser-plugin/README.md b/struts2-secure-jakarta-multipart-parser-plugin/README.md
index 5a14278..c13005b 100644
--- a/struts2-secure-jakarta-multipart-parser-plugin/README.md
+++ b/struts2-secure-jakarta-multipart-parser-plugin/README.md
@@ -15,8 +15,27 @@ you must migrate to the latest version which is [Struts 2.5.10.1](http://struts.
 
 ## How to use it
 
-Just drop the jar into `WEB-INF/libs` folder and restart your application, you can use on of the existing PoCs
-to test if everything is ok.
+Just drop the jar into `WEB-INF/libs` folder and add the bellow definition into your `struts.xml`:
+
+- if you are running the Apache Struts 2.3.8 - 2.3.31
+ ```xml
+      <bean type="org.apache.struts2.dispatcher.multipart.MultiPartRequest"
+            class="org.apache.struts.extras.SecureJakartaMultiPartRequest"
+            name="secure-jakarta"
+            scope="default"/>
+    
+      <constant name="struts.multipart.parser" value="secure-jakarta"/>
+ ```
+
+- if you are running the Apache Struts 2.5 - 2.5.5
+ ```xml
+      <bean type="org.apache.struts2.dispatcher.multipart.MultiPartRequest"
+            class="org.apache.struts.extras.SecureJakartaMultiPartRequest"
+            name="secure-jakarta"
+            scope="prototype"/>
+    
+      <constant name="struts.multipart.parser" value="secure-jakarta"/> 
+ ```
 
 If you are using Maven to build your project, please add the following dependency into your pom:
   
@@ -28,7 +47,8 @@ If you are using Maven to build your project, please add the following dependenc
 </dependency>
 ```
 
-If you are not building with Maven or you simply need the Jar to drop it into an existing Struts 2 based application deployment, you can [download it directly from Maven Central](http://search.maven.org/remotecontent?filepath=org/apache/struts/struts2-secure-jakarta-multipart-parser-plugin/1.0/struts2-secure-jakarta-multipart-parser-plugin-1.0.jar).
+If you are not building with Maven or you simply need the Jar to drop it into an existing Struts 2 based application deployment, 
+you can [download it directly from Maven Central](http://search.maven.org/remotecontent?filepath=org/apache/struts/struts2-secure-jakarta-multipart-parser-plugin/1.0/struts2-secure-jakarta-multipart-parser-plugin-1.0.jar).
 
 ## Remarks
 


[2/5] struts-extras git commit: Drops plugin definition

Posted by lu...@apache.org.
Drops plugin definition


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

Branch: refs/heads/master
Commit: 994062e8ae5f40746c310505abadc58f8bcaa80e
Parents: 3440fca
Author: Lukasz Lenart <lu...@gmail.com>
Authored: Wed Mar 22 06:50:24 2017 +0100
Committer: Lukasz Lenart <lu...@gmail.com>
Committed: Wed Mar 22 06:50:24 2017 +0100

----------------------------------------------------------------------
 .../src/main/resources/struts-plugin.xml        | 33 --------------------
 1 file changed, 33 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-extras/blob/994062e8/struts2-secure-jakarta-stream-multipart-parser-plugin/src/main/resources/struts-plugin.xml
----------------------------------------------------------------------
diff --git a/struts2-secure-jakarta-stream-multipart-parser-plugin/src/main/resources/struts-plugin.xml b/struts2-secure-jakarta-stream-multipart-parser-plugin/src/main/resources/struts-plugin.xml
deleted file mode 100644
index de48c95..0000000
--- a/struts2-secure-jakarta-stream-multipart-parser-plugin/src/main/resources/struts-plugin.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<!DOCTYPE struts PUBLIC
-    "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
-    "http://struts.apache.org/dtds/struts-2.3.dtd">
-
-<struts>
-
-  <bean type="org.apache.struts2.dispatcher.multipart.MultiPartRequest"
-        class="org.apache.struts.extras.SecureJakartaStreamMultiPartRequest"
-        name="secure-jakarta-stream"
-        scope="prototype"/>
-
-  <constant name="struts.multipart.parser" value="secure-jakarta-stream"/>
-
-</struts>


[5/5] struts-extras git commit: Drops dot

Posted by lu...@apache.org.
Drops dot


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

Branch: refs/heads/master
Commit: c477f3ebc1ef528b6b69114303fc864f3181af4a
Parents: 21b57f5
Author: Lukasz Lenart <lu...@gmail.com>
Authored: Wed Mar 22 06:53:27 2017 +0100
Committer: Lukasz Lenart <lu...@gmail.com>
Committed: Wed Mar 22 06:53:27 2017 +0100

----------------------------------------------------------------------
 struts2-secure-jakarta-stream-multipart-parser-plugin/README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-extras/blob/c477f3eb/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md
----------------------------------------------------------------------
diff --git a/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md b/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md
index ca085f0..c6598ce 100644
--- a/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md
+++ b/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md
@@ -27,7 +27,7 @@ Just drop the jar into `WEB-INF/libs` folder and add the bellow definition into
       <constant name="struts.multipart.parser" value="secure-jakarta-stream"/>
  ```
 
-- if you are running the Apache Struts 2.5 - .2.5.5
+- if you are running the Apache Struts 2.5 - 2.5.5
  ```xml
       <bean type="org.apache.struts2.dispatcher.multipart.MultiPartRequest"
             class="org.apache.struts.extras.SecureJakartaStreamMultiPartRequest"


[4/5] struts-extras git commit: Drops plugin definition

Posted by lu...@apache.org.
Drops plugin definition


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

Branch: refs/heads/master
Commit: 21b57f5f39d7a508ec44f97359f8b71dde3ad1ee
Parents: 7b24dca
Author: Lukasz Lenart <lu...@gmail.com>
Authored: Wed Mar 22 06:53:07 2017 +0100
Committer: Lukasz Lenart <lu...@gmail.com>
Committed: Wed Mar 22 06:53:07 2017 +0100

----------------------------------------------------------------------
 .../src/main/resources/struts-plugin.xml        | 36 --------------------
 1 file changed, 36 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-extras/blob/21b57f5f/struts2-secure-jakarta-multipart-parser-plugin/src/main/resources/struts-plugin.xml
----------------------------------------------------------------------
diff --git a/struts2-secure-jakarta-multipart-parser-plugin/src/main/resources/struts-plugin.xml b/struts2-secure-jakarta-multipart-parser-plugin/src/main/resources/struts-plugin.xml
deleted file mode 100644
index 9fffba2..0000000
--- a/struts2-secure-jakarta-multipart-parser-plugin/src/main/resources/struts-plugin.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<!DOCTYPE struts PUBLIC
-    "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
-    "http://struts.apache.org/dtds/struts-2.3.dtd">
-    
-<struts>
-
-  <bean type="org.apache.struts2.dispatcher.multipart.MultiPartRequest"
-        class="org.apache.struts.extras.SecureJakartaMultipartParser"
-        name="secure-jakarta"
-        scope="prototype"/>
-
-  <!-- Struts 2.3.12+ -->
-  <constant name="struts.multipart.parser" value="secure-jakarta"/>
-  <!-- Struts 2.3.8 -->
-  <constant name="struts.multipart.handler" value="secure-jakarta"/>
-
-</struts>