Skip to content

Commit 061252a

Browse files
committed
Improved: Unable to upload a file through ecommerce (OFBIZ-12636)
Allows to check for only CSV files. This is not used OOTB in OFBiz. Thanks: Sachin for report and confirmation it's OK
1 parent 929dddf commit 061252a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

solr/src/main/java/org/apache/ofbiz/solr/webapp/OFBizSolrContextFilter.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ public class OFBizSolrContextFilter extends SolrDispatchFilter {
6666
*/
6767
public void init(FilterConfig config) throws ServletException {
6868
Properties props = System.getProperties();
69-
props.setProperty("solr.log.dir", UtilProperties.getPropertyValue("solrconfig", "solr.log.dir", "runtime/logs/solr"));
70-
props.setProperty("solr.log.level", UtilProperties.getPropertyValue("solrconfig", "solr.log.level", "INFO"));
71-
props.setProperty("solr/home", UtilProperties.getPropertyValue("solrconfig", "solr/home"));
69+
String ofbizHome = (String) props.get("ofbiz.home");
70+
config.getServletContext().setAttribute(SOLRHOME_ATTRIBUTE, ofbizHome + props.getProperty("solr/home"));
7271
super.init(config);
7372
}
7473

0 commit comments

Comments
 (0)