Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux c8133bef6a No functional change
Adds a line to clean checkstyle.html at https://ci.apache.org/projects/ofbiz/logs/
and move it to https://ci.apache.org/projects/ofbiz/logs/trunk, it's only trunk
2019-11-28 15:59:13 +01:00
Jacques Le Roux bdde0f8a12 No functional change
Removes the line to test trunk build is triggered
2019-11-28 15:18:10 +01:00
Jacques Le Roux 31f3fc3c32 No functional change
Just a new line to test trunk build is triggered
2019-11-28 15:10:16 +01:00
Mathieu Lirzin 3b14e7afa9 Reverted: "Fixed: add XML declaration in “web.xml” files (OFBIZ-6993)"
This reverts commit a93b1fcb78.
2019-11-27 21:42:33 +01:00
Mathieu Lirzin b006b8c7cb Revert "Improved: Update “web.xml” files version 3.0 → 4.0 (OFBIZ-6993)"
This reverts commit 226e901981.
2019-11-27 21:40:10 +01:00
Samuel Trégouët 226e901981 Improved: Update “web.xml” files version 3.0 → 4.0 (OFBIZ-6993) 2019-11-27 17:29:41 +01:00
Samuel Trégouët a93b1fcb78 Fixed: add XML declaration in “web.xml” files (OFBIZ-6993)
these declarations avoid SAXParseException traceback when parsing web.xml
the first time in WebappUtil.parseWebXmlFile
2019-11-27 17:28:44 +01:00
Mathieu Lirzin bc52fc3821 Improved: Upgrade Tomcat 9.0.27 → 9.0.29 (OFBIZ-11300) 2019-11-27 17:19:11 +01:00
Mathieu Lirzin d78a0963b5 Improved: Remove unnecessary explicit Tomcat dependencies (OFBIZ-11300)
Tomcat already provides the Servlet and JSP Java EE related interfaces
so there is no need to explicitly add the ‘javax...’ dependencies.

Additionally ‘tomcat-catalina-ha’ depends on ‘tomcat-catalina’ and
‘tomcat-tribes’ so we can make those dependencies implicit.

‘axis2-kernel’ is now placed after ‘tomcat-qa’ in the dependencies
block to ensure that we use the Servlet interfaces provided by Tomcat.
2019-11-27 17:11:57 +01:00
Mathieu Lirzin 949c42e281 Improved: Reference the Servlet javadoc from Apache Tomcat (OFBIZ-11300)
Since we are using the servlet API implemented by Apache Tomcat, it is
better to use its documentation than the one from oracle which is not
updated anymore because of Java EE community adoption.
2019-11-27 15:58:46 +01:00
Mathieu Lirzin 1a8860a33f Improved: Do not exclude files from component ‘config’ directories (OFBIZ-11161)
With the goal of distributing OFBiz as a library in a Jar, we must
include every configuration resource files in the Jar.
2019-11-25 21:51:25 +01:00
Mathieu Lirzin eeabe69813 Improved: Use ‘depends-on’ attribute instead of “component-load.xml” (OFBIZ-11296)
We currently have two ways to define component loading order. Either
by using ‘depends-on’ attribute in “component-config.xml” or by adding
a “component-load.xml” file at the root of a component directory.

“depends-on” is more flexible because it handles partial ordering when
“component-load.xml” defines a total order which is not necessarily
meaningful, so it is better to rely only “depends-on”.

This removes the usage of “component-load.xml” to use ‘depends-on’
instead. The dependency declarations correspond to the total ordering
previously defined but will need to be refined in the future to relax
unnecessary dependency declarations.

Only “framework/base/config/component-load.xml” which defines the
top-level directories order (framework, applications, themes and
plugins) is kept.
2019-11-25 15:28:54 +01:00
Samuel Trégouët 000325208a Fixed: Remove dependency management from ‘ComponentContainer’
(OFBIZ-11275)

This fixes a bug identified by ‘testCheckDependencyForComponent’ where
the dependencies declared inside component configurations were not
impacting the component retrieval order.

Component configurations stored in the cache can now be properly
sorted based on their <depends-on> declaration.  The new
‘ComponentConfig#sortDependencies’ method returns a collection of
component configuration following a topological ordering.

In case of dependency cycle we throw an error.
2019-11-25 14:56:18 +01:00
Jacques Le Roux 3d555f5765 Fixed: Number problem cancelling order item
(OFBIZ-11283)

If an order item has a quantity greater then 1000, cancelling the order item via
the order form in backend does not work.

In the Demo (trunk) environment: the quantity of 1200 to cancel is displayed as
"1,200" in the quantity input field.
--> an error is displayed

On my local installation I use a different locale and it is displayed as "1.200".
--> interprets the dot as a comma and the quantity of 1,2 is cancelled

Create Order: Order Mgt --> Order Entry --> Sales Order (Customer: DemoCustomer)
--> ProductId: GZ-2644, Quantity 1200 --> Finalize order
On order: Edit Items --> click checkbox next to quantity -->cancel selected items

jleroux: I have applied the same in ReceiveInventory.ftl

Thanks: Ingo Wolfmayr for report and test. Ankush Upadhyay for the fix
2019-11-25 10:29:21 +01:00
Nicolas Malin bc0b80b466 Fixed: Remove unneeded space after parenthesis 2019-11-25 09:13:18 +01:00
Pawan Verma fc1e1b4858 Fixed: liniting issues introduced by commit d00208c
(OFBIZ-10585)

Thanks: Mathieu Lirzin for report
2019-11-25 12:52:44 +05:30
Mathieu Lirzin 174b92475f Improved: Define ‘gradlew’ variable in “build.gradle” only once 2019-11-23 16:40:52 +01:00
Pawan Verma d00208cad9 Fixed: Production run not created for marketing package auto type product if component inventory is not available
(OFBIZ-10585)

When we create an order for marketing package auto, the system checks the component inventory and if found then it creates the production run job and produce marketing package inventory, but if component quantity not available then it does not create the job. So if we don't have an inventory item of component then production run should be created with created status.

Thanks: Yashwant Dhakad for report and Ankush Upadhyay for the patch.
2019-11-23 11:59:07 +05:30
Pawan Verma 463648a6ea Fixed: Error while CSR creates a return
(OFBIZ-11068)

Added check to validate Payment Method passed from UI while creating return. If not available in system, throw an error.

Thanks: Dikpal Kanungo for report and Rohit Hukkeri for the patch.
2019-11-23 11:10:30 +05:30
Nicolas Malin 7366da34cc Fixed: Usage of 'include-form' instead of 'include-grid' in PartyScreens.xml for grid elements
(OFBIZ-11286)

In PartyScreens.xml there were 'ListInvoicesApplPayments', 'ListUnAppliedInvoices' and 'ListUnAppliedPayments' include as form instead of grid but in PartyForms.xml they are defined as grids.

Thanks to Ulrich Heidfeld to raise and solve this issue
2019-11-22 15:26:10 +01:00
Nicolas Malin a1f16274c2 Improved: Add enconding type attribute for import data file tools
(OFBIZ-10234)
During the import of file via datafile import you may want to set encoding type.
Actually only the type UTF-8 is supported.
This commit allows to add a new "encoding-type" attribute into data-file to indicate the type of encoding of the imported file.

Thanks to Pierre Gaudin for this improvement.
2019-11-22 15:10:37 +01:00
Jacques Le Roux 4947e5cf2d No functional change
Removes new line added to test Buildbot config after INFRA-19443
2019-11-21 08:29:50 +01:00
Jacques Le Roux cbcc64bdec No functional change
Just a new line added to test Buildbot config after INFRA-19443
2019-11-21 08:29:50 +01:00
Jacopo Cappellato cbad4d3e22 Fixed: Add missing view permissions checks to various screens. 2019-11-15 19:23:38 +01:00
Nicolas Malin 935ffe86ca Fixed: Possible NPE in StringUtil#strToMap
(OFBIZ-11281)

StringUtil#strToMap(String, String, boolean, String) throws Nullpointer for StringUtil.strToMap("", false).

Thanks to Ulrich Heidfeld for this fix
2019-11-14 09:10:05 +01:00
Jacques Le Roux 18d84ac162 Improved: Convert AutoAcctgInvoiceTests Unit Test from XML to Groovy
(OFBIZ-11277)

Removes empty AutoAcctgInvoiceTests.xml
2019-11-11 11:29:14 +01:00
Pawan Verma fbf8531e49 Improved: Convert AutoAcctgInvoiceTests Unit Test from XML to Groovy
(OFBIZ-11277)

Thanks: Jacques Le Roux for the review.
2019-11-11 12:12:21 +05:30
Nicolas Malin 2c58133e50 Improved: Improve webtools/control/FindGeneric
(OFBIZ-11253)
Update the script to generate xml form to introduce new following features :

   * set equals as operator by default on pk instead of contains, when you use a pk on FindGeneric it's in general to resolve it on completed key.
   * add on tooltip the raw field name
   * add possibility to filter on internal field
   * add sort on column

During this work I also view that the ModelFormField contains an 'IF forest' to analyze each field. I rewrote it to consolidate the analyze by type.
2019-11-10 20:14:34 +01:00
Jacques Le Roux 61ade2add5 Improved: SeoContextFilter.java is not able to handle query strings
(OFBIZ-11278)

Removes a trailing blank and uses empty to check request::getParameterMap result

Thanks: Mathieu to spot "empty to check request::getParameterMap result"
2019-11-10 10:43:07 +01:00
Jacques Le Roux 09e583b554 Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk
Git merge to be able to amend my last commit missing info in message
2019-11-09 22:03:00 +01:00
Jacques Le Roux 0741c7148a Fixed: SeoContextFilter.java is not able to handle query strings
(OFBIZ-11278)

While working on OFBIZ-9804 (verification email for Newsletter) I was confronted
with misc. issues. One of them was that SeoContextFilter.java was not handling
query strings.

This fixes it
2019-11-09 21:59:44 +01:00
Jacques Le Roux ee8e959ca8 Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk
Git merge to be able to amend my last commit missing info in message
2019-11-09 21:47:12 +01:00
Jacques Le Roux b936814c00 Fixed: SeoContextFilter.java is not able to handle query strings
(OFBIZ-11278)

While working on OFBIZ-9804 (verification email for Newsletter) I was confronted
with misc. issues. One of them was that SeoContextFilter.java was not handling
query strings.

This fixes it
2019-11-09 20:48:42 +01:00
Jacques Le Roux 5170e9d895 Fixed:
(OFBIZ-)

While working on OFBIZ-9804 (verification email for Newsletter) I was confronted
with misc. issues. One of them was that SeoContextFilter.java was not handling
query strings.

This fixes it
2019-11-09 14:25:34 +01:00
Mathieu Lirzin a521de9ad8 Reverted: "Fixed: Remove dependency management from ‘ComponentContainer’"
(OFBIZ-11275)

This reverts commit 3d3533cf5e.

‘./gradlew cleanAll loadAll’ do not work anymore.
2019-11-09 00:54:56 +01:00
Mathieu Lirzin 03b69b30a5 Fixed: Fix linting issues
(OFBIZ-11265)
2019-11-08 18:19:51 +01:00
Samuel Trégouët 3d3533cf5e Fixed: Remove dependency management from ‘ComponentContainer’
(OFBIZ-11275)

This fixes a bug identified by ‘testCheckDependencyForComponent’ where
the dependencies declared inside component configurations were not
impacting the component retrieval order.

Component configurations stored in the cache can now be properly
sorted based on their <depends-on> declaration.  The new
‘ComponentConfig#sortDependencies’ method returns a collection of
component configuration following a topological ordering.

In case of dependency cycle we throw an error.
2019-11-08 18:19:51 +01:00
Samuel Trégouët 7044af8a6f Implemented: Add a generic directed graph utilitary class
(OFBIZ-11275)
2019-11-08 18:19:51 +01:00
Samuel Trégouët 1317703c9a Implemented: Show dependency resolution algorithm problem
(OFBIZ-11275)

This adds a test demonstrating a bug in the dependency resolution
algorithm done in ‘ComponentContainer’.

When relying on <depends-on> declaration in “ofbiz-component.xml”
files we should expect to retrieve components (and their associated
containers) in a topological ordering meaning a linear ordering where
each component configuration element is placed after its dependencies
configuration elements.  Currently this is not the case and the
dependency declarations only impact the construction of the dynamic
classpath.
2019-11-08 18:19:46 +01:00
Jacques Le Roux 8aea160e04 Fixed: Getting policy error while editing html text data using cms
(OFBIZ-11265)

Service parameter with allow-html="safe" does not check the OWASP sanitizer flag
ie. enabled or not and perform sanitization which causing policy error while
editing text data

getting following exception error:
"In field [textData] by our input policy, your input has not been accepted for
security reason. Please check and modify accordingly, thanks."

Thanks: Pradeep Choudhary for report and suggestion
2019-11-07 15:46:05 +01:00
Jacques Le Roux 12cc975a26 Improved: no functional change
(OFBIZ-10019)

Adds a warning to remember to do OFBIZ-10019 when updating Freemarker >= 2.4
2019-11-07 15:30:03 +01:00
Jacques Le Roux 4815de7d92 Fixed: Update the SvnCheckout Gradle task to used Github svn repo
(OFBIZ-11276)

Relies on a Github specific feature which allows to use and automated
mirrored svn repo.

(cherry picked from commit 0c489aa609)
2019-11-06 20:00:44 +01:00
Jacques Le Roux ae5ad0b7cc Revert "Fixed: Update the SvnCheckout Gradle task to used Github svn repo"
This reverts commit 0c489aa609.
2019-11-06 19:55:16 +01:00
Jacques Le Roux 0c489aa609 Fixed: Update the SvnCheckout Gradle task to used Github svn repo
(OFBIZ-11276)

Relies on a Github specific feature which allows to use and automated
mirrored svn repo.
2019-11-06 17:26:47 +01:00
Samuel Trégouët 889769593e Improved: Remove ‘ServiceEventHandler#checkSecureParameter’
(OFBIZ-11260)

There is no security reason justifying to prevent the invocation of
service event handlers with URI parameters if we accept request body
parameters.  As a consequence it is preferable to unconditionally
accept URI parameters and remove the
‘service.http.parameters.require.encrypted’ configuration property.
2019-11-04 22:52:16 +01:00
Samuel Trégouët f93b9ea29a Improved: Lint ‘ServiceEventHandler’ class
(OFBIZ-11260)
2019-11-04 22:50:14 +01:00
Jacques Le Roux 6f5924cc85 Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk 2019-11-04 15:32:44 +01:00
Jacques Le Roux 2af71198d4 Fixed: content/control/WebSiteCms?webSiteId=CmsSite fails
(OFBIZ-11266)

I did not notice that I unintentionally removed a line
while fixing OFBIZ-11259
2019-11-04 15:24:23 +01:00
Jacques Le Roux a62c4e0ac4 Create .sonarcloud.properties 2019-11-04 09:24:22 +01:00
Jacques Le Roux 8f4cfeb951 Fixed: baseEcommerceSecureUrl does not work in ecomseo.
(OFBIZ-11267)

This fixes it by introducing a new pattern in SeoConfig.xml
2019-11-02 09:43:08 +01:00