This is an automated email from the ASF dual-hosted git repository. jleroux pushed a commit to branch release22.01 in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git
The following commit(s) were added to refs/heads/release22.01 by this push: new 32d4f793f Improved: Unable to upload a file through ecommerce (OFBIZ-12636) 32d4f793f is described below commit 32d4f793fac01cc4ac1052ad7fffffe98890f249 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 a8cf405d0..f4ddcb3e4 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 @@ -94,9 +94,8 @@ public class OFBizSolrContextFilter extends SolrDispatchFilter { @Override 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); } /** Do filter */