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
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...
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
(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
(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
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
(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
(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
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
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-confighttp://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
(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
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
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