Commit Graph
27737 Commits
Author SHA1 Message Date
Deepak Dixit 2e7aacb148 Improved: Remove unnecessary cc and bcc , Applied slightly modified patch from jira issue.
(OFBIZ-9231) 

Thanks Suraj Khurana for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1786116 13f79535-47bb-0310-9956-ffa450edef68
2017-03-09 09:13:22 +00:00
Jacques Le Roux b959e8f50e NO functional change, add a line at EOF to test Buldbot trigger
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1786104 13f79535-47bb-0310-9956-ffa450edef68
2017-03-09 07:37:20 +00:00
Jacques Le Roux 60ebed29f1 Fixed: compareBigDecimals in org.ofbiz.minilang.method.conditional.Compare
does not compare certain values correctly
(OFBIZ-6386)

compareBigDecimals scales down and rounds up meaning you lose information and 
the comparison result is not as expected

Thanks: Gareth Carter for the patch, Mridul Pathak and Jacopo for discussing the
topic in all details (see the Jira issue)

I'm not yet sure but maybe this has revealed some hidden issues in test, see https://ci.apache.org/projects/ofbiz/logs/trunk/html/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1786079 13f79535-47bb-0310-9956-ffa450edef68
2017-03-08 21:27:30 +00:00
Jacques Le Roux 6572f0ceb0 Completed: Missing reference to the delegator in HtmlFormMacroLibrary.ftl
(OFBIZ-9230)

No functional changes, completes r1785882. I missed the other macro types which 
don't implement these macros

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1785925 13f79535-47bb-0310-9956-ffa450edef68
2017-03-08 08:21:49 +00:00
Jacques Le Roux 9b2209ef5d Fixed: Missing reference to the delegator in HtmlFormMacroLibrary.ftl
(OFBIZ-9230)

This has been temporarily fixed with r1784259. After a discussion on dev ML and
a code analysis reported in the Jira issue, I decided to follow Rishi Solanki's 
idea of using the delegatorName.

Since we have no context when executing a macro in the widget form, I decided 
to pass it to the macro. I had though to create an 
EntityUtilProperties.getPropertyValueFromDelegatorName() method to eventually 
pass the delegatorName. Two macros were concerned renderLookupField and 
renderTextField.

Note: while analysing the code I found that EntityExpr.checkRhsType() can face
a related kind of problem. I'll commit an improvement later...

Thanks: Wai for report and discussion and Rishi for pursuing his idea of using 
the delegatorName

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1785882 13f79535-47bb-0310-9956-ffa450edef68
2017-03-07 20:33:09 +00:00
Jacques Le Roux 75d4db8c94 No functional change, just a comment
context is always null here. It misled me , so I prefer to put a comment


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1785865 13f79535-47bb-0310-9956-ffa450edef68
2017-03-07 18:43:39 +00:00
Jacques Le Roux 70fc173a0d No functional changes, code cleaning
While working on OFBIZ-9230 I noticed those needed changes



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1785861 13f79535-47bb-0310-9956-ffa450edef68
2017-03-07 17:11:35 +00:00
Wei Zhang 808f4823bb Lost <#include "component://widget/templates/HtmlFormMacroLibrary.ftl"/> in framework/common/template/HtmlTemplate.ftl
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1785581 13f79535-47bb-0310-9956-ffa450edef68
2017-03-06 00:39:53 +00:00
Jacques Le Roux 687b0dbe54 No functional change, right file name, thanks to Pierre Smits
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1785573 13f79535-47bb-0310-9956-ffa450edef68
2017-03-05 20:37:55 +00:00
Jacques Le Roux 18dfa2e799 No functional change, from Debug.Info to Debug.logError
More to test the Buildbot triggering

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1785485 13f79535-47bb-0310-9956-ffa450edef68
2017-03-04 13:44:30 +00:00
Jacques Le Roux 1abfaae094 No functional change, fixes a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1785478 13f79535-47bb-0310-9956-ffa450edef68
2017-03-04 13:08:50 +00:00
Jacques Le Roux 7235940d8b Documented: Update \tools\demo-backup\README.MD now that we use "Let's encrypt"
on demos
(OFBIZ-9203)

After OFBIZ-7928 we now use "Let's encrypt" on demos.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1785433 13f79535-47bb-0310-9956-ffa450edef68
2017-03-04 07:08:11 +00:00
Jacques Le Roux 5d70f5802b No functional change, sets the right FOP Base URL on demos
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1785055 13f79535-47bb-0310-9956-ffa450edef68
2017-03-01 22:17:36 +00:00
Jacques Le Roux d34001a9d4 Fixed: "Login and logout process in demos shows a certificate issue"
(OFBIZ-9206)

After my conclusions at OFBIZ-9240 I decided to reapply the changes and will 
test on demos.

Because WebSiteProperties reuse the port initially found in the 1st login URL
I tried to replace locally
port.https=8443
by
port.https=
in url.properties (w/o SystemProperty) and did not face any issue but with 
portOffset. This is due to how the WebSiteProperties class works and there is also 
an easy fix: don't add twice the portOffset when it's build from the request, 
and only then. Keep it as is when it's build from a WebSite GenericValue. 
We then trust the user and don't rely on the request.

I also removed the deprecated RequestHandler.getDefaultServerRootUrl()
I think it was time...

Thanks: Pierre Smits for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1784930 13f79535-47bb-0310-9956-ffa450edef68
2017-03-01 13:36:05 +00:00
Jacques Le Roux 1a6d7b307d Reverts revisions 1784558, 1784555, 1784549
No functional change, cleaner code
........
No functional change, fixes a typo
........
Fixed: "Login and logout process in demos shows a certificate issue"
(OFBIZ-9206)

Also fixes "16.11 ofbizUrl include host+port and break some reverse-proxy/docker
 setups"
(OFBIZ-9224)

It was an easy fix, I just imported
<SystemProperty systemPropertyId="port.https" systemResourceId="url" 
systemPropertyValue=""/>
in trunk demo and all work perfectly.

I also tried to replace locally
port.https=8443
by
port.https=
in url.properties (w/o SystemProperty) and did not face any issue but with 
portOffset. This is due to the WebSiteProperties class works and there is also 
an easy fix: don't add twice the portOffset when it's build from the request, 
and only then. Keep it as is when it's build from a WebSite GenericValue. 
We then trust the user and don't rely on the request.

I also removed the deprecated RequestHandler.getDefaultServerRootUrl() 
I think it was time...

Thanks: Pierre Smits and Leonard Lin for reports
........


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1784760 13f79535-47bb-0310-9956-ffa450edef68
2017-02-28 15:36:42 +00:00
Jacques Le Roux 509b92eb55 Fixed: The ecommerce breadcrumb fails when you come from the catalog product
link
(OFBIZ-9234)

To reproduce
# Get to https://demo-stable.ofbiz.apache.org/catalog/control/EditProduct?productId=GZ-1000
# Click on the "Product Page" button

You may notice an error which does appear erratically but most of the time, 
same on trunk demo and locally. 

This happens because sometimes the _BREAD_CRUMB_TRAIL_ session attribute is 
empty or null. "Why not alway?" you might ask. I had no time to investigate but 
I guess because there is no bread crum trail when coming from catalog, and for 
some weird reasons, it's sometimes there.

Anyway my fix is simple, if there is no _BREAD_CRUMB_TRAIL_  in session 
I bypass the bread crum block in BreadCrumbs.ftl. It's not perfect but look far 
better



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1784708 13f79535-47bb-0310-9956-ffa450edef68
2017-02-28 10:02:25 +00:00
Jacques Le Roux 81f7694e6b No functional change, cleaner code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1784558 13f79535-47bb-0310-9956-ffa450edef68
2017-02-27 13:14:39 +00:00
Jacques Le Roux 761a9e8069 No functional change, fixes a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1784555 13f79535-47bb-0310-9956-ffa450edef68
2017-02-27 12:48:39 +00:00
Jacques Le Roux 31080df097 Fixed: "Login and logout process in demos shows a certificate issue"
(OFBIZ-9206)

Also fixes "16.11 ofbizUrl include host+port and break some reverse-proxy/docker
 setups"
(OFBIZ-9224)

It was an easy fix, I just imported
<SystemProperty systemPropertyId="port.https" systemResourceId="url" 
systemPropertyValue=""/>
in trunk demo and all work perfectly.

I also tried to replace locally
port.https=8443
by
port.https=
in url.properties (w/o SystemProperty) and did not face any issue but with 
portOffset. This is due to the WebSiteProperties class works and there is also 
an easy fix: don't add twice the portOffset when it's build from the request, 
and only then. Keep it as is when it's build from a WebSite GenericValue. 
We then trust the user and don't rely on the request.

I also removed the deprecated RequestHandler.getDefaultServerRootUrl() 
I think it was time...

Thanks: Pierre Smits and Leonard Lin for reports

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1784549 13f79535-47bb-0310-9956-ffa450edef68
2017-02-27 12:33:42 +00:00
Jacques Le Roux 97a98e7d4c No functional change, related with "Missing reference to the delegator in
framework/widget/templates/HtmlFormMacroLibrary.ftl"
(OFBIZ-9230)

To reproduce

1. Load test data <SystemProperty systemResourceId="widget" 
systemPropertyId="widget.autocompleter.defaultMinLength" 
systemPropertyValue="3"/> 
2. Open https://localhost:8443/partymgr/control/main
3. You will still get warning below in log file


|EntityUtilProperties          |I| Could not get a system property for 
widget.autocompleter.defaultMinLength : null


jleroux: the reason is in the context of a FTL macro we lose the delegator 
(in context) when calling  
executeMacro(writer, sr.toString()); 
from 
MacroFormRenderer.renderTextField()
So we need to find a way to pass the delegator to be used when evaluating 
the Freemarker template. For now I have simply added a clearer explanation 
of the reason.

Thanks: Wei Zhang for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1784259 13f79535-47bb-0310-9956-ffa450edef68
2017-02-24 10:52:09 +00:00
Jacques Le Roux 4ba7d19982 No functional change, uses asmselect in findparty screen (LookupParty)
It was the last missing place, I did not notice last time. If I had enough time
I'd make that internal and not a ugly hack :/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1784254 13f79535-47bb-0310-9956-ffa450edef68
2017-02-24 10:26:03 +00:00
Jacques Le Roux e99b90b591 No functional change, removes trailing blanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1784253 13f79535-47bb-0310-9956-ffa450edef68
2017-02-24 10:23:45 +00:00
Jacques Le Roux 8f71170c4d No functional change, right indentation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1784100 13f79535-47bb-0310-9956-ffa450edef68
2017-02-23 09:38:11 +00:00
Taher A. Alkhateeb 5c7f27986d Improved: removed deprecated left shift from plugin template in build.gradle
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1783854 13f79535-47bb-0310-9956-ffa450edef68
2017-02-21 09:42:18 +00:00
Taher A. Alkhateeb bdfb9bda39 Disable the gradle daemon on embedded plugin tasks
(OFBIZ-9182)

In prepartion to update our buildbot scripts, we disable the daemon from
running in the plugin API calls. This substantially improves memory consumption.
The change applies to both installPlugin function as well as the
ofbizBackground task design


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1783852 13f79535-47bb-0310-9956-ffa450edef68
2017-02-21 09:21:01 +00:00
Nicolas Malin 5be9a2f2ad Improved: Improve FindGeneric entity screen with xml form (OFBIZ-9217)
Replace the current groovy and ftl form rendering by a dynamic call to screen xml with build the xml form by analyse the entity
The find operation is now realize by the perfomFind service

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1783427 13f79535-47bb-0310-9956-ffa450edef68
2017-02-17 17:00:31 +00:00
Jacopo Cappellato 9537673e5b Fixed: straight line fixed asset depreciation method was not computing properly
depreciation transactions for assets that are used after their expected end of 
life.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1783388 13f79535-47bb-0310-9956-ffa450edef68
2017-02-17 12:45:31 +00:00
Jacques Le Roux 92d57c6723 No functional change, forgot to include this removing in r1783204
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1783355 13f79535-47bb-0310-9956-ffa450edef68
2017-02-17 09:14:27 +00:00
Jacques Le Roux a83259ebce No functional change, updates files with new svn url
Removes useless cleanBuild.bat

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1783204 13f79535-47bb-0310-9956-ffa450edef68
2017-02-16 13:39:13 +00:00
Jacques Le Roux 1ac56553bd Fixed: report GL Account Trial Balance
(OFBIZ-9216)


Go to Accouting --> Organization GL Settings -->Accounting button – >> 
reports --> GL Account Trial Balance
this report the give me an error 

Thanks: Moatasim Al Masri for report, Pierre Smits for patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1783202 13f79535-47bb-0310-9956-ffa450edef68
2017-02-16 13:32:00 +00:00
Jacques Le Roux ccf56a62a6 No functional change, updates Gradle wiki page
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1783156 13f79535-47bb-0310-9956-ffa450edef68
2017-02-15 22:23:50 +00:00
Jacques Le Roux 49df69cdd6 No functional change, remove unused and failing EntityClassLoader
Relates with OFBIZ-6210

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782943 13f79535-47bb-0310-9956-ffa450edef68
2017-02-14 09:57:00 +00:00
Jacques Le Roux 1e8e01e2bb No functional change, French and English grammar collided in my mind
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782811 13f79535-47bb-0310-9956-ffa450edef68
2017-02-13 16:45:41 +00:00
Jacques Le Roux ead5fac7ce No functional change, fixes a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782810 13f79535-47bb-0310-9956-ffa450edef68
2017-02-13 16:45:01 +00:00
Jacques Le Roux 43342377af No functional change, small change in main README.md for OWASP dependencyCheck
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782799 13f79535-47bb-0310-9956-ffa450edef68
2017-02-13 16:14:42 +00:00
Deepak Dixit 4149bbddbb Fixed: Remove duplicate service entry for deleteWorkEffortInventoryProduced.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782662 13f79535-47bb-0310-9956-ffa450edef68
2017-02-12 11:57:31 +00:00
Deepak Dixit 112a083c17 Fixed: Remove sales order item fact related services from order component. As SalesOrderItemFact entity define in bi component so these services should reside in bi component (OFBIZ-9213)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782660 13f79535-47bb-0310-9956-ffa450edef68
2017-02-12 11:50:17 +00:00
Deepak Dixit c91f4d96ca Fixed: Corrected svn url for pullPluginSource task (OFBIZ-9182)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782659 13f79535-47bb-0310-9956-ffa450edef68
2017-02-12 11:47:23 +00:00
Deepak Dixit dd33f049ef Fixed: Found console warning related to attribute 'entity-alias' must appear on element 'condition-expr'
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782658 13f79535-47bb-0310-9956-ffa450edef68
2017-02-12 11:36:05 +00:00
Deepak Dixit 96af207561 Added missing plugins directory in ofbiz-framework.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782657 13f79535-47bb-0310-9956-ffa450edef68
2017-02-12 11:24:15 +00:00
Deepak Dixit ac5e322c0a Improved: Moves plugins and creates the new structure (OFBIZ-9182)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782652 13f79535-47bb-0310-9956-ffa450edef68
2017-02-12 10:34:19 +00:00
Deepak Dixit 4b47998171 Improved: Moves plugins and creates the new structure (OFBIZ-9182)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1782651 13f79535-47bb-0310-9956-ffa450edef68
2017-02-12 10:32:53 +00:00
Taher A. Alkhateeb 9383236995 Implemented: new gradle task pullPluginSource using a subversion gradle plugin
(OFBIZ-9182)

Added a new gradle task called pullPluginSource that fetches a plugin from
the (yet to be created) plugins repository. Also updated the README.md file
to reflect the changes that happened recently on the plugin management tasks

This is the last commit required before restructuring the subversion repository
as per the discussion thread mentioned in the above JIRA


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1782605 13f79535-47bb-0310-9956-ffa450edef68
2017-02-11 13:36:40 +00:00
Jacques Le Roux 9f22d5ddd0 No functional change, updates and removes some now useless files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1782604 13f79535-47bb-0310-9956-ffa450edef68
2017-02-11 13:23:20 +00:00
Jacques Le Roux e50979c2fb No functional change, last update with less Vulnerable Dependencies
Only higher will be considered, not done yet...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1782603 13f79535-47bb-0310-9956-ffa450edef68
2017-02-11 13:19:06 +00:00
Jacques Le Roux 82b7865d18 Implemented: Load demo data shows error loading xml files
Fixed:
(OFBIZ-9211)

"gradlew cleanAll loadDefault" generates a data loading error

It's logically due to the removing of plugins/component-load.xml in OFBIZ-9182
A temporary solution is to put it in again. 
A definitive solution is to remove data dependencies. 
We have also this problem with ecommerce data which create dependencies 
from applications

jleroux: I don't close this issue yet because we need to work together on this.
I simply remove the regression by putting back plugins/component-load.xml

Thanks: Wai for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1782577 13f79535-47bb-0310-9956-ffa450edef68
2017-02-11 10:16:02 +00:00
Jacques Le Roux ba2b13754e Improved: refactor list related forms in Agreeement widgets
(OFBIZ-9186)

Refactoring various list forms into grids
Refactoring various list form references in screens

Thanks: Pierre Smits

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1782562 13f79535-47bb-0310-9956-ffa450edef68
2017-02-11 09:25:52 +00:00
Jacques Le Roux f0b3ba7634 Fixed: Reinstate url cache in UtilURL.fromResource
(OFBIZ-9208)

Adrian created the following commit to cache URL objects 


Revision: 1649979
Author: adrianc
Date: 07 January 2015 00:24:28
Message:
Some optimizations for URL lookups.
----
Modified : /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java
Modified : /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilURL.java

and was later reverted in this commit

Revision: 1650347
Author: adrianc
Date: 08 January 2015 17:53:59
Message:
Some small fixups for some of my previous commits.
----
Modified : /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityClassLoader.java
Modified : /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilURL.java

We have found in one of our production servers that line 98 in UtilURL.java

url = loader.getResource(resourceName);

has caused locking and looking at the stack trace (from jstack). There are 
numerous threads waiting on locks from within this method

I propose the cache gets added back (we have done this as a patch on our systems
 with no ill effect)

FYI - The commits are in reference to the EntityClassLoader which is not used 
and does not work see OFBIZ-6210

Thanks: Gareth Carter for report and suggestion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1782520 13f79535-47bb-0310-9956-ffa450edef68
2017-02-10 20:38:46 +00:00
Jacques Le Roux b9f2477708 Fixed: SimpleMethod: FindByAnd never using EntityListIterator
(OFBIZ-9152)

Since the introduction of EntityQuery there was no distinction between a simple 
method tags 
<find-by-and use-iterator="true"> and <find-by-and use-iterator="false"> 
(except cache handling).
There is a condition "if (useIterator)" but with entityQueries did use 
"[...].queryList()".

Thanks: Mirko Vogelsmeier

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1782498 13f79535-47bb-0310-9956-ffa450edef68
2017-02-10 18:46:04 +00:00
Nicolas Malin e4de84b4b0 Fixed: Birt logging unlogical high (OFBIZ-9201)
Currently the class BirtContainer call the birt engine with hard coded log level ALL that generated huge log file.
We can't implement easily log4j on the birt engine so with this commit I create a quick fix to have matching between the java.util.Logger and org.apache.log4j.Logger level.
You can select the log level from debug.properties to populate the ReportEngine log file.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1782070 13f79535-47bb-0310-9956-ffa450edef68
2017-02-07 19:56:04 +00:00