Commit Graph
27737 Commits
Author SHA1 Message Date
Suraj Khurana bfe3adeae9 Improved: Corrected all 'if is not followed by whitespace' checkstyle errors. Also corrected few ', is not followed by whitespace' checkstyle errors in applications component.
(OFBIZ-11805)
Thanks Jacques Le Roux and Ritesh Kumar for review.
2020-07-06 15:34:00 +05:30
Suraj Khurana bbfb390fb8 Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk 2020-07-06 15:31:59 +05:30
Suraj Khurana 4f53828bea Improved: Corrected all 'if is not followed by whitespace' checkstyle errors. Also corrected few ', is not followed by whitespace' checkstyle errors in framework component.
(OFBIZ-11805)
Thanks Jacques Le Roux and Ritesh Kumar for review.
2020-07-06 15:29:58 +05:30
lodhiravi 32a0cb865e Fixed: Added employee lookup to search/select employee(person) while creating new employment. This will also fixed the issue of party groups being selected as a employee. (OFBIZ-11697) (#210) 2020-07-04 23:11:58 +05:30
Pawan Verma 71ac32c89b Implemented: EntityBatchIterator which pages through large resultsets (500 at a time by default) and added support for EntityBatchIterator to EntityQuery via 'queryBatchIterator'(OFBIZ-11789) (#191)
Modified GenericDao#makeOffsetString to have OFFSET/FETCH style by default
Modified entityengine's mysql and postgres datasources to have LIMIT/OFFSET style, rest can work with default OFFSET/FETCH style

Thanks: Scott for the help.
2020-07-04 23:02:47 +05:30
Pawan Verma 52983af7c7 Fixed: Unable to delete Group Order(OFBIZ-11773) (#172)
At 0da10ea897, We converted deleteProductGroupOrder service from XML to Groovy, which generates this issue.
Reimplemented full groovy service to remove releated records.
2020-07-04 22:58:56 +05:30
Akash Jain f3997f1feb Improved: Convert AutoPaymentTests.xml to Groovy (OFBIZ-11535)
Thanks, Rohit Hukkeri for report and Pawan Verma for review.
2020-07-04 17:23:34 +05:30
Suraj Khurana ad586a1c14 Improved: Converted deleteContentKeywords service from mini-lang to groovy DSL.
(OFBIZ-11391)
Thanks Devanshu Vyas for reporting and Yogesh Naroliya for the patch.
2020-07-04 15:12:14 +05:30
Priya Sharma 18b21c1e94 [Improved] Convert getInvoicePaymentInfoList service from mini-lang to groovy DSL (#148)
(OFBIZ-11485)

Done following:
- removed the mini-lang implementation of the service
- updated the service definition to point the groovy service
- added the groovy implementation of the service
2020-07-04 14:57:53 +05:30
Suraj Khurana 9223d40204 Improved: Converted createContentFromDataResource service from mini-lang to groovy DSL.
(OFBIZ-11377)
Thanks Devanshu Vyas for reporting and Anushi Gupta for the patch.
2020-07-04 14:53:12 +05:30
Suraj Khurana dcc848baec Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk 2020-07-04 14:48:14 +05:30
Suraj Khurana 84f82a44d1 Improved: Converted getContentAndDataResource service from mini-lang to groovy DSL.
(OFBIZ-11382)
Thanks Devanshu Vyas for reporting and Ravi Lodhi for the patch.
2020-07-04 14:44:29 +05:30
Michael Brohl dfbcf595ca Fixed: Adds missing AJP connector property introduced for Tomcat 9.0.31
(OFBIZ-11848)
2020-07-03 17:34:47 +02:00
Pawan Verma efc016e5c9 Fixed: BigDecimal casting in Groovy (OFBIZ-11862)
Sometimes use wrong type castings for BigDecimal:

Used BigDecimal.ZERO and BigDecimal.ONE instead.
2020-07-03 14:08:14 +05:30
Daniel Watford 3bc59aeb14 Improved: Added new MacroFormRenderer unit tests (OFBIZ-11456) (#213)
Improved: Suppress deprecation warning on test method used to ensure behaviour is preserved until the deprecated method is removed. (OFBIZ-11456)

* Improved: Unit Tests for MacroFormRenderer

As part of refactoring MacroFormRender, unit tests have been created for
the main render methods to help ensure consistent behaviour is
maintained when MacroFormRender is changed.

More in-depth unit testing may be added when the more complex parts of
MacroFormRenderer are modified in the future.
2020-07-03 09:31:21 +02:00
holivier ef58d647b6 Documented: migrate help link to asciidoc user manual for Party
(OFBIZ-11581)

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
Party and add a short page with a link to the new help

Remove docbook help files for Party
2020-07-02 12:19:12 +02:00
holivier 34291541a0 Documented: Party migration to asciidoc
(OFBIZ-11581)

For all of HELP_Party files content has been directly put in
party.adoc

user-manual is updated to include it in.
2020-07-02 12:18:57 +02:00
holivier 56f164d3a8 Documented: migrate help link to asciidoc user manual for Order
(OFBIZ-11580)

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
Order and add a short page with a link to the new help

Remove docbook help files for Order
2020-07-02 12:07:05 +02:00
holivier 00176a26c2 Documented: Order migration to asciidoc
(OFBIZ-11580)

For all of HELP_Order files content has been directly put in
order.adoc except for order_report which has its own file

user-manual is updated to include it in.
2020-07-02 12:06:52 +02:00
holivier 51ff39c68a Documented: migrate help link to asciidoc user manual for SFA
(OFBIZ-11577)

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
SFA and add a short page with a link to the new help

Remove docbook help files for SFA
2020-07-02 11:33:19 +02:00
holivier 49de6efaf2 Documented: SFA migration to asciidoc
(OFBIZ-11577)

For all of HELP_SFA files content has been directly put in
sfa.adoc
2020-07-02 11:33:18 +02:00
holivier 19f10cc24b Documented: migrate help link to asciidoc user manual for marketing
(OFBIZ-11577)

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
marketing and add a short page with a link to the new help

Remove docbook help files for marketing
2020-07-02 11:14:21 +02:00
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
Deepak Dixit 8160a572ea Added Changelog.adoc file (#206) 2020-07-02 14:23:11 +05:30
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 8b8e890249 Improved: updates tasks.checkstyleMain.maxErrors to 26671 (-7) 2020-06-29 12:03:28 +02:00
Jacques Le Roux b1e48eef37 Improved: makes ScreenFopViewHandler::render debug area also usable on Windows 2020-06-29 11:47:23 +02:00
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
Michael Brohl 119be59b77 Fixed: Upgrades Tomcat to 9.0.36 due to CVE-2020-11996 (OFBIZ-11848) 2020-06-28 12:46:29 +02:00
Pawan Verma 031592cc32 Fixed: EntityQuery queryCount is throwing error with distinct method (OFBIZ-11294)
Added missing support for selectFields in queryCount and all the subsequent methods.

Thanks: Deepak Dixit for the review.
2020-06-28 01:40:58 +05:30
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
Jacques Le Roux db4ee8f9e6 Fixed: With Rainbow theme, a scrollbar appears at bottom where it's not needed
(OFBIZ-10174)

With Rainbow theme, even in large screens, a scrollbar appears at bottom where
it's useless.

The CSS which is adding a border-right on the application bar is adding extra
1px width causing this issue. Attached the patch to remove extra width for the
same.

Thanks: Nameet Jain for the patch
2020-06-27 16:20:41 +02:00
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