You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2025/03/01 09:18:22 UTC
(ofbiz-framework) branch trunk updated: Improved: Refactor ControlFilter class without functional changes (OFBIZ-13213)
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 59c1a655db Improved: Refactor ControlFilter class without functional changes (OFBIZ-13213)
59c1a655db is described below
commit 59c1a655db93bba02c729264829bc7288db415bb
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Fri Feb 28 17:44:44 2025 +0100
Improved: Refactor ControlFilter class without functional changes (OFBIZ-13213)
Simplifies isSolrTest() and put back previous code that uses it
---
.../src/main/java/org/apache/ofbiz/webapp/control/ControlFilter.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/ControlFilter.java b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/ControlFilter.java
index 502e2a2f96..1da3dc64fb 100644
--- a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/ControlFilter.java
+++ b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/ControlFilter.java
@@ -139,8 +139,7 @@ public class ControlFilter extends HttpFilter {
* Allows Solr tests
*/
private static boolean isSolrTest() {
- return !GenericValue.getStackTraceAsString().contains("ControlFilterTests")
- && null == System.getProperty("SolrDispatchFilter");
+ return null != System.getProperty("SolrDispatchFilter");
}
/**