Skip to content

Commit

Permalink
Improved: Unable to upload a file through ecommerce (OFBIZ-12636)
Browse files Browse the repository at this point in the history
Allows to check for only CSV files. This is not used OOTB in OFBiz.

Thanks: Sachin for report and confirmation it's OK
  • Loading branch information
JacquesLeRoux committed Jul 20, 2022
1 parent 929dddf commit 061252a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

1 comment on commit 061252a

@JacquesLeRoux
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit hid a low vulnerability fix. It came actually from a typo between OFBIZ-12636 and OFBIZ-12646. The real means of the commit can be found at https://issues.apache.org/jira/browse/OFBIZ-12646

Please sign in to comment.