[struts-site] branch feature/commercial-support updated (f8a56b07f -> 41e3e06e2)

2023-10-13 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

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


omit f8a56b07f List of companies providing commercial support
 new 41e3e06e2 List of companies providing commercial support

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (f8a56b07f)
\
 N -- N -- N   refs/heads/feature/commercial-support (41e3e06e2)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

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/commercial-support.md | 14 ++
 1 file changed, 6 insertions(+), 8 deletions(-)



[struts-site] 01/01: List of companies providing commercial support

2023-10-13 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

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

commit 41e3e06e2a307f90edff0e514722054ab3e5bdf0
Author: Lukasz Lenart 
AuthorDate: Tue Oct 10 15:36:13 2023 +0200

List of companies providing commercial support
---
 source/_includes/header.html |  1 +
 source/commercial-support.md | 31 +++
 2 files changed, 32 insertions(+)

diff --git a/source/_includes/header.html b/source/_includes/header.html
index 505fafa37..3cd9c776e 100644
--- a/source/_includes/header.html
+++ b/source/_includes/header.html
@@ -41,6 +41,7 @@
 User Mailing List
 https://issues.apache.org/jira/browse/WW";>Issue 
Tracker
 Reporting Security Issues
+Commercial 
Support
 
 https://cwiki.apache.org/confluence/display/WW/Migration+Guide";>Version 
Notes
 https://cwiki.apache.org/confluence/display/WW/Security+Bulletins";>Security
 Bulletins
diff --git a/source/commercial-support.md b/source/commercial-support.md
new file mode 100644
index 0..53537a1c5
--- /dev/null
+++ b/source/commercial-support.md
@@ -0,0 +1,31 @@
+---
+layout: default
+title: Commercial Support
+---
+
+# Commercial support
+{:.no_toc}
+
+* Will be replaced with the ToC, excluding a header
+{:toc}
+
+## ASF support
+
+The Apache Software Foundation doesn't provide any kind of commercial support 
you can call for in case of issues 
+or request changes impacting Apache Struts or applications build based on top 
of the framework. You can always prepare
+a change request and donate your code to the project. This requires fulfilling 
some requirements, please read 
+the [Legal](https://www.apache.org/foundation/how-it-works/legal.html) page 
for more details.
+
+## List of companies
+
+Below is a list of companies that can provide you with commercial support 
around Apache Struts and JavaEE application.
+Please contact the company directly with your inquiry to get detailed 
information about how they can help you.
+
+We do our best to keep this list up to date and if you know any company that 
offers this kind of support, feel free to contact
+us and provide more details.
+
+Last updated: **2023-10-10**
+
+1. [Company name]
+- contact details: phone, web page, contact person
+- scope of support: consulting, development, testing, audit



[struts-site] branch asf-staging updated: Updates stage by Jenkins

2023-10-13 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 d8372a1be Updates stage by Jenkins
d8372a1be is described below

commit d8372a1be7c7dfc3488eab518f4a6caf963e
Author: jenkins 
AuthorDate: Fri Oct 13 08:42:31 2023 +

Updates stage by Jenkins
---
 content/commercial-support.html | 39 +++
 1 file changed, 11 insertions(+), 28 deletions(-)

diff --git a/content/commercial-support.html b/content/commercial-support.html
index d039b9ca4..707a06aed 100644
--- a/content/commercial-support.html
+++ b/content/commercial-support.html
@@ -140,45 +140,28 @@
 ASF support
 
 The Apache Software Foundation doesn’t provide any kind of commercial 
support you can call for in case of issues 
-or requests changes impacting Apache Struts or applications build based on top 
of the framework. You can always prepare
+or request changes impacting Apache Struts or applications build based on top 
of the framework. You can always prepare
 a change request and donate your code to the project. This requires fulfilling 
some requirements, please read 
 the https://www.apache.org/foundation/how-it-works/legal.html";>Legal page 
for more details.
 
 List of companies
 
-Below is a list of companies that can provide you with commercial support 
around Apache Struts and JavaEE application
-built on it. Please contact the company directly with your inquiry to get 
detailed information about how they can help you.
+Below is a list of companies that can provide you with commercial support 
around Apache Struts and JavaEE application.
+Please contact the company directly with your inquiry to get detailed 
information about how they can help you.
 
 We do our best to keep this list up to date and if you know any company 
that offers this kind of support, feel free to contact
 us and provide more details.
 
 Last updated: 2023-10-10
 
-
-  
-
-  Lp
-  Company name
-  contact details
-  scope of support
-
-  
-  
-
-   
-   
-   
-   
-
-
-   
-   
-   
-   
-
-  
-
-
+
+  [Company name]
+
+  contact details: phone, web page, contact person
+  scope of support: consulting, development, testing, audit
+
+  
+
 
   
 



[struts-site] 01/01: List of companies providing commercial support

2023-10-13 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

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

commit 5ba4d7dff5d033363670446367791de87c274dd7
Author: Lukasz Lenart 
AuthorDate: Tue Oct 10 15:36:13 2023 +0200

List of companies providing commercial support
---
 source/_includes/header.html |  1 +
 source/commercial-support.md | 37 +
 2 files changed, 38 insertions(+)

diff --git a/source/_includes/header.html b/source/_includes/header.html
index 505fafa37..3cd9c776e 100644
--- a/source/_includes/header.html
+++ b/source/_includes/header.html
@@ -41,6 +41,7 @@
 User Mailing List
 https://issues.apache.org/jira/browse/WW";>Issue 
Tracker
 Reporting Security Issues
+Commercial 
Support
 
 https://cwiki.apache.org/confluence/display/WW/Migration+Guide";>Version 
Notes
 https://cwiki.apache.org/confluence/display/WW/Security+Bulletins";>Security
 Bulletins
diff --git a/source/commercial-support.md b/source/commercial-support.md
new file mode 100644
index 0..221a3b91b
--- /dev/null
+++ b/source/commercial-support.md
@@ -0,0 +1,37 @@
+---
+layout: default
+title: Commercial Support
+---
+
+# Commercial support
+{:.no_toc}
+
+* Will be replaced with the ToC, excluding a header
+{:toc}
+
+## ASF support
+
+The Apache Software Foundation doesn't provide any kind of commercial support 
you can call for in case of issues 
+or request changes impacting Apache Struts or applications build based on top 
of the framework. You can always prepare
+a change request and donate your code to the project. This requires fulfilling 
some requirements, please read 
+the [Legal](https://www.apache.org/foundation/how-it-works/legal.html) page 
for more details.
+
+## List of companies
+
+Below is a list of companies that can provide you with commercial support 
around Apache Struts and JavaEE application.
+Please contact the company directly with your inquiry to get detailed 
information about how they can help you.
+
+We do our best to keep this list up to date and if you know any company that 
offers this kind of support, feel free to contact
+us and provide more details.
+
+Last updated: **2023-10-10**
+
+1. [Company name]
+- contact details: phone, web page, contact person
+- scope of support: consulting, development, testing, audit
+
+## How to add a new company
+
+The simplest approach is to create a Pull Request to this page providing all 
the information. The PR will be reviewed
+by one of the committers who can verify that data or ask for more 
clarification. 
+You can also send a request to the [User 
Mailing](https://struts.staged.apache.org/mail.html) list with all the data.



[struts-site] branch feature/commercial-support updated (41e3e06e2 -> 5ba4d7dff)

2023-10-13 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

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


 discard 41e3e06e2 List of companies providing commercial support
 new 5ba4d7dff List of companies providing commercial support

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (41e3e06e2)
\
 N -- N -- N   refs/heads/feature/commercial-support (5ba4d7dff)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

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/commercial-support.md | 6 ++
 1 file changed, 6 insertions(+)



[struts-site] branch asf-staging updated: Updates stage by Jenkins

2023-10-13 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 690fbef0f Updates stage by Jenkins
690fbef0f is described below

commit 690fbef0f93c118fd6a41c9ed8b0da39a3e2bfd8
Author: jenkins 
AuthorDate: Fri Oct 13 08:50:56 2023 +

Updates stage by Jenkins
---
 content/commercial-support.html | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/content/commercial-support.html b/content/commercial-support.html
index 707a06aed..8dfaa2e12 100644
--- a/content/commercial-support.html
+++ b/content/commercial-support.html
@@ -135,6 +135,7 @@
 
   ASF support
   List of 
companies
+  How to add a new company
 
 
 ASF support
@@ -163,6 +164,12 @@ us and provide more details.
   
 
 
+How to add a new company
+
+The simplest approach is to create a Pull Request to this page providing 
all the information. The PR will be reviewed
+by one of the committers who can verify that data or ask for more 
clarification. 
+You can also send a request to the https://struts.staged.apache.org/mail.html";>User Mailing list with 
all the data.
+
   
 
 



[struts] branch WW-5355-cache-lru created (now 74d2fdcc6)

2023-10-13 Thread kusal
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a change to branch WW-5355-cache-lru
in repository https://gitbox.apache.org/repos/asf/struts.git


  at 74d2fdcc6 WW-5355 Use LRU cache by default

This branch includes the following new commits:

 new 74d2fdcc6 WW-5355 Use LRU cache by default

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.




[struts] 01/01: WW-5355 Use LRU cache by default

2023-10-13 Thread kusal
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a commit to branch WW-5355-cache-lru
in repository https://gitbox.apache.org/repos/asf/struts.git

commit 74d2fdcc6cd7563eb87d475e92fd2a7edb6f3d02
Author: Kusal Kithul-Godage 
AuthorDate: Fri Oct 13 21:56:25 2023 +1100

WW-5355 Use LRU cache by default
---
 .../opensymphony/xwork2/ognl/OgnlDefaultCache.java |  4 +-
 .../com/opensymphony/xwork2/ognl/OgnlLRUCache.java |  6 +--
 .../com/opensymphony/xwork2/ognl/OgnlUtil.java | 55 --
 .../org/apache/struts2/default.properties  |  8 ++--
 4 files changed, 40 insertions(+), 33 deletions(-)

diff --git 
a/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlDefaultCache.java 
b/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlDefaultCache.java
index a32736da6..43b24bb18 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlDefaultCache.java
+++ b/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlDefaultCache.java
@@ -30,10 +30,10 @@ import java.util.concurrent.atomic.AtomicInteger;
 public class OgnlDefaultCache implements OgnlCache {
 
 private final ConcurrentHashMap ognlCache;
-private final AtomicInteger cacheEvictionLimit = new AtomicInteger(25000);
+private final AtomicInteger cacheEvictionLimit = new AtomicInteger();
 
 public OgnlDefaultCache(int evictionLimit, int initialCapacity, float 
loadFactor) {
-this.cacheEvictionLimit.set(evictionLimit);
+cacheEvictionLimit.set(evictionLimit);
 ognlCache = new ConcurrentHashMap<>(initialCapacity, loadFactor);
 }
 
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlLRUCache.java 
b/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlLRUCache.java
index 93ab56d36..81286af34 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlLRUCache.java
+++ b/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlLRUCache.java
@@ -36,15 +36,15 @@ import java.util.concurrent.atomic.AtomicInteger;
 public class OgnlLRUCache implements OgnlCache {
 
 private final Map ognlLRUCache;
-private final AtomicInteger cacheEvictionLimit = new AtomicInteger(2500);
+private final AtomicInteger cacheEvictionLimit = new AtomicInteger();
 
 public OgnlLRUCache(int evictionLimit, int initialCapacity, float 
loadFactor) {
-this.cacheEvictionLimit.set(evictionLimit);
+cacheEvictionLimit.set(evictionLimit);
 // Access-order mode selected (order mode true in LinkedHashMap 
constructor).
 ognlLRUCache = Collections.synchronizedMap (new LinkedHashMap(initialCapacity, loadFactor, true) {
 @Override
 protected boolean removeEldestEntry(Map.Entry eldest) {
-return (this.size() > cacheEvictionLimit.get());
+return size() > cacheEvictionLimit.get();
 }
 });
 }
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java 
b/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java
index 4bddad63a..16c80d99d 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java
+++ b/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlUtil.java
@@ -673,9 +673,15 @@ public class OgnlUtil {
  *   note if exclusions AND inclusions are supplied and 
not null nothing will get copied.
  * @param editable the class (or interface) to restrict property setting to
  */
-public void copy(final Object from, final Object to, final Map context, Collection exclusions, Collection inclusions, 
Class editable) {
+public void copy(final Object from,
+ final Object to,
+ final Map context,
+ Collection exclusions,
+ Collection inclusions,
+ Class editable) {
 if (from == null || to == null) {
-LOG.warn("Attempting to copy from or to a null source. This is 
illegal and is bein skipped. This may be due to an error in an OGNL expression, 
action chaining, or some other event.");
+LOG.warn(
+"Skipping attempt to copy from, or to, a null source.", 
new RuntimeException());
 return;
 }
 
@@ -689,8 +695,7 @@ public class OgnlUtil {
 fromPds = getPropertyDescriptors(from);
 if (editable != null) {
 toPds = getPropertyDescriptors(editable);
-}
-else {
+} else {
 toPds = getPropertyDescriptors(to);
 }
 } catch (IntrospectionException e) {
@@ -705,29 +710,31 @@ public class OgnlUtil {
 }
 
 for (PropertyDescriptor fromPd : fromPds) {
-if (fromPd.getReadMethod() != null) {
-boolean copy = true;
-if (exclusions != null && 
exclusions.contains(fromPd.getName())) {
-copy = false;
-} else if (inclusions != null && 
!inclusions.contains(fromPd

[PR] WW-5355 Use LRU cache by default [struts]

2023-10-13 Thread via GitHub


kusalk opened a new pull request, #766:
URL: https://github.com/apache/struts/pull/766

   WW-5355
   --
   I see very limited advantage to using the default cache over the LRU one? 
The eviction process is faster but at the cost of having to repopulate the 
whole cache from scratch!
   Keen to hear other thoughts or anything I may have missed
   
   Perhaps in the future we can move to a more advanced algorithm such as the 
ones provided by 
[Caffeine](https://github.com/ben-manes/caffeine/wiki/Efficiency), although I'm 
not sure how effective they'd be given the cache can be easily attacked.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@struts.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org