Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux 3155906740 Improved: small typo in trunk (OFBIZ-11952)
I also replaced tabs by spaces in applications/product/servicedef/services.xml

Thanks: Alex Bodnaru
2020-08-13 09:16:20 +02:00
James Yong 30065236b1 Fixed: multi-block attribute for html-template tag (OFBIZ-11686)
Fixed regression where 1st of the 2 maps failed to render when accessing:
https://localhost:8443/example/control/ExampleGeoLocationPointSet4
https://localhost:8443/example/control/ExampleOsmGeoLocationPointSet4
2020-08-13 14:31:07 +08:00
Jacques Le Roux ca18275477 Improved: Add a title to Javadoc overview (OFBIZ-11950)
We can add a global version heading using the Gradle title Javadoc option:
https://docs.gradle.org/current/dsl/org.gradle.api.tasks.javadoc.Javadoc.html

Relates to https://markmail.org/message/t3svau3udlwaa7mq
2020-08-12 15:23:57 +02:00
Priya SharmaandPriya Sharma 9e7df96921 Improved: Move 'SecurityPermission' data to seed data files (OFBIZ-10575) (#225)
Co-authored-by: Priya Sharma <priya.sharma@hotwaxsystems.com>
2020-08-11 16:01:18 +02:00
Jacques Le Roux 7647685621 Improved: multi-block attribute for html-template tag (OFBIZ-11686)
Fixes JavaDoc issues
2020-08-10 11:07:03 +02:00
Jacques Le Roux 8af9413193 Improved: Upgrade Gradle to V6.5.1 (OFBIZ-11946)
V6.5.1 is the current stable version
2020-08-10 10:09:14 +02:00
James Yong cf083f2cbe Improved: multi-block attribute for html-template tag (OFBIZ-11686)
Improved documentation. No code change.
2020-08-10 09:23:50 +08:00
Jacques Le Roux 4ff22b46dc Improved: Convert getInvoicePaymentInfoListByDueDateOffset service from mini-lang to groovy DSL (OFBIZ-11486)
Thanks: Devanshu Vyas for report, Nitish Mishra for the patch
2020-08-09 20:14:10 +02:00
Jacques Le Roux cc61673198 Improved: Convert cancelCheckRunPayments service from mini-lang to groovy DSL (OFBIZ-11494)
Thanks: Devanshu Vyas for report, Yogesh Naroliya for the patch
2020-08-09 20:07:51 +02:00
Suraj Khurana af15eba5ff Improved: Updated tasks.checkstyleMain.maxErrors to 10184 ~(-1925) 2020-08-09 13:23:08 +05:30
Suraj Khurana d70bb8763e Improved: Added override property in DesignForExtension module to avoid unnecessary design for extension checkstyle error messages for overrided methods.
(OFBIZ-11941)
Thanks Jacques for you inputs.
2020-08-09 13:19:03 +05:30
Suraj Khurana 4634c198b2 Improved: Updated tasks.checkstyleMain.maxErrors to 12110 ~(-110) 2020-08-09 13:16:09 +05:30
Suraj Khurana 6df66ff7a7 Improved: Corrected max parameter number allowed checkstyle rule, also added proeprty for ignoring overridden methods.
(OFBIZ-11931)
Thanks Jacques for your inputs.
2020-08-09 12:43:59 +05:30
Jacques Le Roux 904dfb1ed2 Improved: Removed unused imports from Java files for fixing checkstyle errors (OFBIZ-11930)
Not sure what happened with last commit, this sets
tasks.checkstyleMain.maxErrors from 12247 to 12223
2020-08-08 17:12:43 +02:00
Jacques Le Roux b895a9c889 Improved: Removed unused imports from Java files for fixing checkstyle errors (OFBIZ-11930)
Fixes few javadoc issues

Since this has been ignored for few commits I need to increase
tasks.checkstyleMain.maxErrors from 12224 to 12247 (did not check the detail)
2020-08-08 14:04:08 +02:00
Suraj Khurana ad5ab7299e Improved: Updated tasks.checkstyleMain.maxErrors to 12224 ~(-54) 2020-08-07 19:04:51 +05:30
Priya Sharma 5dbf5cb9eb Improved: Removed unused imports from Java files for fixinf checkstyle errors
(OFBIZ-11930)
Thanks: Priya Sharma
2020-08-07 18:57:02 +05:30
James Yong d5140ca65d Improved: Move page-specific script links to html template (OFBIZ-11799)
Moved select2 script and link tags to html template when multi-block=true.
select2 language js will be auto added by MultiBlockHtmlTemplateUtil#addLinksToLayoutSettings

Tested on
https://localhost:8443/example/control/FormWidgetExamples

https://localhost:8443/ordermgr/control/FindRequest
2020-08-06 22:39:59 +08:00
Priya Sharma 3fe72d440f Improved: Remove unused imports from Java files (OFBIZ-11930) (#222)
Improved: Remove unused imports from Java files
(OFBIZ-11930)
Thanks: Priya Sharma
2020-08-06 19:51:09 +05:30
Suraj Khurana f4dfa16873 Improved: Updated tasks.checkstyleMain.maxErrors to 12278 ~(-200) 2020-08-06 19:21:49 +05:30
Suraj Khurana 8f02800414 Improved: MethodLength checkstyle rule, earlier it was set as default to 150, as per discussion over ML changed it to 500 and also set countEmpty propety as false.
(OFBIZ-11915)
Thanks: Jacques for your thoughts and suggestions.
2020-08-06 19:18:31 +05:30
Suraj Khurana 5e67582e88 Improved: Updated tasks.checkstyleMain.maxErrors to 12469 (-326) 2020-08-06 19:01:00 +05:30
Suraj Khurana 33f05c1684 Improved: Corrected all redundant modifiers occurences in framework component. Also, fixed some other checkstyle line formatting and spacing issues.
(OFBIZ-11925)
2020-08-06 18:53:13 +05:30
Suraj Khurana dd1af9f358 Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk 2020-08-06 18:47:12 +05:30
Suraj Khurana 6ca9bf3102 Improved: Corrected all redundant modifiers occurences from applications component. Also, fixed some other checkstyle line formatting and spacing issues.
(OFBIZ-11925)
2020-08-06 16:52:22 +05:30
Jacques Le Roux eb6218b628 Fixed: Make all related Cancel/Done buttons return to backHome ie. party profile page (OFBIZ-11943)
Thanks: Priya for the patch
2020-08-06 12:47:21 +02:00
Akash Jain b4fbbc4934 Improved: Convert PartyContactMechTests.xml to Groovy (OFBIZ-11854) 2020-08-04 22:35:58 +05:30
Akash Jain 25fc51f961 Improved: Convert PartyStatusChangeTests.xml to Groovy (OFBIZ-11853) 2020-08-04 22:23:10 +05:30
Akash Jain bc95f057f2 Improved: Convert ProductTest.xml to Groovy (OFBIZ-11852) 2020-08-04 21:52:08 +05:30
Akash Jain 29c2ed5a18 Fixed: View Image button on order view page fails to render the image (OFBIZ-11734)
Thanks, Arpit Mor for reporting.
2020-08-04 15:48:55 +05:30
Akash Jain da0f52d005 Improved: Status ID checkbox for FindEmploymentApps, FindPartyQuals and FindEmplLeaves forms (OFBIZ-11937) 2020-08-04 15:41:53 +05:30
Jacques Le Roux 3ba1d7c7f3 Improved: Purchase Order Email Support (OFBIZ-11864)
This is how I intended to do it. But, since I have a save action to format
edited lines, Eclipse forced an "unwrapping". I had to check in "Line Wrapping":
"Never join already wrapped lines", pfew!
2020-08-03 20:01:05 +02:00
Jacques Le Roux 8b0d137798 Improved: Purchase Order Email Support (OFBIZ-11864)
https://ci.apache.org/builders/ofbizTrunkFrameworkPlugins

There was something I did not understand.
I got the same locally, but I have no history like in BuildBot.

The only file changed in 1587 is a Groovy files and we get more errors than
in  preceding build, ie 1586:
https://ci.apache.org/builders/ofbizTrunkFrameworkPlugins/builds/1587/steps/check/logs/stdio
https://ci.apache.org/builders/ofbizTrunkFrameworkPlugins/builds/1586/steps/check/logs/stdio

The only Java file changed was OrderServices.java in #68d210
Somehow Buildbot found this commit too early, it was in
https://ci.apache.org/builders/ofbizTrunkFrameworkPlugins/builds/1589

Anyway this fixes the formatting
2020-08-03 19:41:11 +02:00
Akash Jain 68d210a7d0 Improved: Purchase Order Email Support (OFBIZ-11864) 2020-08-03 17:29:13 +05:30
Akash Jain dd04252593 Improved: Unit test case for some content services (OFBIZ-8420)
Covered following tickets/services,
OFBIZ-8420 --> createDataCategory
OFBIZ-8421 --> updateDataCategory
OFBIZ-8422 --> removeDataCategory
OFBIZ-8424 --> createDataResourceRole
OFBIZ-8425 --> updateDataResourceRole
OFBIZ-8426 --> removeDataResourceRole

Thanks, Tanmay Muley for reporting the issue.
2020-08-03 16:31:10 +05:30
Akash Jain ea37e0fed3 Improved: Status ID checkbox for FindWorkEffort, FindProductionRun and FindShipment forms (OFBIZ-11939) 2020-08-03 16:22:26 +05:30
Akash Jain 2a9c4ce3f4 Improved: Status ID checkbox for FindPayments and FindPurchaseInvoices forms (OFBIZ-11938) 2020-08-03 16:19:06 +05:30
Akash Jain 001ce6a6c4 Improved: Status ID checkbox for Return, Requirement and Quote forms (OFBIZ-11935) 2020-08-03 16:15:45 +05:30
Akash Jain 019b54aceb Improved: Status ID checkbox for FindDataResource and FindContent forms (OFBIZ-11934) 2020-08-03 16:11:03 +05:30
Akash Jain 3f07bb8103 Improved: Improvements in Find Invoice screen (OFBIZ-9643)
Thanks, Renuka Srishti for reporting the issue.
2020-08-03 15:57:49 +05:30
Jacques Le Roux e8dd3c609c Fixed: Server-Side Template Injection using Static (OFBIZ-11871)
Thanks to Alvaro's explanations, the problem was in MacroFormRenderer where, for
lookups, we retrieve _LAST_VIEW_NAME_ as a parameter without encoding it.

I have added getEncodedParameter method in UtilHttp and removed now useless
(after OFBIZ-11907) getEnvironment from MacroFormRenderer.java

Thanks: Alvaro for advice
2020-08-03 11:04:58 +02:00
Suraj Khurana 45253da2f9 Improved: Updated tasks.checkstyleMain.maxErrors to 12795 ~(-2225) 2020-08-03 10:33:07 +05:30
Suraj Khurana c6399ef668 Improved: Corrected some line is longer than 150 characters checkstyle issues in applications component. Also fixed some extra spaces and naming conventions related checkstyle issues.
(OFBIZ-11921)
2020-08-03 10:14:20 +05:30
Suraj Khurana 7d82b17c72 Improved: Corrected some line is longer than 150 characters checkstyle issues in framework component. Also fixed some extra spaces and naming conventions related checkstyle issues.
(OFBIZ-11921)
2020-08-03 10:11:40 +05:30
Daniel Watford 9f3e52e7ab Improved: WidgetWorker should not write generated html to Appendable (OFBIZ-11907) (#221)
* Improved: WidgetWorker should not write generated html to Appendable

(OFBIZ-11907)

Refactoring of WidgetWorker so that it generates URI and JSoup Element
objects to represent created URLs, hidden forms and anchor tags. This
replaces the previous approach where WidgetWorker would write string
representations of the URLS, hidden forms and anchor tags directly to an
Appendable object passed to it.

Callers to WidgetWorker have been modified to render the new objects
created by WidgetWorker to their relevant I/O.

* Improved: Handle spaces in link targets when building URIs

(OFBIZ-11907)

Corrected handling of spaces in target values passed to WidgetWorker
when bulding URIs. Spaces are URL encoded as %20.
2020-07-31 19:27:52 +02:00
Pawan Verma d962777c77 Improved: Convert testCreateAndUpdateContactList test from XML to Groovy(OFBIZ-11877)
Thanks, Jacques for the review.
2020-07-31 12:07:52 +05:30
Pawan Verma 034e03abf4 Improved: Inconsistent String Comparisons(OFBIZ-9254)
There are some inconsistencies in the code for string comparison statusId.equals(PRUN_COMPLETED) whereas it should be written as PRUN_COMPLETED.equals(statusId) cause the former can throw NullPointerException if the variable found to be NULL.

Thanks: Devanshu for your contribution.
2020-07-30 17:01:54 +05:30
Jacques Le Roux 27c387d35b Improved: changes content of VERSION file added during INFRA-19443 2020-07-29 11:49:51 +02:00
Jacques Le Roux 782cd7da63 Improved: Convert ProductTagTest.xml to Groovy (OFBIZ-11857)
This can be tested using

./gradlew "ofbiz --test component=product --test suitename=producttagtests"

Thanks: Akash Jain for report, Anushi Gupta for the patch
2020-07-28 11:54:48 +02:00
Jacques Le Roux be498295a5 Improved: Update build.gradle to the latest dependencies (OFBIZ-11603)
Fixes some new warnings coming from JUnit 4.13, a step ahead to JUnit 5.

I left 2 complicated ExpectedException  warnings. Change will be needed for JUnit 5.
https://www.luxoft-training.com/news/migrating-from-junit-4-to-junit-5-replacing-rules-with-the-extension-model-part-1/
2020-07-27 16:14:51 +02:00