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
I decided to sort the flexible report export formats on the enumCode
(ie alphabetically) rather than using sequenceId which did not make much sense
Also fixes a typo in a French error label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788752 13f79535-47bb-0310-9956-ffa450edef68
published it
(OFBIZ-9284)
When you create a Flexible Report you get to the EditFlexibleReport screen.
There is a Preview panel with a Send button. If you send before having
1) downloaded the file,
2) conveniently edited it in Birt Report Designer
3) and then uploaded it,
you get an error which is embarrassing and difficult to avoid
programmatically.
I decided to warn users, when necessary (ie when the report is not published)
at the UI level. This completes OFBIZ-9194
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788750 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9123)
Moved pricat/webapp/pricat/ftl to pricat/template/pricat, pricat/webapp/pricatdemo/ftl to pricat/template/pricatdemo, and changed paths in files accordingly.
Thanks Jacques, Pierre and Michael for the code review and suggestion on this improvement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788744 13f79535-47bb-0310-9956-ffa450edef68
Added demo data in respective plugin that was causing foreign key issue while data load in ebay and myportal plugin.
Thanks Wai for reporting the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788660 13f79535-47bb-0310-9956-ffa450edef68
need to do other actions
(OFBIZ-9194)
The solution I provided with revision: 1781218 was wrong. A really satisfying
solution would be to gray the "Send" button on the
birt/control/CreateFlexibleReport page. But that's not something easy to do
because it's generated from a content.
So I decided to remove the part in the PrepareBirtCall.groovy and add an
indication in the BirtErrorNotPublishedReport for users to use their browser
back button. Because you catch a ViewHandlerException in
RequestHandler.renderView() and there is not much you can do at this stage...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788020 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9228)
Go through
Asset Maint --> Fixed Assets - >>> find DEMO_VEHICLE_01 --> Depreciation
and then press on button Create an Accounting Transaction: 00.000
will give ERROR not found
jleroux: the partyDecoratorLocation was missing in webapp/assetmaint/WEB-INF/web.xml
Thanks: Moatasim Al Masri for report, Ismail Alkouz for a try (not my solution)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1784144 13f79535-47bb-0310-9956-ffa450edef68
Fixed:
(OFBIZ-9211)
"gradlew cleanAll loadDefault" generates a data loading error
It's logically due to the removing of plugins/component-load.xml in OFBIZ-9182
A temporary solution is to put it in again.
A definitive solution is to remove data dependencies.
We have also this problem with ecommerce data which create dependencies
from applications
jleroux: I don't close this issue yet because we need to work together on this.
I simply remove the regression by putting back plugins/component-load.xml
Thanks: Wai for report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1782577 13f79535-47bb-0310-9956-ffa450edef68
Currently the class BirtContainer call the birt engine with hard coded log level ALL that generated huge log file.
We can't implement easily log4j on the birt engine so with this commit I create a quick fix to have matching between the java.util.Logger and org.apache.log4j.Logger level.
You can select the log level from debug.properties to populate the ReportEngine log file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1782070 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
(OFBIZ-9198)
When accessing a file/image in ecomseo (only seo version) that is physically
missing or the dataresource attribute isPublic=="N" the request results
in a loop.
jleroux: to break the loop in case or error, I simply decided to return a
response of type none. I also added the same for io-error which can be returned
by the DataEvents class, also in ecommerce controller
Thanks: Ingo Wolfmayr for report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781662 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
to do other actions
(OFBIZ-9194)
You need to add the data set fields with the Birt Report Designer
and publish the report. This will be documented with OFBIZ-9188
I thought about graying the button but it was a delicate matter because it uses
a <content element in screen and directly call a view handled from a Groovy
event.
It was easier to fix the PrepareBirtCall Groovy event. But to be totally sure
I also handled the possible NPE in the BirtViewHandler
I also fixed viewLast error in controller
Because the files were not committed with the svn:eol-style native property
you will see false changes in this commit. Some files have their svn:eol-style
native property set. I'll soon commit missing so in new Birt Java files.
I'll also commit a lot of svn:eol-style native property changes for XML and
Groovy files which have been neglected so far. I'm sorry for that because
when we do so we loose the annotations history. I will then definitely put in
place what I suggested in http://markmail.org/message/ffmyw773p65fndey
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781218 13f79535-47bb-0310-9956-ffa450edef68
Adds a missing BirtOverrideFilters label
Fixes a typo in BirtServices.java and organise imports
Change a button name in BirtForms.xml
Uses the BirtOverrideFilters label in BirtScreens.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781215 13f79535-47bb-0310-9956-ffa450edef68