You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2022/06/16 14:48:42 UTC
[ofbiz-plugins] branch trunk updated: Improved: Unable to upload a file through ecommerce (OFBIZ-12636)
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git
The following commit(s) were added to refs/heads/trunk by this push:
new 102eb5115 Improved: Unable to upload a file through ecommerce (OFBIZ-12636)
102eb5115 is described below
commit 102eb511531d64c131ed78fe536fc2857b7eb4b1
Author: Jacques Le Roux <ja...@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 */