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-plugins.git
The following commit(s) were added to refs/heads/release18.12 by this push: new 061252a80 Improved: Unable to upload a file through ecommerce (OFBIZ-12636) 061252a80 is described below commit 061252a80e080e98ed677743ba06c5b32f967c63 Author: Jacques Le Roux <jacques.le.r...@les7arts.com> AuthorDate: Thu Jun 16 16:48:43 2022 +0200 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 --- .../java/org/apache/ofbiz/solr/webapp/OFBizSolrContextFilter.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/solr/src/main/java/org/apache/ofbiz/solr/webapp/OFBizSolrContextFilter.java b/solr/src/main/java/org/apache/ofbiz/solr/webapp/OFBizSolrContextFilter.java index 96e8c27d3..be81be57b 100644 --- a/solr/src/main/java/org/apache/ofbiz/solr/webapp/OFBizSolrContextFilter.java +++ b/solr/src/main/java/org/apache/ofbiz/solr/webapp/OFBizSolrContextFilter.java @@ -66,9 +66,8 @@ public class OFBizSolrContextFilter extends SolrDispatchFilter { */ public void init(FilterConfig config) throws ServletException { Properties props = System.getProperties(); - props.setProperty("solr.log.dir", UtilProperties.getPropertyValue("solrconfig", "solr.log.dir", "runtime/logs/solr")); - props.setProperty("solr.log.level", UtilProperties.getPropertyValue("solrconfig", "solr.log.level", "INFO")); - props.setProperty("solr/home", UtilProperties.getPropertyValue("solrconfig", "solr/home")); + String ofbizHome = (String) props.get("ofbiz.home"); + config.getServletContext().setAttribute(SOLRHOME_ATTRIBUTE, ofbizHome + props.getProperty("solr/home")); super.init(config); }