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"
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.
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.
* 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>
This can be tested using
./gradlew "ofbiz --test component=accounting --test suitename=paymentappltests"
Thanks: Rohit Hukkeri for report and Anushi Gupta for the patch
(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
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
(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
It's reproductible on trunk demo though only visible in log, UI shows no issue
R17 and R18 are also affected, R16 is OK.
Ankush: This stacktrace should be coming for all entities where
default-resource-name is defined on entity definition but no property exist in
defined resource for key EntityDescription.entityname and FieldDescription.field.
As we want to have these entity labels as much as possible, we can simply print
warning about the missing entity descriptions and field descriptions for
readability purpose instead of printing huge exceptions stacktrace.
Thanks: Ankush Upadhyay and Pierre Smits for the help
This workflow will check the java style with Gradle
Adapted from: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
This is a test...
(OFBIZ-11752)
Upgraded jQuery to 3.5.2 and jQuery migrate to 3.3.0 to vulnerabilities
of medium severity
Regex in its jQuery.htmlPrefilter sometimes may introduce XSS;
https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/
change in HelpScreen.xml
Descriptions and labels are self serve - by placing a .asf.yaml file in your
default branch with some settings: https://s.apache.org/78e1o
Thanks: Gavin McDonald from Infra
Handles 2 possible NPR reported by SpotBugs
Removes the unused createPrimaryKeyFetcher method as reported by Eclipse
Reformats modified code to stay into 150 chars by line and other style issues
Sets tasks.checkstyleMain.maxErrors to 26759 (-1)
This was reported by SpotBugs in Eclipse to prevent a possible NPE.
It seems to me that it's more complex than that because of the
PolicyFactory::sanitize methods signatures where @Nullable annotation is
used. So the SpotBugs warning remains, anyway can't hurt.
BTW found 92 issues reported by SpotBugs in Eclipse, among them 33 are "scary"
I had to add 1 to tasks.checkstyleMain.maxErrors because of
https://github.com/apache/ofbiz-framework/pull/203 that I pulled after the push
was rejected by the pre-push local Git hook
Done the following:
- Added a field on the UI to allow the input of the check reference number
- Added logic to set this reference number on the cartpaymentinfo map
- Added logic to fetch the reference number from the order preference record and apply it on the payment.
(OFBIZ-7377)
Co-authored-by: Priya Sharma <priya.sharma@hotwaxsystems.com>