Commit Graph
14503 Commits
Author SHA1 Message Date
holivier 2f7aa04236 Documented: Marketing migration to asciidoc and new documentation
organization
(OFBIZ-11577)

Main files and ContactList
2020-07-02 11:14:10 +02:00
Akash Jain f764266d17 Improved: Convert AutoInvoiceTests.xml to Groovy (OFBIZ-11531)
Thanks, Rohit Hukkeri for the report.
2020-07-02 12:20:18 +05:30
Suraj Khurana d58ffe1e8e Fixed: Console warnings related to OrderHeader caching.
(OFBIZ-11858)
Thanks Praveen Sharma for the patch and Jacques for review.
2020-07-02 10:55:55 +05:30
Pawan Verma 6de4b73074 Improved: Convert getPayments service from mini-lang to groovy DSL(OFBIZ-11495)
Thanks: Devanshu for the report and Yogesh for the patch.
2020-07-01 16:13:33 +05:30
Pawan Verma 9e97730288 Improved: Convert getDataResource service from mini-lang to groovy DSL(OFBIZ-11381)
Thanks: Devanshu for report and Kirti for the patch.
2020-07-01 16:02:33 +05:30
Pawan Verma 20ba868b7d Improved: Convert cancelPaymentBatch service from mini-lang to groovy DSL(OFBIZ-11489)
Thanks: Devanshu for report, Kirti for patch and Jacques for the review.
2020-07-01 15:48:49 +05:30
Jacques Le Roux 5880859c7c Implemented: Convert voidPayment service from mini-lang to groovy DSL (OFBIZ-11487)
Thanks: Devanshu Vyas for report and Sourabh Punyani for implementation
2020-07-01 12:05:22 +02:00
Akash Jain da0002fc4a Improved: Convert AutoAcctgTransTestsSales.xml to Groovy (OFBIZ-11526)
Thanks, Rohit Hukkeri for the report.
2020-07-01 10:57:41 +05:30
Jacques Le Roux 4bf23fdd9c Fixed: BigDecimal casting in Groovy (OFBIZ-11862)
Fixes syntax errors introduced by my previous commit
2020-06-30 18:42:43 +02:00
Jacques Le Roux df179777b6 Fixed: BigDecimal casting in Groovy (OFBIZ-11862)
Sometimes use wrong type castings for BigDecimal:

I have observed that for typecasting in groovy, we have used the wrong coding
pattern like

(BigDecimal) 0
It should be like
0 as BigDecimal

Note that this does not apply to decimal because in case of decimal, the default
type is always BigDecimal in Groovy.

Thanks: Pritam Kute for spotting the issue in OFBIZ-11843
2020-06-30 15:17:47 +02:00
Akash Jain 8be1705765 Improved: Convert AutoAcctgTransTestsPurchase.xml to Groovy (OFBIZ-11522)
Thanks, Rohit Hukkeri for the report.
2020-06-30 11:43:23 +05:30
Jacques Le Roux ebe18e45f1 Improved: Unable to upload additional image for a product (OFBIZ-11844)
OFBIZ-11436 broke the uploadProductAdditionalViewImages service but something
else remains which prevents to create a content

Thanks: Arpit Mor for report
2020-06-28 21:48:44 +02:00
Priya SharmaandPriya Sharma 5a144c0bed Improved: Use GroovyBaseScript's makeValue utility methods in each Groovy files (OFBIZ-11779)
Co-authored-by: Priya Sharma <priya.sharma@hotwaxsystems.com>
2020-06-28 01:24:32 +05:30
Pawan Verma 3da16a182c Improved: Replace Collection.sort() with List.sort().(OFBIZ-11830) 2020-06-28 01:21:23 +05:30
Pawan Verma e19b12eae9 Improved: Replace explicit type argument with diamond operator(OFBIZ-11828)
Since Java 1.7, when defining generic types it is unnecessary to redefine those types in the constructor when it is already done in the declared type.
2020-06-28 01:04:51 +05:30
pritambkuteandPritam Kute a7fa31c403 Fixed the issues in accept return process. (OFBIZ-11843) (#211)
Co-authored-by: Pritam Kute <pritam.kute>
2020-06-27 18:32:56 +05:30
Priya SharmaandPriya Sharma 0f9307c071 Improved: Convert InvoicePerShipmentTests.xml tests to groovy (OFBIZ-11553) (#208)
* Improved: Convert InvoicePerShipmentTests.xml tests to groovy (OFBIZ-11553)
Done following:
- converted all xml test implementation to groovy
- used MockHttpServletRequest MockHttpServletResponse objects for triggering the events
- removed the xml version of the test implementations
- updated the test service mapping in the invoicetests.xml
(OFBIZ-11553)

* Improved: Moved the common code into a method so as to avoid duplication of code.
- passed in two parameters i.e. product id and the invoicePerShipment flag, to be used as per the need of the testcase.
(OFBIz-11553)

* Improved: Added support to get access to the Debug log methods in the groovy tests. (OFBIZ-11553)
- Also updated the references in the InvoicePerShipment tests.

Co-authored-by: Priya Sharma <priya.sharma@hotwaxsystems.com>
2020-06-27 18:09:34 +05:30
Jacques Le Roux 8fc41cb9ae Improved: Convert createFinAccoutnTransFromPayment service from mini-lang to groovy DSL (OFBIZ-11492)
Fixes previous commit, I used a 1st patch and did not see it was wrong

Thanks: Anushi Gupta for the 2nd patch
2020-06-27 12:17:16 +02:00
Jacques Le Roux f421af33a3 Improved: Convert createFinAccoutnTransFromPayment service from mini-lang to groovy DSL (OFBIZ-11492)
Thanks: Devanshu Vyas  for report, Anushi Gupta for the patch
2020-06-27 12:06:46 +02:00
Jacques Le Roux 7342f35d6f Fixed: IDOR vulnerability in the order processing feature in ecommerce component (OFBIZ-11836)
Fixes a bug when there are no problem viewing the order, my bad
2020-06-27 10:43:02 +02:00
Pawan Verma d355269d8d Improved: Moves Shipment Services files from sub-dirs to shipment dir (OFBIZ-11468) 2020-06-27 13:04:51 +05:30
Pawan Verma 7f67a493f0 Improved: Replace Iterator.remove() with Collection.removeIf().(OFBIZ-11831)
From Java8 we have Collection.removeIf() method works by applying the condition provided in the Predicate instance to all the elements in the Collection on which it is invoked. The elements which satisfy the condition are retained while the remaining are removed from the Collection.
2020-06-27 11:37:06 +05:30
Jacques Le Roux 3926134950 Improved: Moves Shipment Services files from sub-dirs to shipment dir (OFBIZ-11468)
In PR#150 Pierre Smits suggested to move this new Groovy files updir:

"There is no need to have subfolders defining where the services belong to when
such is already captured in the name of the file, e.g.:
folder /shipment/receipt/ when the filename has ShipmentReceiptServices.groovy
Similarly
/shipment/issuance/ when the filename has ShipmentIssuanceServices.groovy"
2020-06-27 08:01:08 +02:00
Pawan Verma 9cf6ec8c90 Improved: Refactor PickListServices#isBinComplete method to remove unnecessary iterations(OFBIZ-11823)
Thanks: Suraj and Jacques for the review.
2020-06-27 11:27:51 +05:30
Pawan Verma f0af2894e5 Improved: Merge identical catch blocks in single catch block(OFBIZ-11827)
In Java SE 7 and later, a single catch block can handle more than one type of exception. This feature can reduce code duplication and lessen the temptation to catch an overly broad exception.

Thanks: Jacques for the review.
2020-06-27 11:23:12 +05:30
Jacques Le Roux 4f841e9897 Fixed: IDOR vulnerability in the order processing feature in ecommerce component (OFBIZ-11836)
https://demo-stable.ofbiz.apache.org/ecommerce/control/order.pdf?orderId=WSCO10000

In the above URL, the parameter 'orderId' has the value 'WSCO10000' and after
incrementing the value to 'WSCO10001' or 'WSCO10002' will download the receipt
of other orders which have been placed by other users.

All the available order receipts can be downloaded by running an automated tool
(Burp Intruder) on the parameter 'orderId=WSCOXXXXX'

I have successfully tested this by using 2 different accounts: DemoCustomer and
DemoCustomer2

An attacker can download order receipts of other users and this could lead to
information disclosure.

The only real solution to this issue is to implement access control. The user
needs to be authorized for the requested information before the server provides
it.

Thanks: Harshit Shukla [mailto:harshit.shukz@gmail.com]reported this IDOR
vulnerability to the OFBiz security team, and we thank him for that.
2020-06-26 09:28:49 +02:00
Jacques Le Roux 2c85c8e43b Fixed: Updated hard coded values of location types and used all available location enums instead (OFBIZ-6042)
Fixes a typo
2020-06-25 11:00:31 +02:00
Jacques Le Roux 260373673d Fixed: Adds missing license headers
Also renames gradle.yml into gradle.yaml
2020-06-25 09:18:40 +02:00
wpaetzoldandWiebke Pätzold 7335ce021a OFBIZ-11468 Improved: Convert ShipmentReceiptServices.xml mini lang to groovy (#150)
* Improved: Convert ShipmentReceiptServices.xml mini lang to groovy

(OFBIZ-11468)

Also converted getTotalIssuedQuantityForOrderItem in IssuanceServices, because it is used in ShipmentReceiptServices and needed more return values.

* split to long lines

Co-authored-by: Wiebke Pätzold <Wiebke.Paetzold@ecomify.de>
2020-06-24 10:57:28 +02:00
Pawan Verma 4275825b4a Improved: Replace anonymous types with lambda expressions(OFBIZ-11833) 2020-06-24 14:11:05 +05:30
Pawan Verma bb18170d71 Improved: Converted test-group to test-case as there is only one test case.(OFBIZ-11560) 2020-06-24 12:30:30 +05:30
Jacques Le Roux 3c22a3f912 Improved: Convert testTaxGeoId test from XML to Groovy (OFBIZ-11560)
This can be tested using

./gradlew "ofbiz --test component=accounting --test suitename=paymentappltests"

Thanks: Rohit Hukkeri for report and Anushi Gupta for the patch
2020-06-23 15:14:02 +02:00
Pawan Verma 2a4a617d0d Improved: Replace try-finally with try with resources(OFBIZ-11826)
Set checkstyleMain.maxErrors to 26678 (-4)

Thanks: Jacques for the review.
2020-06-22 21:32:42 +05:30
Pawan Verma 30732dd57b Improved: Replace Map.get() with Map.getOrDefault() method.(OFBIZ-11832)
Set checkstyleMain.maxErrors to 26682 (-2)
2020-06-22 21:26:18 +05:30
Pawan Verma 15c005fa42 Improved: Replace for-loop with forEach loop(OFBIZ-11829)
Also modified some checkstyle issues.

Set checkstyleMain.maxErrors to 26684 (-61)

Thanks: Jacques for the review.
2020-06-22 21:17:49 +05:30
holivier 3a601c90fb Documented: remove docbook help files for manufacturing (OFBIZ-11587)
All files have been migrated to asciidoc format.
2020-06-20 16:04:12 +02:00
holivier 915073ba84 Documented: migrate help link to asciidoc user manual for manufacturing
(OFBIZ-11416)

All files have been migrated to asciidoc format and help link now point
to the html file generated from the asciidoc files

In the global Help Docbook index tree, remove all points about
manufacturing and add a short page with a link to the new help
2020-06-20 16:03:58 +02:00
holivier 74a1b73fda Documented: Manufacturing MRP migration to asciidoc
(OFBIZ-11416)

For all of files, content has been directly put in mfg-mrp.adoc
2020-06-20 16:02:46 +02:00
holivier 47a7b30bac Documented: Manufacturing Bill Of Material migration to asciidoc
(OFBIZ-11416)

For all of files, content has been directly put in mfg-bom.adoc
2020-06-20 16:02:46 +02:00
holivier 166d0b33fd Documented: Manufacturing Cost Component Calc migration to asciidoc
(OFBIZ-11416)

The HELP file content has been directly put in manufacturing.adoc
2020-06-20 16:02:46 +02:00
holivier a69ca79ab4 Documented: Manufacturing Calendar migration to asciidoc
(OFBIZ-11416)

For all of files content has been directly put in
mfg-calendar.adoc
2020-06-20 16:02:46 +02:00
holivier b13573a330 Documented: Manufacturing Routing Task migration to asciidoc
(OFBIZ-11416)

For all of files content has been directly put in
mfg-routing-task.adoc
2020-06-20 16:02:46 +02:00
holivier 061cb0dabd Documented: Manufacturing Routing migration to asciidoc
(OFBIZ-11416)

For all of files content has been directly put in
mfg-routing.adoc
2020-06-20 16:02:46 +02:00
holivier 7d1c2c5ed4 Documented: Manufacturing Production Run migration to asciidoc
(OFBIZ-11416)

For most of files content has been directly put in
mfg-production-run.adoc
2020-06-20 16:02:46 +02:00
holivier 8652c3ca04 Documented: Manufacturing migration to asciidoc and new documentation
organization
(OFBIZ-11416)

Main files
2020-06-20 16:02:46 +02:00
James Yong ea537323fa Reverted: Use Compound Widget on rest of the project (OFBIZ-11821) 2020-06-20 20:16:11 +08:00
James Yong 49601e1213 Reverted: Use Compound Widget on rest of the project (OFBIZ-11821)
Removed FindRequestCompound.xml
2020-06-20 20:12:35 +08:00
James Yong 2f557b7fba Reverted: Use Compound Widget on rest of the project (OFBIZ-11821)
Verbose and may better suit in custom implementation.
2020-06-20 20:06:42 +08:00
holivier 21077ac056 Documented: remove docbook help files for humanres (OFBIZ-11587)
All files have been migrated to asciidoc format and help link now point
to the html file generated from the asciidoc files

In the global Help Docbook index tree, remove all points about
humanres and add a short page with a link to the new help
2020-06-19 17:23:29 +02:00
holivier a65c000a07 Documented: remove docbook help files for content
(OFBIZ-11587)

All files have been migrated to asciidoc format and help link now point
to the html file generated from the asciidoc files

In the global Help Docbook index tree, remove all points about
content and add a short page with a link to the new help
2020-06-19 17:23:02 +02:00