I found an inconsistency in the code for string comparison statusId.equals("PRUN_COMPLETED") whereas it should be written as "PRUN_COMPLETED".equals(statusId) cause the former can throw NullPointerException if the variable found to be NULL.
Thanks Devanshu Vyas for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1795344 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-8316
Updated Lucene from 6.2.1 to 6.5.1 and the point fields generated by Lucene are ok now for Solr component.
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@1794770 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-9322)
This is related to a commit in ofbiz-framework r1792866 in which data
that is removed in here is added to the framework. There is one modification
to the DemoPurchasing.xml file in which we added a UserLoginSecurityGroup which
is moved from DemoOrderPeopleData.xml because it has dependencies on security
data in ecommerce. Other than that, all data is simply deleted.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1792867 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
components
(OFBIZ-9311)
Pricat was also concerned. Unlike hhfacility, I see no reasons why these
components would use the GlobalDecorator instead of the ApplicationDecorator
(the ApplicationDecorator embeds the GlobalDecorator)
OFBIZ-9312 is a duplicate of this
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1791116 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9308)
Steps to regenerate:
1. Go to Content component
https://localhost:8443/content/control/main
2. Click on CMS tab directing to
https://localhost:8443/content/control/CMSContentFind
3. Click on Search Products subtab directing to
https://localhost:8443/content/control/ProductSearch
4. Provide a Lucene Query and Click submit.
5. Screen renders with ScreenRenderingException
Problem:
1. "ProductSearch" request directs to "ProductSearch" screen in
LuceneScreens.xml.
2. On ProductSearch screen, "SearchProducts.groovy" script prepares and hits a
search query to Lucene.
3. "BooleanQuery" class is used to match documents with other boolean query
combinations.
4. BooleanQuery object is initialised with Its default constructor.
5. With Lucene 5.4.0, this constructor is deprecated.
OFBiz migrated to Lucene 6.3.1: OFBIZ-8316
Solution:
From Lucene 5.4.0 default constructor is deprecated and a new inner class
Builder is created for queries.
Refer OFBIZ-9301 for detailed explanation.
Thanks: Aditya
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790933 13f79535-47bb-0310-9956-ffa450edef68
showcontenttree page
(OFBIZ-9309)
Steps to reproduce:
1.Go to Ecommerce component https://localhost:8443/ecommerce/control/main
2.Click on any of the Content from "Browse Content" section of left panel.
It will be directed to https://localhost:8443/ecommerce/control/showcontenttree?contentId=STORE_POLICIES&nodeTrailCsv=STORE_POLICIES
3. Click on Search, it directs to https://localhost:8443/ecommerce/control/searchContent?siteId=STORE_POLICIES
4. Screen renders with ScreenRenderingException
Problem:
1. "searchContent" request directs to "searchContent" screen in
ContentScreens.xml.
2. On searchContent screen, "/ecommerce/groovyScripts/content/Search.groovy"
script prepares and hits a search query to Lucene.
3. "BooleanQuery" class is used to match documents with other boolean query
combinations.
4. BooleanQuery object is initialised with Its default constructor.
5. With Lucene 5.4.0, this constructor is deprecated.
OFBiz migrated to Lucene 6.3.1: OFBIZ-8316
Solution:
From Lucene 5.4.0 default constructor is deprecated and a new inner class
Builder is created for queries. Refer OFBIZ-9301 for detailed explanation.
Thanks: Aditya
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790810 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9301)
Steps to regenerate :
1. Log in to Content component
2. Go to the CMS tab or directly go to
https://localhost:8443/content/control/CMSContentFind
3. Click on "Find" submenu or directly go to
https://localhost:8443/content/control/AdminSearch
4. Screen renders with ScreenRenderingException
Problem:
1. "AdminSearch" request directs to "AdminSearch" screen in LuceneScreens.xml.
2. On AdminSearch screen, "Search.groovy" script prepares and hits a search
query to Lucene.
3. "BooleanQuery" class is used to match documents with other boolean query
combinations.
4. BooleanQuery object is initialised with Its default constructor.
5. With Lucene 5.4.0, this constructor is deprecated.
OFBiz migrated to Lucene 6.3.1: OFBIZ-8316
Solution:
From Lucene 5.4.0 default constructor is deprecated and a new inner class
Builder is created for queries.
jleroux: I sorted the imports by hand, and added missing parenthesis at .build
Thanks: Aditya
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790664 13f79535-47bb-0310-9956-ffa450edef68
BirtServices.java
Formatting
Few better comments and some TODOs
Replaces e.printStackTrace() by Debug.logError().
Adds few missing Debug.logError()
Adds return ServiceUtil.returnError()
Improves an EntityListIterator closing not done, using try-with-ressources
Not a funct. change, EntityListIterator.finalyse() catches anyway
Replaces return ServiceUtil.returnError(e.getMessage()) by more explicit
messages. Not needs to clutter the UI.
Uses multi-catches when applicable
BirtUtil.java
Formatting
Note: the Birt.properties file does not exist OOTB but can be added for
convenience, like using the location where you edit with the
Birt Report Designer...
ReportDesignGenerator.java
Formatting
Removes useless and confusing try and re-thrown exceptions. This allows to
fix possible other issues
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790547 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9192)
This fixes an issue I put in while removing partyName.
The couple ("Customer", "Customer name") should also have been removed
While at it I formatted to make things more legible
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790501 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9192)
Jacopo reported an issue on dev ML on the Party view profile
The InvoiceItemProductAndParty view use a partyName from the Party
entity, but there is no partyName in the Party.
I simply commented out this line in the view definition.
PartyNameView could be used later there.
I also fixed partyName in BirtMasterReportServices class,
formatted it and used Debug.logError instead of printStackTrace()
Thanks: Jacopo for report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790499 13f79535-47bb-0310-9956-ffa450edef68
(LEGAL-296)
This has been discussed in the OFBiz project and we preferred to ask legal
before taking a definitive decision.
We read at http://www.apache.org/legal/resolved.html#category-b
For small amounts of source that is directly consumed by the ASF product at
runtime in source form, and for which that source is unmodified and unlikely
to be changed anyway (say, by virtue of being specified by a standard),
inclusion of appropriately labeled source is also permitted. An example of
this is the web-facesconfig_1_0.dtd, whose inclusion is mandated by the JSR
127: JavaServer Faces specification
The question was:
Can the files under folders birt/webapp/birt/webcontent/birt, all licensed
under https://www.eclipse.org/legal/epl-v10.html be included in source form,
without modifications, in an Apache (source) release? It's 160 files and
541 523 bytes at all.
Thanks: Marvin Humphrey for legal advice (the answer is NO)
So this removes the birt/webcontent folder. The related page in wiki has also
been removed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790442 13f79535-47bb-0310-9956-ffa450edef68
possibly refactor code (not only Java, but mostly) in the ebaystore component"
Also to test WIP for OFBIZ-9275 "Add a Gradle task to svn update all plugins"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789750 13f79535-47bb-0310-9956-ffa450edef68
<<No functional changes.
Fixes some unchecked casts by using UtilMisc.toMap
Adds some @SuppressWarnings("unchecked")
Adds few @SuppressWarnings("unused")
Cleans imports
Completes and fixes Javadoc in BirtUtil class>>
Er, of course you can't fix unchecked casts by using UtilMisc.toMap, I intended
to use UtilGenerics.checkMap and got mislead by Eclipse which also hides
unchecked casts warnings when you use UtilMisc.toMap
Then all derailed and I put some @SuppressWarnings("unchecked") to hide warning
on List unchecked casts :/
The rest was correct but a
private GenericValue userLogin;
in ReportDesignGenerator which is really useless
There are still no functional changes but some amended comments (French)
and added TODO
I note that the translated TODO needs a re-visit, smell like factoring is needed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789381 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9192)
It was a long time I did not revisit this issue. I no longer stumbled upon
issues I reported before in the Jira but found that 2 entities were missing.
I was an easy fix: the ServiceReportsView.xml was missing
Thanks: To Nicolas who in the meantime certainly committed fixes for the other
issues I reported in the Jira
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789159 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8341)
In EbayStore services class, replaces forgotten e.printStackTrace()
(I guess due to "TODO Auto-generated catch block") by returning service errors
Uses the same pattern everywhere it's needed
Replaces returnFailure by returnError, an exception is not a failure, it's a
serious error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789047 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8341)
Fixes forgotten "TODO Auto-generated catch block" not using Debug.logError.
Groups similar exceptions in multi-catches
Removes an useless catch embedded in a same catch in EbayStore
In catches in events, returns "error" and an error messages in requests
I stop there in ebaystore, I'll hopefull continue later, it has been coded
with feet and seems to contains a lot of such issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789043 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9188)
This is the technical documentation about the Flexible Reports.
It's done with Markdown files with links to Confluence for images
Also the HTML version soon used in the wiki
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788911 13f79535-47bb-0310-9956-ffa450edef68
Fixes some unchecked casts by using UtilMisc.toMap
Adds some @SuppressWarnings("unchecked")
Adds few @SuppressWarnings("unused")
Cleans imports
Completes and fixes Javadoc in BirtUtil class
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788869 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9188)
Complete the documentation about the Flexible Reports. Here are the HTML
versions to be used in the "Birt Flexible Reports" wiki page.
Also with an link in "Creating reports.md" to
"Using the Birt Report Designer.md.html"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788759 13f79535-47bb-0310-9956-ffa450edef68