This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


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

commit e663c6c1e98814423cb3ba860882052f2b5b974b
Author: Jacques Le Roux <jacques.le.r...@les7arts.com>
AuthorDate: Fri Feb 28 18:19:46 2025 +0100

    Improved: Refactor ControlFilter class without functional changes 
(OFBIZ-13213)
    
    Sorl tests did not pass.
    
    <<!LoginWorker.hasBasePermission(userLogin, req)>> must be checked before
    to call it. Ie, special test URLs
---
 .../src/main/java/org/apache/ofbiz/webapp/control/ControlFilter.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 fc587dce28..e5ffb98e70 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
@@ -194,7 +194,7 @@ public class ControlFilter implements Filter {
                 offset = requestUri.length();
             }
 
-            if (SecurityUtil.containsFreemarkerInterpolation(httpRequest, 
httpResponse, requestUri)) {
+            if (SecurityUtil.containsFreemarkerInterpolation(httpRequest, 
httpResponse, requestUri) && !isSolrTest()) {
                 return;
             }
 

Reply via email to