Commit Graph
23 Commits
Author SHA1 Message Date
Jacques Le Roux ff03ec248a Fixed: The Solr version included in OFBiz has an SSRF vulnerability (CVE-2021-27905) (OFBIZ-12316)
This post-auth security issue was reported to the security team by weinull orz
<weinull@outlook.com> As he suggested the solution is to update Solr to its last
version (8.9.0)

This solution contains a (justified) rant!

Thanks: weinull orz
2021-09-15 10:20:45 +02:00
Jacques Le Roux f9069945ad Improved: Rename some connoted words like blacklist and whitelist (OFBIZ-12168)
Renames respectively blacklist and whitelist to denylist and allowlist in
several places.

Renames masters and slaves to mains and replicas in solrconfig.xml inherited
from the Apache Solr version we use. The slave word is still used at
https://cwiki.apache.org/confluence/display/solr/SolrConfigXml referenced from
solrconfig.xml

There are still a lot of master word which can be replaced by main, but not in
contexts where slave is also used. I'll discuss that on dev ML again...
2021-02-09 09:55:43 +01:00
Jacques Le Roux 40d7c57662 Improved: Update build.gradle to the latest dependencies (OFBIZ-12092)
I crossed new issues with plugins:

I tried to update Solr and Lucene to 8.7.0 but crossed issues (compilation and
Eclipse classpath)

Same for Jersey with 3.0.0 version
2020-12-17 18:44:33 +01:00
Jacques Le Roux 9c87fb85b1 Improved: Update build.gradle to the latest dependencies (OFBIZ-11903)
See
https://cwiki.apache.org/confluence/display/OFBIZ/About+OWASP+Dependency+Check
for libs not upgraded.
2020-07-21 10:42:14 +02:00
Jacques Le Roux 1cacb15000 Improved: Update build.gradle to the latest dependencies
(OFBIZ-11603)

I tried to update to Groovy 3 but got a compile issue with commons-cli.
I did not dig further.
2020-04-21 12:00:32 +02:00
Jacques Le Roux 4f19b762f3 Improved: Update build.gradle to the latest dependencies
(OFBIZ-11151)

Like for OFBIZ-10922 some updates were not possible. Please refer to the Jira 
for more information

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1864973 13f79535-47bb-0310-9956-ffa450edef68
2019-08-12 15:03:03 +00:00
Jacques Le Roux 0b8e3f2290 Improved: Update Solr and Lucene from 7.3.1 to Solr 7.5.0
(OFBIZ-10589)

https://lucene.apache.org/solr/guide/7_5/solr-upgrade-notes.html 
should help people to adapt to 7.5 from 7.3

There are more information in the Jira

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1845150 13f79535-47bb-0310-9956-ffa450edef68
2018-10-29 17:26:25 +00:00
Deepak Dixit f02613b01b Improved: No functional change, Only added license header
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1812310 13f79535-47bb-0310-9956-ffa450edef68
2017-10-16 18:43:49 +00:00
Michael Brohl f43d6f1dee Improved: Update Apache Solr/Lucene to release 6.6.0.
(OFBIZ-9391)

This also fixes the problems with the Guava dependency in OFBIZ-9444 and
adds some tests (see OFBIZ-9442). It makes sense to have more tests in
the course of further refactoring.

Thanks Julian Leichert for helping with the tests.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1811688 13f79535-47bb-0310-9956-ffa450edef68
2017-10-10 12:54:54 +00:00
Jacques Le Roux 9c4123f18f Fixed: Could not obtain Lock on lucene index Lock
(OFBIZ-7265)

At r1794771 Jinghai committed for OFBIZ-8316 with this comment
 Updated Solr from 6.2.1 to 6.5.1...[snip]...

But unfortunately he reintroduced the path for indexes to 
/runtime/indexes/products which breaks OFBIZ-7265 on this aspect where I then 
set it to runtime/indexes/solr to not confuse with Lucene index

I have decide to make things even more clear by using now
runtime/indexes/solr/products

I hope nobody will break it again, even if it has no functional impact.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1800453 13f79535-47bb-0310-9956-ffa450edef68
2017-06-30 20:28:40 +00:00
Shi Jinghai 1192f858e0 Fixed: Update Apache Solr/Lucene to release 6.2.1
OFBIZ-8316

Updated Solr from 6.2.1 to 6.5.1 and the point fields generated by Lucene are ok now for Solr component.
The 'original UI' link is commented in admin.html and the relative files under solr/webapp/solr/tpl are all removed. 

Thanks: Cao Pengan for the patch and Jacques, Michael for the comments and reviews.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1794771 13f79535-47bb-0310-9956-ffa450edef68
2017-05-11 00:10:12 +00:00
Jacques Le Roux 232bf736f3 Fixed: Could not obtain Lock on lucene index Lock
(OFBIZ-7265)

In my last commit (r1792257) I did not use the right location.
It's now in runtime\indexes\solr which is the obviously right place in OFBiz!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1794132 13f79535-47bb-0310-9956-ffa450edef68
2017-05-06 10:53:37 +00:00
Jacques Le Roux 17587f85ff Fixed: Could not obtain Lock on lucene index Lock
(OFBIZ-7265)

No functional change, the path should start at home

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1792257 13f79535-47bb-0310-9956-ffa450edef68
2017-04-22 05:06:46 +00:00
Jacques Le Roux e83ec3b8d4 Fixed: Could not obtain Lock on lucene index Lock
(OFBIZ-7265)

Problem:
I found this message in error.log
xer_default_products 	
DocumentIndexer 	
E 	
Could not obtain Lock on lucene index Lock held by this virtual machine: 
C:\projectASF-Mars\ofbiz\runtime\indexes\products\write.lock

Investigation:
I am able to reproduce this on my dev machine. 
Here is the steps to regenerate it:

1. Go to https://localhost:8443/content/control/AdminIndex
2. Click on Index Products button.

Solution:
As per my analysis, the reason of error is write lock on lucene indexes 
(created by lucene indexing process in lucene component) by Solr. 
Have a look on specialpurpose/solr/home/solrdefault/conf/solrconfig.xml line:
 <dataDir>${solr.data.dir:runtime/indexes}</dataDir>
Should point to:
 <dataDir>${solr.data.dir:specialpurpose/solr/home/solrdefault/runtime/indexes/}
 </dataDir>

Solr currently pointing to lucene indexes and creating a lock on it. 
We can't index products anymore using lucene indexing as it has lock from Solr.
So currently all the search results we can see on Solr Search
https://localhost:8443/solr/#/solrdefault/query 
is lucene indexed results.
We have not created any indexes using Solr itself. Thanks


Thanks: Amardeep Singh Jhajj who did all the work

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1791625 13f79535-47bb-0310-9956-ffa450edef68
2017-04-16 19:44:50 +00:00
Jacques Le Roux 5dc7ce9548 No functional changes
completes r1781219 by putting svn:eol-style=native to all file types declared 
in [auto-props] section of the svn config files.css

Actually this is only a 1st pass, it was too complicated to do it for  
all file types at once only concerned here
*.java;*.bsh;*.groovy;*.jsp;*.tld;*.ftl;*.js;*.sql;*.c;*.cpp;*.h;*.txt;*.sgml;
*.properties;*.xml;.classpath;.project;*.sld;*.gml;*.xsl;*.xsd
*.html;*.htm;*.css;*.md;README;NOTICE;LICENSE;rc.ofbiz.*;*.less;*.dsp;*.dsw

Most files should not be concerned by this change, but it's impossible to do
it one by one.

There are also changes in files with have mixed EOLs; because this has no sense
when using native which automatically resolves this issue

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781731 13f79535-47bb-0310-9956-ffa450edef68
2017-02-05 11:09:59 +00:00
Jacques Le Roux fc3e1db4f6 No functional changes
At http://markmail.org/message/ffmyw773p65fndey I wrote:

I'd like to follow the suggestion I made in the last message of the linked 
thread.
In other words, use
http://subversion.apache.org/docs/release-notes/1.8.html#repos-dictated-config
http://blogs.collab.net/subversion/the-road-to-repository-dictated-configuration-day-2-autoprops
Then this problem would be over. No longer need to check from time to time that
concerned files, have svn:eol-style=native property set
This imply that all OFBiz users use svn > 1.7, but we can inform them, et voilà

Then at markmail.org/message/h3q2yvj4db544ro7 I wrote:

Actually, since we get new committers now and then and their are able to create
new files I have a warning every 6 months which says "Check Java 
files, have all svn:eol-style=native" (I totally forgot that because I assume
the machine knows it and warns me ;))
I could extend that to all files (at least the most prominent types), I'll
see...

This does what the last sentence said for Groovy, XML and few new Birt 
Java files.

I'll see if I can implement the svn 1.8 repos-dictated-config ASAP!




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781219 13f79535-47bb-0310-9956-ffa450edef68
2017-02-01 10:58:46 +00:00
Shi Jinghai 5af8988f7a Fixed: Update Apache Solr/Lucene to release 6.2.1
(OFBIZ-8316)

Change LongPoint and DoublePoint fields to String field to make solr work in trunk version, and I'll change them back when updating to new release of Solr.

Thanks: Jacques Le Roux for reporting the point fields problem.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1780133 13f79535-47bb-0310-9956-ffa450edef68
2017-01-25 03:09:48 +00:00
Jacques Le Roux 96d15f033e Reverts r1730873 which itself reverted r1730320 because tests did not pass. But just 4 minutes before my commit (at least I received it 4 mins before) Jinghai fixed the issue at r1730790
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1730921 13f79535-47bb-0310-9956-ffa450edef68
2016-02-17 19:30:54 +00:00
Jacques Le Roux fbf3349d3b Reverts r1730320 because tests don't pass and I need to have the tests clean to move ahead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1730873 13f79535-47bb-0310-9956-ffa450edef68
2016-02-17 16:57:08 +00:00
Shi Jinghai 4b6fd34e46 OFBIZ-6715 Solr rebuild problem.
Changes are:
1. Comment out solr eecas.xml as it's duplicated to ecas in eecas_product.xml.
2. Add default-value="solrdefault" to indexName of addToSolr service.
3. Replace some tabs with spaces.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1730790 13f79535-47bb-0310-9956-ffa450edef68
2016-02-17 07:32:08 +00:00
Shi Jinghai 43d25fe7e7 Refs OFBIZ-6715 Solr rebuild problem
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1730320 13f79535-47bb-0310-9956-ffa450edef68
2016-02-14 11:59:59 +00:00
Shi Jinghai fa16b1e420 OFBIZ-6610 Upgrade Solr and Lucene librairies to version 5
1. Remove the specialpurpose/solr/home/solrdefault/runtime.
2. Remove src attribute in solr jars in .classpath.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1707047 13f79535-47bb-0310-9956-ffa450edef68
2015-10-06 13:03:14 +00:00
Shi Jinghai 1405615b1a OFBIZ-6610 Upgrade Solr and Lucene librairies to version 5
1. Upgrade the solr/lucene component to the latest 5.3.1.
2. Angular related js and html files are removed.
3. The jquery-1.7.2.min.js is removed as it's not used in solr.
4. Change specialpurpose/solr/conf to specialpurpose/solr/home.
5. Move specialpurpose/solr/solrdefault to specialpurpose/solr/home/solrdefault.
6. The files under specialpurpose/solr/home/solrdefault are all from solr-5.3.1 package/server/solr/configsets/sample_techproducts_configs/, the solrconfig.xml is configured: <dataDir>${solr.data.dir:runtime/indexes}</dataDir>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1707042 13f79535-47bb-0310-9956-ffa450edef68
2015-10-06 12:48:53 +00:00