Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux 03081897c6 Fixed: Inconsistent String Comparisons (OFBIZ-9254) & Uploading image to data resource (OFBIZ-10834)
Changes made in startsWith and indexOf methods in ContentManagementServices
for OFBIZ-9254  where wrong (reversed). Fortunately only place where this happened.

I added a comment to make clear why we have 2 empty else if

I'll backport later, conflicts to handle by hand...

Thanks: Ankush Upadhyay for spotting the bug
2020-07-27 09:45:26 +02:00
Suraj Khurana e6bec1214e Improved: Updated tasks.checkstyleMain.maxErrors to 15022 ~(-3030) 2020-07-26 21:13:20 +05:30
Suraj Khurana d374019465 Improved: Corrected all incorrect indentation level issues in framework component, also fixed some case indentation checkstyle issues.
(OFBIZ-11922)
2020-07-26 21:04:41 +05:30
Suraj Khurana f8a0a83695 Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk 2020-07-26 21:01:25 +05:30
Suraj Khurana 3929ff1bd7 Improved: Corrected all incorrect indentation level issues in application component, also fixed some case indentation checkstyle issues.
(OFBIZ-11922)
2020-07-26 20:25:35 +05:30
Jacques Le Roux 9a98f5b04f Improved: Updates tasks.checkstyleMain.maxErrors (-2, from JavaDoc formatting) 2020-07-26 10:32:14 +02:00
Jacques Le Roux 9cbcef3209 Fixed: with "replaces module by MODULE everywhere" I put in a JavaDoc bug.
This fixes it and clarifies things by using className instead of module in code
when used as a var not as the MODULE const.
2020-07-26 10:30:45 +02:00
Jacques Le Roux a3fc1e8205 Fixed: Convert InvoicePerShipmentTests.xml to Groovy (OFBIZ-11553)
The order created with test case testCreateOrderServiceProduct did not get
approved so the quick ship process did not work correctly while with specific
configurableServiceOrder-test new order has got approved and the quick ship
process worked correctly.

We got multiple payment methods i.e. EXT_PAYPAL and EXT_COD but in the test case
only EXT_COD was defined.

Without shopping cart tests testIntegration works perfectly.

Shopping cart has multiple payment methods, and as cart has multiple payment
methods, order is not approved
(org/apache/ofbiz/order/shoppingcart/CheckOutHelper.java:1166)

This ensures single paymentMethod. It could reviewed again when converting
ShoppingCartTests.xml to Groovy. I have added a comment about that

Thanks: Pawan and Suraj
2020-07-26 08:45:39 +02:00
Jacques Le Roux 077625c5a6 Fixed: Unable to create event in SFA component (OFBIZ-9901)
The tests failed because CAL_OWNER instead of CONTACT was necessary
2020-07-25 19:18:45 +02:00
Jacques Le Roux 1542844add In previous commit 2b04118690 for
Revert "Improved: Convert voidPayment service from mini-lang to groovy DSL (OFBIZ-11487)"
This reverts commit faa59b325f.

I wrongly put back 2 files not part of faa59b325 commit
CostTests.xml
ProductPriceTests.xml

This removes them
2020-07-25 16:59:30 +02:00
Jacques Le Roux 2b04118690 Revert "Improved: Convert voidPayment service from mini-lang to groovy DSL (OFBIZ-11487)"
This reverts commit faa59b325f.

It introduced 3 errors in testIntegration, in:
testGlPostingOnCancelCheckRun
testGlPostingsOnVoidPayment
testVoidPayment
2020-07-25 16:06:34 +02:00
Aditya Sharma 6804a9dac3 Fixed: Unable to create event in SFA component (OFBIZ-9901)
When creating event for the party other than the loggedin user, the party should be in CAL_OWNER role to be added to event. Added appropriate check in service along with the error message.
Thanks Rubia Elza Joshep for reporting the issue and Aditi Patidar for providing the patch
2020-07-25 18:48:39 +05:30
Jacques Le Roux fc865c458a Fixed: One page checkout is broken because of ordermgr::getAssociatedStateList (OFBIZ-11838)
On orderview screen at the ordermgr, when a user tries to change the status of
the order, in OrderInfo.ftl, we are calling "changeOrderStatus" request as

<@ofbizUrl>changeOrderStatus/orderview</@ofbizUrl>

Hence when the request is done, it is rewriting URL to
https://localhost:8443/ordermgr/control/changeOrderStatus/orderview.

When js functions running in the backend like "getAssociatedStateList" are
called, they are getting the wrong URL to send a request to. This was causing
the issue.

For now, there are two different fixes that can handle both problems which are
mentioned in OFBIZ-2562 and OFBIZ-11838.

1.
  To change the request mapping for "changeOrderStatus" and add request-redirect
  to "orderview" screen. Change the actions in the forms in OrderInfo.ftl to
  call "changeOrderStatus" request only and then remove code in
  "getAssociatedStateList" js function to rewrite URL.

2.
  To add .length to the existing URL rewrite code written in
  "getAssociatedStateList" js function as

if (jQuery('#orderViewed').length) {
    requestToSend = "/ordermgr/control/getAssociatedStateList"
}

Thanks: Pritam Kute!

I picked the 2nd solution
2020-07-25 14:07:19 +02:00
Pawan Verma 5799c7e5e4 Improved: Convert CostTests.xml to Groovy(OFBIZ-11859)
Thanks, Akash for report and Anushi for the Patch.
2020-07-25 17:25:42 +05:30
Suraj Khurana ca77f88e6c Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk 2020-07-25 14:10:39 +05:30
Suraj Khurana b2d7f9ea2a Improved: Updated tasks.checkstyleMain.maxErrors to 18050 ~(-2000) 2020-07-25 14:03:50 +05:30
Jacques Le Roux faa59b325f Improved: Convert voidPayment service from mini-lang to groovy DSL (OFBIZ-11487)
Thanks: Sourabh Punyani
2020-07-25 10:33:17 +02:00
Suraj Khurana df21972eed Improved: Updated case indentation to 0 for all switch statements in applications component. Also done formatting changes as per checkstyle best practices.
(OFBIZ-11904)
2020-07-25 13:53:10 +05:30
Suraj Khurana f4f2722d36 Improved: Updated case indentation to 0 for all switch statements in framework component. Also done formatting changes as per checkstyle best practices.
(OFBIZ-11904)
2020-07-25 13:50:37 +05:30
lodhiravi 4739019732 Fixed: Error in Quick Receive Purchase Order process. (OFBIZ-11911) (#219)
Corrected typo
2020-07-25 12:11:12 +05:30
lodhiravi 356af00b83 Fixed: Converted GString to String while setting success message in receiveInventoryProduct service to avoid the ClassCastException. Also corrected loop condition while creating inventory information during PO receiving to fix the issue where each product is getting received two times (doubled the qty) instead of single time.(OFBIZ-11909) (#218) 2020-07-25 12:04:03 +05:30
Pawan Verma a779bdc5f0 Improved: Convert ProductPriceTests.xml to Groovy(OFBIZ-11856)
Thanks, Akash for report and Anushi for patch.
2020-07-25 11:49:28 +05:30
holivier b3fbf6d680 Documented: remove old content links for ofbiz-setup, the docs have
been migrated to asciidoc (OFBIZ-11587)
2020-07-22 18:15:07 +02:00
holivier bd0efaf89b Documented: remove docbook migrated to asciidoc, portlet help are now
in ofbiz-plugins / MyPortal (OFBIZ-11587)
2020-07-22 18:13:28 +02:00
Priya SharmaandPriya Sharma 679b2883e1 Improved : Convert createRoleType service to entity-auto from Java and update its service calls (OFBIZ-11894) (#215)
(OFBIZ-11894)
* Improved: Convert createRoleType service to entity-auto from Java and update its service calls
- Removed the java implementation
- Converted the service to entity-auto
- updated the service call in Party tests where this service was used.
* Improved: Removed the testCreateRoleType test, as the base service is now converted to entity-auto and will be handled in entity-auto tests. (OFBIZ-11984)

Co-authored-by: Priya Sharma <priya.sharma@hotwaxsystems.com>

Thanks: Pawan Verma for review.
2020-07-22 11:21:16 +05:30
Jacques Le Roux 4c82aba030 Improved: Add missing map for minified OpenLayers js and css (OFBIZ-11883)
Finally removes ol.js.map and references to it because it does not help due to
concatenations of multiple files in the multi mb source distribution.

Thanks: Alex Bodnaru for inquiry
2020-07-21 20:24:24 +02:00
Jacques Le Roux ee0014e98c Improved: Update build.gradle to the latest dependencies (OFBIZ-11903)
See
https://cwiki.apache.org/confluence/display/OFBIZ/About+OWASP+Dependency+Check
for libs not upgraded.
2020-07-21 10:42:49 +02:00
Suraj Khurana afa98bb8a6 Improved: Updated checkstyle.xml with allowSingleLineStatement as true, this brings down checkstyle maxErrors to 20037.(-625).
(OFBIZ-11886)
Thanks Jacques for your suggestions and comments.
2020-07-21 12:44:20 +05:30
Suraj Khurana b0486ea624 Improved: Updated tasks.checkstyleMain.maxErrors to 20662 ~(-980) 2020-07-21 12:35:14 +05:30
Suraj Khurana 7b251e43d9 Improved: Corrected some single line statements to fix checkstyle issues, also removed some remaining extra spaces from code to avoid checkstyle erros in framework component.
(OFBIZ-11886)
2020-07-21 12:25:20 +05:30
Suraj Khurana c20b03eca1 Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk 2020-07-21 12:22:39 +05:30
Suraj Khurana 038d46e51d Improved: Corrected some single line statements to fix checkstyle issues, also removed some remaining extra spaces from code to avoid checkstyle erros in applications component.
(OFBIZ-11886)
2020-07-21 12:22:02 +05:30
Priya SharmaandPawan Verma 7d024e820f Improved: Convert createPartyRelationshipType service to entity-auto from Java and update its service calls (OFBIZ-11895) (#216)
* Improved: Convert createPartyRelationshipType service to entity-auto from Java and update its service calls(OFBIZ-11895)
- Updated the service definition to convert it into entity-auto
- Removed the java implementation of the services
- Removed the test as the service has been converted to entity-auto and it will be tested using entity-auto tests

Co-authored-by: Pawan Verma
2020-07-21 10:51:44 +05:30
Jacques Le Roux 2d7c533e34 Improved: Use Error.ftl everywhere it's not yet used (OFBIZ-11890)
Removes all error*.jsp reference, no longer used
2020-07-20 19:27:00 +02:00
holivier bc6deb281c Documented: include asciidoc user and developer manual from
ofbiz-plugins (OFBIZ-11587)

create file in ofbiz-plugins
* plugins-developer-manual, which will include all include:: plugins for
developer,
* plugins-user-manual, which will include all include:: plugins for user

The file plugins-user-manual is include in user-manual and
plugin-developer-manual is include in developer-manual
2020-07-20 12:58:28 +02:00
Jacques Le Roux 775cc26cef Improved: fixes an API typo 2020-07-19 08:56:11 +02:00
Pawan Verma 7799673fa3 Improved: Convert createEmailContent service from mini-lang to groovy DSL(OFBIZ-11370)
Thanks, Devanshu for the report and Rohit for initial patch and Nicolas for updated patch and review.
2020-07-18 22:25:55 +05:30
Pawan Verma 904491ede1 Improved: Convert indexContentKeywords and forceIndexContentKeywords services from miniland to groovy(OFBIZ-11390)(OFBIZ-11392)
Thanks, Devanshu for report and Sourabh and Aishwary for the patch.
2020-07-18 22:11:32 +05:30
Jacques Le Roux 6e5a614b69 Improved: Reflected XSS in content component (OFBIZ-11840)
Fixes a Reflected XSS vulnerability in content component

Harshit Shukla reported it to the OFBiz security team:
https://demo-stable.ofbiz.apache.org/content/control/stream?contentId="><svg/onload=alert(0)>

It's a post-auth vulnerability so we did not ask for a CVE.

Thanks: Harshit Shukla harshit.shukz@gmail.com
2020-07-18 12:07:36 +02:00
Jacques Le Roux bb53e58a18 Improved: Use Error.ftl everywhere it's not yet used (OFBIZ-11890)
Removes error.jsp reference, no longer used/exist
2020-07-18 11:20:55 +02:00
Jacques Le Roux 80e545c0f8 Improved: Use Error.ftl everywhere it's not yet used (OFBIZ-11890)
We no longer have "/error/error.jsp" file,
so always use "common/webcommon/error/Error.ftl" by default
2020-07-18 11:14:58 +02:00
Pawan Verma 22bb77ebc6 Improved: Convert updateCommContentDataResource service from mini-lang to groovy DSL(OFBIZ-11379)
Thanks, Devanshu for the report, Sourabh for the initial patch and Nicolas for the updated patch.
2020-07-18 14:21:33 +05:30
Suraj Khurana 7bf1585c21 Improved: Updated tasks.checkstyleMain.maxErrors to 21638 ~(-1310) 2020-07-18 12:28:42 +05:30
Suraj Khurana 8b1e0dbd85 Improved: Corrected all checkstyle formatting issues: 'typecast' is not followed by whitespace in framework component.
(OFBIZ-11887)
2020-07-18 12:26:42 +05:30
Suraj Khurana 0524945bda Improved: Corrected all checkstyle formatting issues: 'typecast' is not followed by whitespace in applications component.
(OFBIZ-11887)
2020-07-18 12:15:16 +05:30
girishvasmatkar 04791d5821 Implemented: New service definition attribute "verb" to denote the corresponding HTTP method (OFBIZ-11328) (#214)
* Added verb as an attribute to specify the REST method OFBiz service is going to serve on

* Added methods to get service IN and OUT parameters as MAP

* Added TODO for supporing nested parameters

* Improvement : Added Restrictions for verb attribute and documentation for the same

* Fixed checkstyle issues

* Changed attribute name from verb to action for better clarity
2020-07-18 08:54:55 +05:30
Jacques Le Roux 2585cadd33 Improved: Use Error.ftl everywhere it's not yet used (OFBIZ-11890)
Removes ashes in web.xml files
2020-07-17 08:08:19 +02:00
Jacques Le Roux 8dc3609cbd Improved: Add missing map for minified OpenLayers js and css (OFBIZ-11883)
Downloaded from
https://github.com/openlayers/openlayers/releases/download/v5.3.0/v5.3.0-dist.zip

Thanks: Alex Bodnaru
2020-07-17 07:52:31 +02:00
Jacques Le Roux 782798a993 Improved: Adds missing jGrowl map file (OFBIZ-11892)
Picked from
https://cdnjs.cloudflare.com/ajax/libs/jquery-jgrowl/1.4.6/jquery.jgrowl.map

Thanks to Alex Bodnaru
2020-07-16 14:55:07 +02:00
Jacques Le Roux 7d6e5ddbb5 Improved: Hard coded label in ProductUomDropDownOnly (OFBIZ-11891)
The select label is not receiving translations.

There are more related issues, but this is independent.

Thanks: Alex Bodnaru
2020-07-16 14:34:22 +02:00