Commit Graph
27737 Commits
Author SHA1 Message Date
Suraj Khurana b0e3a2109d Improved: Unit test case for service - CheckCreateStockRequirementAtp.
(OFBIZ-8938)
Thanks: Avnindra Sharma for reporting and Anushi Gupta for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867873 13f79535-47bb-0310-9956-ffa450edef68
2019-10-02 07:33:07 +00:00
Jacques Le Roux 6bcc250a7c Improved: Clarify orders list headers at Find Order screen
(OFBIZ-10972)

Labels the drop-down
Second drop-down is not required to perform the action. So it should not be 
displayed if printer data is not available, adds required validation check

Thanks: Sanjay Yadav for report, Mohammed Rehan Khan foe review and patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867784 13f79535-47bb-0310-9956-ffa450edef68
2019-09-30 17:09:57 +00:00
Aditya Sharma 46e9638424 Fixed: redundant license text
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867745 13f79535-47bb-0310-9956-ffa450edef68
2019-09-30 06:41:03 +00:00
Jacques Le Roux ee7547977f Improved: Make Create Menu tab bar for TrackingCode consistent
(OFBIZ-8199)

Add a create TrackingCode tab bar in the main decorator to maintain the 
consistency throughout the tab bar of TrackingCode.

Thanks: Avnindra Sharma for the report and patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867708 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 08:36:03 +00:00
Jacques Le Roux a399e0302b Improved: Make Create Menu tab bar for Marketing Campaign consistent
(OFBIZ-8197)

Add a create Marketing Campaign tab bar in the main decorator to maintain the 
consistency throughout the tab bar of Marketing Campaign.

Thanks: Avnindra Sharma for the report and patch, Devanshu Vyas for testing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867706 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 08:31:34 +00:00
Jacques Le Roux e11391ea4c Improved: Make Create Menu tab bar for Data Source consistent
(OFBIZ-8196)

Add a create Data Source tab bar in the main decorator to maintain the 
consistency throughout the tab bar of Data Source. Also a DataSourceTypeCreate
button in ListDataSourceType screen

Thanks: Avnindra Sharma for the report and patch, Devanshu Vyas for testing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867704 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 08:29:10 +00:00
Jacques Le Roux f91ec0ec90 Improved: Make Create Menu tab bar for Leave consistent
(OFBIZ-8195)

Add a create Leave tab bar in the main decorator to maintain the consistency 
throughout the tab bar of Leave.

Thanks: Avnindra Sharma for the report and patch, Devanshu Vyas for testing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867703 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 08:18:22 +00:00
Jacques Le Roux 0246d5100e Improved: Make Create Menu tab bar for BOM consistent
(OFBIZ-8194)

Adds a create BOM tab bar in the main decorator to maintain the consistency 
throughout the tab bar of BOM.

Thanks: Avnindra Sharma for the report and patch, Pierre Smits for testing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867702 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 08:15:40 +00:00
Jacques Le Roux b59b477899 Improved: Make Create Menu tab bar for Calendar consistent
(OFBIZ-8193)

Adds a create Calendar tab bar in the main decorator to maintain the consistency 
throughout the tab bar of Calendar. Also a button in EditCalendar.ftl

Thanks: Avnindra Sharma for the report and patch, Pierre Smits for testing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867701 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 08:12:37 +00:00
Jacques Le Roux 9e8c2358f1 Improved: Make Create Menu tab bar for RoutingTask consistent
(OFBIZ-8192)

Adds a create RoutingTask tab bar in the main decorator to maintain the 
consistency throughout the tab bar of RoutingTask.

Thanks: Avnindra Sharma for the report and patch, Devanshu Vyas for testing


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867700 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 08:08:26 +00:00
Jacques Le Roux 5819450924 Improved: Make Create Menu tab bar for CompDoc consistent
(OFBIZ-8188)

Adds a create CompDoc tab bar in the main decorator to maintain the consistency 
throughout the tab bar of CompDoc.

Thanks: Avnindra Sharma

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867699 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 08:03:56 +00:00
Jacques Le Roux 9398f6770e Improved: Make Create Menu tab bar for Employee Position consistent
(OFBIZ-8190)

Adds a create Employee Position tab bar in the main decorator to maintain the 
consistency throughout the tab bar of Employee Position.

Thanks: Avnindra Sharma for the report and patch, Devanshu Vyas for testing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867695 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 07:43:16 +00:00
Jacques Le Roux 8147e98a89 Improved: Correct location of New Requirement button on Requirements view
(OFBIZ-7333)

Steps to regenerate the issue:
1. Go to order manager.
2. Go to sub-menu "Requirements"
3. Find Requirements view is having New Requirement button placed at wrong 
position.

Moves the EditRequirement button above RequirementsTabBar

Thanks: Pranay for patch issue analysis

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867694 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 07:35:18 +00:00
Jacques Le Roux 4f95109acd Improved: Make Create Menu tab bar for Facility consistent
(OFBIZ-8181)

Changes CommonCreate label for ProductNewFacility in FacilityActionBar to make
clear it's about creating a facility and nothing else

Thanks: Avnindra Sharma for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867693 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 07:26:15 +00:00
Jacques Le Roux cfed3d3fd4 Improved: Make Create Menu tab bar for Segment consistent
(OFBIZ-8200)

Adds a create Segment tab bar in the main decorator to maintain the consistency 
throughout the tab bar of Segment.

Thanks: Avnindra Sharma for report and patch, Devanshu Vyas for test

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867690 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 07:01:15 +00:00
Jacques Le Roux 579f532228 Improved: Make Create Menu tab bar for Employee consistent
(OFBIZ-8189)

Adds a create Employee tab bar in the main decorator to maintain the consistency 
throughout the tab bar of Employee.

Thanks: Avnindra Sharma for report and patch, Devanshu Vyas for test

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867688 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 06:58:47 +00:00
Pawan Verma 8e95cfccb1 Fixed: Unit test case for service 'createSimpleTextContentForInvoice'
(OFBIZ-8936)

Corrected invoiceContentTypeId for the test.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867673 13f79535-47bb-0310-9956-ffa450edef68
2019-09-28 13:43:10 +00:00
Pawan Verma a21cc536ef Improved: Added Unit test case for following services
(OFBIZ-8936)(OFBIZ-8874)(OFBIZ-8873)(OFBIZ-8872)(OFBIZ-8871)(OFBIZ-8870)(OFBIZ-8866)

- createSimpleTextContentForInvoice
- processWaitReplacementReturn
- processWaitReplacementReservedReturn
- processSubscriptionReturn
- processReplacementReturn
- processReplaceImmediatelyReturn
- processRefundOnlyReturn

Thanks: Deepak Nigam, Avnindra Sharma and Anushi Gupta for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867666 13f79535-47bb-0310-9956-ffa450edef68
2019-09-28 12:08:46 +00:00
Jacques Le Roux c8155d86da Improved: Foreign Key relation is missing for dataSourceId in SalesOpportunity
entity
(OFBIZ-11218)

I see no reason to no have it as it's in all other cases. 

Thanks: reported by Rajesh Mallah, improved with a patch from Devanshu Vyas.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867665 13f79535-47bb-0310-9956-ffa450edef68
2019-09-28 12:08:11 +00:00
Deepak Nigam 82f0df248b Implemented: Serbian CommonEntityLabelsfor geo entity.
(OFBIZ-11209)
Added missing entity label for Serbia.
Thanks: Ulrich Heidfeld for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867663 13f79535-47bb-0310-9956-ffa450edef68
2019-09-28 10:26:09 +00:00
Gil Portenseigne 42c208ee0c Improved: Refactor UelFunctions.java to remove error management via Exception
(OFBIZ-11213)

This refactoring was initiated since using UelFunction::getSize throws 
ClassCastException and log a consequent unneeded stack trace to test 
Object class type. The log is unnecessary, because it is the result of 
each supported class cast trial.

This issue show up that lot of possible NPE were not checked against,
but catched by 'Exception'.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867635 13f79535-47bb-0310-9956-ffa450edef68
2019-09-27 13:52:43 +00:00
Nicolas Malin 39f5dda302 Implemented: Add transaction timeout default properties for screen widget
(OFBIZ-11190)

Currently when you rendering a screen, the transaction timeout would be resolve from the context or use default value (60s)
I reviewed this code part to reorganize timeout resolution on dedicate function (transaction timeout on widget screen is pre-apache)
and introduce possibility to set a default value by properties on 'widget.property' with name 'widget.screen.transaction.defaultTimeout'.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867620 13f79535-47bb-0310-9956-ffa450edef68
2019-09-27 07:21:30 +00:00
Nicolas Malin 9d9d633ce9 Improved: OrderReadHelper.getOrderItemAttributes as non static function
(OFBIZ-11208)
Currenlty if we use the java helper class OrderReadHelper to resolve the orderItemAttributes, it didn't use the a local cache and call each time the delegator throw a static function.
I added a non static function to optimise database calling when you have multiple get to do.

	public String getOrderItemAttribute(String orderItemSeqId, String attributeName) {
	     GenericValue orderItemAttribute = null;
	     if (orderHeader != null) {
		 if (orderItemAttributes == null) {
		     try{
		           orderItemAttributes = EntityQuery.use(orderHeader.getDelegator()) .from("OrderItemAttribute") .where("orderId", getOrderId()) .queryList();
		    } catch (GenericEntityException e) { Debug.logError(e, module); }
		 }
		 orderItemAttribute = EntityUtil.getFirst(
		     EntityUtil.filterByAnd(orderItemAttributes,
		         UtilMisc.toMap("orderItemSeqId", orderItemSeqId, "attrName", attributeName)));
	     }
	     return orderItemAttribute != null ? orderItemAttribute.getString("attrValue"): null;
	 }
 

At the first call, we populate the OrderReadHelper with all orderItemAttributes liked to an order, and after just filter with the orderItemSeqId and the attribute name wanted

Example:
    OrderReadHelper orh = new OrderReadHelper(orderHeader)
    ...
    for (GenericValue orderItem : orh.getOrderItems()) {
                listAttr << 
                       [startValue   : orh.getOrderItemAttribute(orderItem.orderItemSeqId, "MyStartValue"),
                        endValue     : orh.getOrderItemAttribute(orderItem.orderItemSeqId, "MyEndValue")]
    }

We request only for the first passage, after for all other line we use the local OrderReadHelper cache.

Added also the same logical for OrderReadHelper.getOrderAttributes


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867590 13f79535-47bb-0310-9956-ffa450edef68
2019-09-26 16:23:50 +00:00
Jacques Le Roux 086f2e8c8a Fixed: Error in log when looking for parties at partymgr/control/main
(OFBIZ-11201)

These are similar issues in Minilang than the one fixed initially for
<set field="userLoginSize" value="${util:size(logins)}" type="Integer"/>
Fixed by replacing by 
<set field="userLoginSize" value="${groovy:logins.size()}"/>



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867585 13f79535-47bb-0310-9956-ffa450edef68
2019-09-26 15:38:52 +00:00
Nicolas Malin 2132b9e60c Fixed: Default option for ModelFormField.DateFindField doesn't work
(OFBIZ-11212)
When you use a date-find element on form, the defaut option are in code like to greater_than and less _than

        public DateFindField(int fieldSource, String type) {
            super(fieldSource, type);
            this.defaultOptionFrom = greaterThanEqualTo;
            this.defaultOptionThru = lessThanEqualTo;
        }

but on macro

<#macro renderDateFindField ...
      <option value=greaterThan<#if defaultOptionFrom==greaterThan> selected=selected</#if>></option><#rt/>
      ...
      <option value=opLessThan<#if defaultOptionThru==opLessThan> selected=selected</#if>></option><#rt/>
      ...
</#macro>

So the value java isn't correct with ftl values and default value never used.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867582 13f79535-47bb-0310-9956-ffa450edef68
2019-09-26 15:29:11 +00:00
Jacques Le Roux 531793820e Improved: Add a discussion feature in order detail view for following
communication about the order (mail, phone etc.)
(OFBIZ-11210)

This is in order detail view for following communication about the order 
(mail, phone etc.) to keep an eye about all com' event linked to the order.

Thanks: Carl Demus

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867581 13f79535-47bb-0310-9956-ffa450edef68
2019-09-26 15:11:52 +00:00
Jacques Le Roux 400450e238 Fixed: Fix multi modal opening
(OFBIZ-11211)

The issue is that when closing the modal the div inside html dom is not removed. 
Then opening a second time create another identical div. Since a lookup is based 
on an unique id, this id is no more unique...

Thanks: Carl Demus

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867577 13f79535-47bb-0310-9956-ffa450edef68
2019-09-26 14:41:50 +00:00
Mathieu Lirzin 518edddf9c Improved: Refactor ‘ComponentContainer#loadComponentFromConfig’
(OFBIZ-11192)

The unnecessary declared ‘ContainerException’ exception has been removed. A
switch statement has been used and the javadoc has been rewritten.

Additionally the method has been renamed to ‘ComponentContainer#loadComponent’.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867499 13f79535-47bb-0310-9956-ffa450edef68
2019-09-24 22:23:59 +00:00
Nicolas Malin e0d640a375 Fixed: Send upload form with even-update-area doesn't work
(OFBIZ-11207)
When you create a xml form with upload as type, you can't use on-event-update-area element to submit it by ajax.
Otherwise, OFBiz return an error message on 'uploadFile is empty.
To solve it, we analyze the enctype's form before submit it to move on FormData instead a direct serialize [1]

example form where the problem has been present
****
    <form name='AddNicelyFile' type='upload' target='CreateNicelyFile'>
        <field name='uploadedFile' title='File'><file/></field>
        <field name='addButton'><submit/></field>
        <on-event-update-area event-type='submit' area-id='window' area-target='FileDisplaying'/>
    </form>
****

Thanks to Samuel Tregouet for this fix

[1] https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867435 13f79535-47bb-0310-9956-ffa450edef68
2019-09-24 08:51:27 +00:00
Mathieu Lirzin ee95f3bad3 Improved: Use ‘java.nio.file’ API in ‘ComponentContainer’ class
(OFBIZ-11192)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867409 13f79535-47bb-0310-9956-ffa450edef68
2019-09-23 21:37:57 +00:00
Mathieu Lirzin 6f54d35c91 Improved: Convert ‘Config#ofbizHome’ and ‘Config#logDir’ to a path
(OFBIZ-11192)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867399 13f79535-47bb-0310-9956-ffa450edef68
2019-09-23 20:04:43 +00:00
Mathieu Lirzin e3acbf6541 Improved: Refactor ‘ComponentLoaderConfig’ class
(OFBIZ-11192)

This redefines the ‘ComponentLoaderConfig#ComponentDef’ class by
removing its unused name attribute.

The ‘java.nio.file’ API has been used to represent the relative path
of a component location.

Various cleanups and Javadoc added.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867394 13f79535-47bb-0310-9956-ffa450edef68
2019-09-23 19:38:17 +00:00
Jacques Le Roux 6a89860bbc Improved: Move Groovy scripts from /groovyScripts/ to /src/main/groovy/
(OFBIZ-11205)

Moves FetchLogs.groovy as a 1st step

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867344 13f79535-47bb-0310-9956-ffa450edef68
2019-09-22 14:18:23 +00:00
Mathieu Lirzin 1fd1b030d9 Improved: Allow updating the ‘Config’ object of the server instance
(OFBIZ-11203)

When doing some informal tests, it is useful to be able to create
small programs using the OFBiz delegator without requiring every
components to be loaded as done by the ‘Start#main’ static method.

To achieve that with the current singleton based implementation, we
need to instantiate a custom ‘Config’ object and use it as the global
configuration.

Thanks: Samuel Trégouët for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867343 13f79535-47bb-0310-9956-ffa450edef68
2019-09-22 12:56:08 +00:00
Mathieu Lirzin daa1e6160e Reverted: JSON entity data import and export utility
(OFBIZ-10966)

Implementation was not matching OFBiz code quality requirements.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867342 13f79535-47bb-0310-9956-ffa450edef68
2019-09-22 12:29:54 +00:00
Jacques Le Roux a86beec96d Fixed: Error in log when looking for parties at partymgr/control/main
(OFBIZ-11201)

There is this a (long stack trace) error in log (only), mostly

java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Map
at org.apache.ofbiz.base.util.string.UelFunctions.getSize(UelFunctions.java:318)

I did not notice any other effect, so the fix only cleans the log.

It's actually an issue in ListParty grid with this line:
<set field="userLoginSize" value="${util:size(logins)}" type="Integer"/>

This fixes it by replacing by 
<set field="userLoginSize" value="${groovy:logins.size()}"/>



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867099 13f79535-47bb-0310-9956-ffa450edef68
2019-09-18 07:29:18 +00:00
Jacques Le Roux 6a0e0d7922 Documented:
Got this error with Eclipse Asciidoctor editor plugin

>> rendering:-273312131_hidden-editorfile_developer-manual.adoc
asciidoctor: WARNING: C:/projectsASF/ofbiz/framework/minilang/docs/asciidoc/minilang-to-groovy-manual.adoc: line 473: unterminated listing block
asciidoctor: WARNING: C:/projectsASF/ofbiz/framework/minilang/docs/asciidoc/minilang-to-groovy-manual.adoc: line 511: unterminated listing block

This fixes it




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867038 13f79535-47bb-0310-9956-ffa450edef68
2019-09-17 06:32:20 +00:00
Jacques Le Roux a373c8d030 Fixed: Path Traversal in webtools/control/FetchLogs and ViewFile
(OFBIZ-11196)

Fixes a typo which was crashing webtools/control/LogView

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866986 13f79535-47bb-0310-9956-ffa450edef68
2019-09-16 08:20:46 +00:00
Jacques Le Roux 8c3423ab00 Fixed: Fix Default or Empty Catch block in Java and Groovy files
(OFBIZ-8341)

In many Java and Groovy files we have auto generated catch blocks or empty catch 
blocks. 
To avoid such exception swallowing this should be improved to at least log the 
error and also return error in case of service.

Missed this one in last commit

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866985 13f79535-47bb-0310-9956-ffa450edef68
2019-09-16 08:13:19 +00:00
Mathieu Lirzin c17d392d0a Improved: Use spaces instead of tabs in “common.gradle”
Thanks: Samuel Trégouët for your contribution


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866972 13f79535-47bb-0310-9956-ffa450edef68
2019-09-15 15:38:11 +00:00
Mathieu Lirzin 3236e70c20 Improved: Don't exclude properties and labels file from the Jar
(OFBIZ-11161)

In order to have an independent deployable jar, we need to include the
properties and labels inside the jar.

The properties and labels file was previously excluded from the jar
because it was not possible to replace the compile time values by
invalidating OFBiz caches which is convenient when developing
OFBiz. It was then necessary to reconstruct the jar and restart
OFBiz (See OFBIZ-8321 for more details).

With the recent improvment from revision 1865719 allowing to run OFBiz
without building a jar, it is now possible to enable this cache
invalidation by running both ‘gradle run’ in one shell and ‘gradlew
--continuous classes’ in a separate shell.  Doing so make the
combination of editing the label files and clearing the caches use
the new value defined in the source file.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866971 13f79535-47bb-0310-9956-ffa450edef68
2019-09-15 15:28:59 +00:00
Jacques Le Roux cfff42cdc4 Fixed: Fix Default or Empty Catch block in Java and Groovy files
(OFBIZ-8341)

In many Java and Groovy files we have auto generated catch blocks or empty catch 
blocks. 
To avoid such exception swallowing this should be improved to at least log the 
error and also return error in case of service.

Last ones :)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866958 13f79535-47bb-0310-9956-ffa450edef68
2019-09-15 07:48:09 +00:00
Jacques Le Roux 28dfdf5c2e Fixed: Fix Default or Empty Catch block in Java and Groovy files
(OFBIZ-8341)

In many Java and Groovy files we have auto generated catch blocks or empty catch 
blocks. 
To avoid such exception swallowing this should be improved to at least log the 
error and also return error in case of service.

Here we use 3 try-with-ressource blocks and log some errors

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866957 13f79535-47bb-0310-9956-ffa450edef68
2019-09-15 06:32:42 +00:00
Jacques Le Roux 73ebcfb095 Fixed: Fix Default or Empty Catch block in Java and Groovy files
(OFBIZ-8341)

In many Java and Groovy files we have auto generated catch blocks or empty catch 
blocks. 
To avoid such exception swallowing this should be improved to at least log the 
error and also return error in case of service.

Here we use a try-with-ressource block and log some errors

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866952 13f79535-47bb-0310-9956-ffa450edef68
2019-09-14 17:11:59 +00:00
Jacques Le Roux bbd77ef52a Improved: Document how to store the JWT secret key
(OFBIZ-10751)

Adds a link to OWASP documentation

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866936 13f79535-47bb-0310-9956-ffa450edef68
2019-09-14 10:52:54 +00:00
Jacques Le Roux c7759b0927 Improved: Refactor boolean returns from methods
(OFBIZ-10725)

Stumbled upon it by chance, a last one

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866931 13f79535-47bb-0310-9956-ffa450edef68
2019-09-14 09:29:06 +00:00
Jacques Le Roux ea17f3f006 Improved: Refactor boolean returns from methods
(OFBIZ-10725)

Reverts mistakes made in previous commit

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866930 13f79535-47bb-0310-9956-ffa450edef68
2019-09-14 09:25:03 +00:00
Jacques Le Roux 1686f8cb2a Improved: Refactor boolean returns from methods
(OFBIZ-10725)

Stumbled upon it by chance, here are few changes

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866929 13f79535-47bb-0310-9956-ffa450edef68
2019-09-14 09:19:16 +00:00
Jacques Le Roux 41e3889685 Improved: no functional change
In my previous commit I forgot I used FileUtile::normalizePath (old name 
of now normalizeFilePath) in FileUtile::getFile. This is useless, and reverted
here

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866927 13f79535-47bb-0310-9956-ffa450edef68
2019-09-14 08:38:13 +00:00
Jacques Le Roux b08e31dda7 Improved: no functional change
While working on OFBIZ-11196,I renamed the normalizePath() method in FileUtil 
class to createFileWithNormalizedPath() and added the normalizeFilePath()
method which deals only with String (in -> out), could be useful later...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866924 13f79535-47bb-0310-9956-ffa450edef68
2019-09-14 08:29:45 +00:00