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:16:44 UTC

(ofbiz-framework) branch release24.09 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 release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release24.09 by this push:
     new d309b5d7f8 Improved: Refactor ControlFilter class without functional changes (OFBIZ-13213)
d309b5d7f8 is described below

commit d309b5d7f8f29e2ff3805d04020b54ad6347a89f
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 d39c45c16e..1479cea7b7 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
@@ -136,8 +136,7 @@ public class ControlFilter extends HttpFilter {
     }
 
     private static boolean isSolrTest() {
-        return !GenericValue.getStackTraceAsString().contains("ControlFilterTests")
-                && null == System.getProperty("SolrDispatchFilter");
+        return null != System.getProperty("SolrDispatchFilter");
     }
 
     /**