Commit Graph
27737 Commits
Author SHA1 Message Date
Aditya Sharma 3a2a9df44b Fixed: paginateOrderList does not find orders on next page specific to FindOrders.ftl
(OFBIZ-11356)
Adding the missing showAll flag in the paginateOrder form because of which the orders were not shown while submitting the next button.
Thanks Michael Brohl for reporting the issue and Ankit Joshi for providing the patch
2020-05-23 16:18:28 +05:30
Suraj Khurana 2ac82b46c9 Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk 2020-05-23 15:57:48 +05:30
Suraj Khurana 9e194b0e9a Improved: Converted createPaymentAndApplicationForParty service from mini-lang to groovy
(OFBIZ-11491)
Thanks Devanshu Vyas for reporting and Sourabh Punyani for providing the patch.
2020-05-23 15:57:21 +05:30
Suraj Khurana 8bdb6c9985 Improved: Make shipment services loosely coupled with work-effort generation. (#132)
* Improved: Make shipment services loosely coupled with work-effort generation.
(OFBIZ-11678)
Removed workeffort generation related code in separate service, in createShipment and updateShipment service. In this effort, createShipment has been successfully changed to entity-auto as well.
Thanks: Pierre Smits and Arun Patidar for discussion and review.
2020-05-23 15:26:26 +05:30
Suraj Khurana 21a8bfaef7 Improved: Converted massChangePaymentStatus service from mini-lang to groovy.
(OFBIZ-11498)
Thanks Devanshu Vyas for reporting and Rushikesh Mawal for initial patch.
2020-05-23 15:23:13 +05:30
Suraj Khurana c21683e30b Improved: Converted createPaymentContent, updatePaymentContent services from mini-lang to groovy. (#155)
(OFBIZ-11501)(OFBIZ-11502)
Thanks Devanshu Vyas for reporting and Sourabh Punyani for providing the patch.
2020-05-23 12:38:07 +05:30
James Yong 767390ad89 Improved: Apply multi-block attr to each application (OFBIZ-11706)
1. Bug Fix
2. Disable multi-block until function is stabilized.
2020-05-23 14:08:35 +08:00
Suraj Khurana 86b0a4e592 Improved: Refactor simple methods names as per naming convention best practices. (#137)
(OFBIZ-11700)
2020-05-23 10:33:46 +05:30
Suraj Khurana 89016fa71e Improved: Converted getPaymentRunningTotal service from mini-lang to groovy DSL
(OFBIZ-11488)
Thanks Nitish Mishra for the patch and Devanshu Vyas for reporting and review.
2020-05-23 10:27:50 +05:30
holivier 205914a1be Improved: just remove trailing space 2020-05-22 11:47:55 +02:00
James Yong e675f0a79f Improved: Apply multi-block attr to each application (OFBIZ-11706)
1. Fix missing Boundary Comment at beginning
2. Apply multi-block attr
2020-05-22 00:54:20 +08:00
James Yong e46c7b9724 Fixed: showjGrowl called twice (OFBIZ-11720)
showjGrowl function is called twice,
even when there is no message to show.
2020-05-21 21:38:08 +08:00
James Yong ac541342ae Improved: Apply multi-block attr to each application (OFBIZ-11706)
Revert regression for showHelp.
2020-05-21 00:07:36 +08:00
Jacques Le Roux 32a71c9af4 Improved: Clean how HTTP vs HTTPS is handled
(OFBIZ-11717)

No functional changes, just better comments
2020-05-20 13:01:36 +02:00
Pawan Verma bc0afa36ee Fixed: Entering manually date in date-time field become unworkable
(OFBIZ-10432)

Thanks, Olivier for the report.
2020-05-20 14:26:52 +05:30
Nicolas Malin b134c6b72f Improved: Convert ProductionRunServices.xml file from mini-lang to groovy DSL
(OFBIZ-11395)

Thanks to Yashwant Dhakad for this patch
2020-05-19 17:09:34 +02:00
Jacques Le Roux 4bdfb54ffb Fixed: Apache OFBiz unsafe deserialization of XMLRPC arguments (CVE-2020-9496)
(OFBIZ-11716)

Because the 2 xmlrpc related requets in webtools (xmlrpc and ping) are not using
authentication they are vulnerable to unsafe deserialization.

thanks: Alvaro Munoz <pwntester@github.com> from the GitHub Security Lab team
2020-05-19 15:58:06 +02:00
Pawan Verma 3b7e63744c Improved: Expansion of form widget field disabled atrribute with xsd improvement (#141)
(OFBIZ-10432)

1. Added disabled attribute support in ModelFormField with xs:boolean type
2. Removed specific field level disabled attribute support for CheckField and TextField
3. Modified existing usage of disabled attribute as per new implementation.

Thanks: Rishi for the report and Taher, Gil and Jacques for the feedback
2020-05-19 17:37:24 +05:30
Pawan Verma ba463ab9bc Fixed: Issue with redirect queryParameters when the user is logged out
(OFBIZ-11714)

In OFBIZ-10539, We missed removing the line which was adding parameters into the map as Ritesh suggested a good way to handle parameters. I've removed that redundant line of code and attaching a patch for the same.
2020-05-19 17:21:11 +05:30
Jacques Le Roux 5e1a23de1c Improved: fixes checkstyle issue 2020-05-18 22:54:32 +02:00
Jacques Le Roux d640a711d1 Improved: Prevent FreeMarker Template Injection (SSTI)
(OFBIZ-11709)

Better style with line not too long
2020-05-18 22:52:30 +02:00
Jacques Le Roux 09baa5537e Improved: Prevent FreeMarker Template Injection (SSTI)
(OFBIZ-11709)

Previous code compiled but SAFER_RESOLVER is not a class but a field, better KISS
2020-05-18 14:39:25 +02:00
James Yong f443ace724 Improved: Apply multi-block attr to each application (OFBIZ-11706)
Revert multi-block attr on RemoveInternalOrg.ftl, to fix
regression for HR tree.
There is no inline script causing CSP issue in the 1st place.

Thanks: Olivier for reporting
2020-05-18 20:26:39 +08:00
Jacques Le Roux 11905d82f5 Improved: Convert deactivateAllContentRoles service from mini-lang to groovy DSL
(OFBIZ-11366)

jleroux: I had to slightly rewrite the patch, mostly the Groovy part (see
comment in Jira)

Thanks: Devanshu Vyas for the initial patch
2020-05-18 13:25:35 +02:00
Jacques Le Roux a6e8b05135 Improved: Prevent FreeMarker Template Injection (SSTI)
(OFBIZ-11709)

Some people may want to use another TemplateClassResolver than SAFER_RESOLVER
This creates a new templateClassResolver security property and uses it in
FreeMarkerWorker::makeConfiguration by default
2020-05-18 12:06:28 +02:00
James Yong e3e12ee487 Improved: No need to specify externalKeyParam in ofbizUrl calls (OFBIZ-11711)
Let ofbizUrl macro generates externalLoginKey when needed.

Thanks: Jacques for review
2020-05-17 20:37:48 +08:00
Priya SharmaandPriya Sharma 6495dc7a91 Improved: Convert createArticleContent service from mini-lang to groovy (#140)
Deleted the old mini-lang service file
Updated the service definitions with the new groovy methods
Added the groovy implementation (with minor enhancement)

(OFBIZ-11383)

Co-authored-by: Priya Sharma <priya.sharma@example.com>
2020-05-17 10:54:16 +02:00
Pierre Smits 6e4fd2968a Improved: descriptions of temporal expression records (OFBIZ-11584) (#64)
* Improved: descriptions of temporal expression records

(OFBIZ-11584)

* Improved: descriptions of temporal expression records

(OFBIZ-11584)
2020-05-17 10:28:15 +02:00
Jacques Le Roux e46c29962b Fixed: Prevent FreeMarker Template Injection (SSTI)
(OFBIZ-11709)

Since Freemarker 2.3.17 a known solution to these issues is to register a
TemplateClassResolver in Freemarker configuration in order to limit which
TemplateModels can be instantiated in the templates. The predefined resolver
SAFER_RESOLVER doesn't allow to instantiate the Execute class[4].

So the solution is to add the line
    newConfig.setNewBuiltinClassResolver(TemplateClassResolver.SAFER_RESOLVER);
in FreeMarkerWorker.java
2020-05-16 20:51:12 +02:00
James Yong b5729d77fb Improved: Apply multi-block attr to each application (OFBIZ-11706)
Fix regression
2020-05-16 19:38:01 +08:00
Jacques Le Roux ccabbd8e4e Fixed: Have a service that runs periodically to generate CustomTimePeriod records
(OFBIZ-10905)

Fixes the loading sequence of CommonScheduledServicesDemoData.xml now
ScheduledServicesDemoData.xml in service component
2020-05-16 13:25:17 +02:00
James Yong 47e6b9cad6 Improved: Apply multi-block attr to each application (OFBIZ-11706)
Fix regresssion
2020-05-16 17:51:34 +08:00
Suraj Khurana 9913e566cc Improved: Called service directly instead of simple methoda call as service has been changed to entity-auto. (#142)
(OFBIZ-11616)
Also, updated time sheet related test data as timesheet status should be appropriate before updating or deleting.
2020-05-16 14:52:12 +05:30
Pierre Smits 50857f1505 Implemented: Have a service to periodically create PeriodRecords (OFBIZ-10905) (#133)
* Implemented: Have a service that runs periodically to create CustomTimePeriod records

(OFBIZ-10905)

added: service createFuturePeriod
added: function createFuturePeriod called by createFuturePeriod
added: SystemProperty records called by createFuturePeriod function
added: JobSandbox record to schedule createFuturePeriod service
added: ref to CommonScheduledServicesDemoData.xml in component.xml

* Implemented: Have a service that runs periodically to create CustomTimePeriod records

(OFBIZ-10905)

improved: description

* Implemented: Have a service that runs periodically to create CustomTimePeriod records

(OFBIZ-10905)

improved: groovy code aligning to code formats
2020-05-16 11:03:13 +02:00
Suraj Khurana c7ae78d551 Improved: Converted all Timesheet related CRUD services from simple to entity-auto (#88)
* Improved: Converted all Timesheet related CRUD entities from simple to entity-auto
(OFBIZ-11616)
2020-05-16 13:46:12 +05:30
Suraj Khurana c150980271 Improved: Converted some simple services services from simple to entity-auto. (#136)
(OFBIZ-11698)
Converted services: deleteOrderAdjustment, removeShoppingList and removed simple method for already converted deleteFinAccount.
2020-05-16 10:19:53 +05:30
Suraj Khurana 1a45f2ff71 Improved: Converted WorkEffort related services from simple to entity-auto. (#135)
(OFBIZ-11690)
2020-05-16 10:17:32 +05:30
Pawan Verma 13ab014afb Improved: Convert AutoAcctgFixedAssetTests from XML to Groovy
(OFBIZ-11520)(OFBIZ-11519)(OFBIZ-11517)

Thanks: Rohit for the report and patch and Suraj for the review.
2020-05-15 22:52:19 +05:30
James Yong 591b0442c7 Improved: Apply multi-block attr to each application (OFBIZ-11706)
For Webtools, Themes.
2020-05-15 21:25:12 +08:00
James Yong a9843ccba1 Improved: Apply multi-block attr to each application (OFBIZ-11706)
For Product application.
2020-05-15 21:01:04 +08:00
Sebastian Berg 95f0eda361 Improved: Convert LeadServices.xml mini lang to groovy
(OFBIZ-11572)
2020-05-15 14:41:54 +02:00
Wiebke Pätzold 8af7cf8775 Improved: Converted AccountServices from mini lang to groovy
(OFBIZ-11413)

Added ServiceDefs createPartyContactMechs and createPartyGroupRoleAndContactMechs.
Also converted createPartyGroupRoleAndContactMechs because it is used in AccountServies and needed more return values.
2020-05-15 14:41:54 +02:00
James Yong b17fd2419a Improved: Apply multi-block attr to each application (OFBIZ-11706)
For Order application.
2020-05-15 19:24:20 +08:00
James Yong 2c62637752 Improved: Apply multi-block attr to each application (OFBIZ-11706)
For Accounting, Content, HR, Manufacturing.
2020-05-15 17:43:38 +08:00
James Yong d94beee1b6 Improved: Apply multi-block attr to each application (OFBIZ-11706)
For Party application.
Also fixed bug where external script tag is incorrectly handled
when extracting internal script tag from freemarker template.
2020-05-15 15:43:31 +08:00
Suraj Khurana 44c374a644 Removed: Deprecated entity captureBillingAccountPayments since release 17.12. (#131)
(OFBIZ-11435)
Also, added deprecated since tag in some old entities and fields. This is done as per current policy to deprecate entities/services.
Thanks Pierre for reporting and Jacques for review.
2020-05-15 12:07:35 +05:30
James Yong 60c78d24be Improved: <script-template> widget tag (OFBIZ-11686)
Removed script-template tag.
Use multi-block=true on html-template tag instead.
2020-05-15 11:16:15 +08:00
Jacques Le Roux 8f2ce4bc95 Documented: Create a simple INSTALL file with minimum installation information and redirection to more documentation
(OFBIZ-11691)

Following https://markmail.org/message/xi2bcvnmpdfvfgk2 discussion on dev ML
here is the file I suggest. If we are OK we can backport it to the supported
release branches. Of course I'm open to modifications...

Thanks for their answers: Deepak Nigam, Michael Brohl, Pierre Smits and
Taher Alkhateeb
2020-05-14 17:38:28 +02:00
Jacques Le Roux fb447e7b62 Fixed: Unable to navigate to 'Recently approved' screen under image management
(OFBIZ-11403)

It works on stable demo which uses 2.4.13 instead of 2.5.11 for trunk.

I guess it's because since Groovy 2.5 DateTimeFormatter, introduced with Java 8,
is used underneath.

This fixes and improves it regarding localisation. Because it's easier with
DateTimeFormatter and LocalDateTime to handle localisation
2020-05-14 13:35:49 +02:00
holivier 4f5e6f9f06 Improved: <script-template> widget tag
(OFBIZ-11686)

Correction in javadoc, <script is not authorize in javadoc because it
can introduce some javascript in javadoc, and so generate an error in
javadoc build.
Replace <script-template/> by "script-template"
2020-05-14 09:38:23 +02:00