(struts) branch release/struts-7-0-x updated (831689b26 -> baab7dd36)

2024-04-24 Thread kusal
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a change to branch release/struts-7-0-x
in repository https://gitbox.apache.org/repos/asf/struts.git


from 831689b26 Merge pull request #918 from 
apache/merge-master-to-70-2024-04-20
 add 85cf09b7d WW-5353 Stronger security defaults for 7.0
 add 5d4ad83cc WW-5353 Test fixes
 add baab7dd36 Merge pull request #919 from 
apache/WW-5353-stronger-security-defaults

No new revisions were added by this update.

Summary of changes:
 .../xwork2/ognl/accessor/CompoundRootAccessor.java |  8 +-
 .../apache/struts2/util/StrutsTestCaseHelper.java  | 13 ++
 .../org/apache/struts2/default.properties  | 30 ++
 .../test/java/org/apache/struts2/TestAction.java   | 19 ++
 .../org/apache/struts2/junit/JUnitTestAction.java  |  2 ++
 ...rutsTestCase.java => TestNGStrutsTestCase.java} |  2 +-
 .../struts2/testng/TestNGStrutsTestCaseTest.java   |  7 ++---
 7 files changed, 64 insertions(+), 17 deletions(-)
 rename 
plugins/testng/src/main/java/org/apache/struts2/testng/{StrutsTestCase.java => 
TestNGStrutsTestCase.java} (97%)



(struts) branch WW-5353-stronger-security-defaults deleted (was 5d4ad83cc)

2024-04-24 Thread kusal
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a change to branch WW-5353-stronger-security-defaults
in repository https://gitbox.apache.org/repos/asf/struts.git


 was 5d4ad83cc WW-5353 Test fixes

The revisions that were on this branch are still contained in
other references; therefore, this change does not discard any commits
from the repository.



(struts-site) branch master updated (4ac7942b0 -> 0e9f420c2)

2024-04-24 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/struts-site.git


from 4ac7942b0 Merge pull request #234 from apache/WW-5407-docs
 add 4b80c076a Correct static url value
 new 0e9f420c2 Merge pull request #238 from Hritik14/patch-1

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:
 source/plugins/plugins-architecture.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



(struts-site) 01/01: Merge pull request #238 from Hritik14/patch-1

2024-04-24 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

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

commit 0e9f420c26947d142c9f2eda0952cec15babb6e1
Merge: 4ac7942b0 4b80c076a
Author: Lukasz Lenart 
AuthorDate: Thu Apr 25 06:39:32 2024 +0200

Merge pull request #238 from Hritik14/patch-1

Correct static url value

 source/plugins/plugins-architecture.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



(struts-site) branch asf-site updated: Automatic Site Publish by Buildbot

2024-04-24 Thread git-site-role
This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/struts-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
 new 84c3d4cd8 Automatic Site Publish by Buildbot
84c3d4cd8 is described below

commit 84c3d4cd8c70375b2b99c40c86001b957ae49147
Author: buildbot 
AuthorDate: Thu Apr 25 04:40:08 2024 +

Automatic Site Publish by Buildbot
---
 output/plugins/plugins-architecture.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/output/plugins/plugins-architecture.html 
b/output/plugins/plugins-architecture.html
index 2a83e20e0..03a0ee137 100644
--- a/output/plugins/plugins-architecture.html
+++ b/output/plugins/plugins-architecture.html
@@ -213,7 +213,7 @@ other plugins available to an application.
 
 
 
-<@s.url value="/struts/main.css" 
var="css" />
+<@s.url value="/static/main.css" 
var="css" />
 
 
 



(struts-site) branch asf-staging updated: Updates stage by Jenkins

2024-04-24 Thread git-site-role
This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-staging
in repository https://gitbox.apache.org/repos/asf/struts-site.git


The following commit(s) were added to refs/heads/asf-staging by this push:
 new 6fd8a86a1 Updates stage by Jenkins
6fd8a86a1 is described below

commit 6fd8a86a17681a4f32c026f9c167e9bc7f6106cc
Author: jenkins 
AuthorDate: Thu Apr 25 04:43:28 2024 +

Updates stage by Jenkins
---
 .../ajax-client-side-validation.html   | 84 ++---
 content/plugins/json/index.html| 12 +--
 content/plugins/json/json-ajax-validation.html | 86 +++---
 content/plugins/plugins-architecture.html  |  2 +-
 .../ajax-and-javascript-recipes.html   | 78 ++--
 content/tag-developers/ajax-div-template.html  | 12 +--
 content/tag-developers/ajax-event-system.html  |  4 +-
 7 files changed, 139 insertions(+), 139 deletions(-)

diff --git a/content/core-developers/ajax-client-side-validation.html 
b/content/core-developers/ajax-client-side-validation.html
index c6a0790ce..2a86ffe19 100644
--- a/content/core-developers/ajax-client-side-validation.html
+++ b/content/core-developers/ajax-client-side-validation.html
@@ -509,21 +509,21 @@ It takes care of hiding validation errors that might be 
present, submit the form
   *
   * @param event onSubmit event
   */
-function ajaxFormValidation(event) {
-event.preventDefault();
-_removeValidationErrors();
-var _form = $(event.target);
-var _formData = _form.serialize(true);
+function ajaxFormValidation(event) {
+event.preventDefault();
+_removeValidationErrors();
+var _form = $(event.target);
+var _formData = _form.serialize(true);
 // prepare visual feedback
 // you may want to use other elements here
-var originalButton = _form.find('.btn-primary');
+var originalButton = _form.find('.btn-primary');
 // note: jQuery returns an array-like object
-if (originalButton && originalButton.length && originalButton.length > 0) {
-originalButton.hide();
-var feedbackElement 
= $('
').insertAfter(originalButton); +if (originalButton && originalButton.length && originalButton.length > 0) { +originalButton.hide(); +var feedbackElement = $('
').insertAfter(originalButton); var restoreFunction = function() { -originalButton.show(); -feedbackElement.remove(); +originalButton.show(); +feedbackElement.remove(); } } var options = { @@ -531,48 +531,48 @@ It takes care of hiding validation errors that might be present, submit the form async: true, processData: false, type: 'POST', -success: function (response, statusText, xhr) { -if (response.location) { +success: function (response, statusText, xhr) { +if (response.location) { // no validation errors // action has been executed and sent a redirect URL wrapped as JSON // cannot use a normal http-redirect (status-code 3xx) as this would be followed by browsers and would not be available here // follow JSON-redirect window.location.href = response.location; } else { -if (restoreFunction) { -restoreFunction(); +if (restoreFunction) { +restoreFunction(); } -_handleValidationResult(_form, response); +_handleValidationResult(_form, response); } }, error: function(xhr, textStatus, errorThrown) { -if (restoreFunction) { -restoreFunction(); +if (restoreFunction) { +restoreFunction(); } // struts sends status code 400 when validation errors are present -if (xhr.status === 400) { -_handleValidationResult(_form, JSON.parse(xhr.responseText)) +if (xhr.status === 400) { +_handleValidationResult(_form, JSON.parse(xhr.responseText)) } else { // a real error occurred -> show user an error message -_handleValidationResult(_form, {errors: ['Network or server error!']}) +_handleValidationResult(_form, {errors: ['Network or server error!']}) } } } // send request, after delay to make sure everybody notices the visual feedback :) -window.setTimeout(function() { +window.setTimeout(function() { var url = _form[0].action; -jQuery.ajax(url, options); +jQuery.ajax(url, options); }, 1000); } /** * Removes validation errors from HTML DOM. */ -function _rem

(struts) 01/01: WW-5420 Upgrades commons-text to ver. 1.12.0

2024-04-24 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch feature/WW-5420-text
in repository https://gitbox.apache.org/repos/asf/struts.git

commit 36275b9e0470c5ace87e2e82d0d70ae708949b24
Author: Lukasz Lenart 
AuthorDate: Thu Apr 25 08:25:09 2024 +0200

WW-5420 Upgrades commons-text to ver. 1.12.0
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index c86b1290f..b8dd012b1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -864,7 +864,7 @@
 
 org.apache.commons
 commons-text
-1.11.0
+1.12.0
 
 
 commons-el



(struts) branch feature/WW-5420-text created (now 36275b9e0)

2024-04-24 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a change to branch feature/WW-5420-text
in repository https://gitbox.apache.org/repos/asf/struts.git


  at 36275b9e0 WW-5420 Upgrades commons-text to ver. 1.12.0

This branch includes the following new commits:

 new 36275b9e0 WW-5420 Upgrades commons-text to ver. 1.12.0

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.