Skip to content

Commit b24dcff

Browse files
committed
Fixed: Prevent Freemarker interpolation in fields (OFBIZ-12594)
I did not catch an issue put in by this feature because BuildBot is not running for few days (see INFRA-23076) and i don't always run tests locally (relying on BuildBot and GH actions don't run tests). This is the error Solr tests throw else: <<Unfortunately, the stream was empty / not available. This may be caused by another servlet filter calling ServletRequest.getParameter*() before SolrDispatchFilter>> Conflicts handled by hand
1 parent 9a6b54a commit b24dcff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/ControlFilter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
135135
offset = requestUri.length();
136136
}
137137
if (!GenericValue.getStackTraceAsString().contains("ControlFilterTests")
138+
&& !System.getProperty("java.class.path").contains("--test component=solr") // Allows Solr tests
138139
&& SecurityUtil.containsFreemarkerInterpolation(httpRequest, httpResponse, requestUri)) {
139140
return;
140141
}

0 commit comments

Comments
 (0)