Commit Graph
25411 Commits
Author SHA1 Message Date
Jacques Le Roux eaffb3d0f8 Fixed: setLocaleFromBrowser requires authentification
(OFBIZ-10460)

The setLocaleFromBrowser request map defined in common-controller.xml has an 
attribute of auth=false
While the service associated with it in framework/common/servicedef/services.xml 
has an attribute of auth=true.

jleroux: this was missing in the initial patch. At OFBIZ-9264 the description is
    "it sets the time zone of the user logged in to it's browser time zone."
So being logged in seems needed, hence better to set auth=true everywhere

Thanks: Mathieu Lirzin for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835586 13f79535-47bb-0310-9956-ffa450edef68
2018-07-10 17:31:50 +00:00
Jacques Le Roux 9d64d084d0 Improved: setLocaleFromBrowser should only called once by session
(OFBIZ-10471)

As Deepak mentioned in r1816537, currenlty setLocaleFromBrowser is called each 
time a page is refreshed.
We can use sessionStorage to have it called only once by session

Thanks: Deepak for reporting an issue which was boring me for long :)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835585 13f79535-47bb-0310-9956-ffa450edef68
2018-07-10 17:27:12 +00:00
Jacques Le Roux dbab78e671 Improved: no functional change, removes unneeded log info (missed it previously)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835383 13f79535-47bb-0310-9956-ffa450edef68
2018-07-09 08:25:48 +00:00
Jacques Le Roux 04d398d97b Improved: no functional change, removes unneeded log info
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835382 13f79535-47bb-0310-9956-ffa450edef68
2018-07-09 08:24:19 +00:00
Jacques Le Roux e20b34bc24 Implemented: Add a mechanism to prevent the usage of EntitySyncRemove
(OFBIZ-10008)

No configurations is available to disable usage of EntitySyncRemove. 
And it's creating problems when having a large database and frequent delete 
operations.

saveEntitySyncRemoveInfo is used to create EntitySyncRemove records in 
GenericDelegator.removeValue() and removeByPrimaryKey().

This adds a mechanism to prevent the usage of EntitySyncRemove by adding a 
property in general.properties file used to configure in entityengine.xml 






git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835296 13f79535-47bb-0310-9956-ffa450edef68
2018-07-07 07:46:04 +00:00
Jacques Le Roux 71b5e6eb14 Improved: Convert CategoryServices.xml mini lang to groovy
(OFBIZ-10031)

Fixes an issue with previous patch.

The problem was, that the value newEntity was made with the parameters map, 
which resulted in a value, which didn't had the sequenced id, that I tried to 
fix.

But after removing the map, everything works just fine

Thanks: Dennis Balkir

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835295 13f79535-47bb-0310-9956-ffa450edef68
2018-07-07 07:15:12 +00:00
Gil Portenseigne f428a7e803 Fixed: GetLocaleList call can provide duplicate results
(OFBIZ-10458)

A new Junit test is implemented to validate that no duplicates are present.
Groovy service has been refactored to use a more functional style

Thanks Mathieu Lirzin for reporting and providing the patch


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835282 13f79535-47bb-0310-9956-ffa450edef68
2018-07-06 21:10:07 +00:00
Deepak Dixit fcdfc47d0a Fixed: Framework webapp freemarkerTransform.properties has dependency on proudct component
(OFBIZ-10463)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835235 13f79535-47bb-0310-9956-ffa450edef68
2018-07-06 11:46:52 +00:00
Shi Jinghai 65905bd8d3 Reverted: Add method attribute to request-map to controll a uri can be called GET or POST only
OFBIZ-10438

Forgot to revert site-conf.xsd.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835043 13f79535-47bb-0310-9956-ffa450edef68
2018-07-04 05:32:10 +00:00
Suraj Khurana 920050d685 Reverted: Empty header row should not render if list to render in file is empty because after this, search Result tables won't show first search result.
{OFBIZ-10438}

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835042 13f79535-47bb-0310-9956-ffa450edef68
2018-07-04 05:24:41 +00:00
Nicolas Malin 55c64af90d Improved: Resolve shipping address from Invoice
(OFBIZ-10249)
In some country (like european) you need to indicate on your sales invoice where you ship the finish good product related.
To help this case, I added a new worker function (InvoiceWorker.getShippingAddress) to found information from an invoice and improve the generic EditInvoice.groovy and the invoice ftl template to display it as example.
To homogenize postal address displaying with order I use the subscreen PartyScreens.xml#postalAddressPdfFormatter on the invoice ftl template

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835028 13f79535-47bb-0310-9956-ffa450edef68
2018-07-03 21:58:32 +00:00
Shi Jinghai 17d9904b83 Reverted: Add method attribute to request-map to controll a uri can be called GET or POST only
OFBIZ-10438


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834917 13f79535-47bb-0310-9956-ffa450edef68
2018-07-03 06:21:02 +00:00
Aditya Sharma fcc31d5ba6 Fixed: <#if containerId?has_content> id=''</#if> is missed in renderFormOpen
(OFBIZ-10437)

With r1832307, the code that adds the id attribute to form was missing and the attribute autocomplete was repeated twice. 

Thanks: Wei and Jacques for discovering the issue.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834816 13f79535-47bb-0310-9956-ffa450edef68
2018-07-02 05:28:22 +00:00
Sharan Foga cf4401706a Updated: Added content to the HR Guide hr-training section. Thanks Benjamin Jugl for the initial work
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834796 13f79535-47bb-0310-9956-ffa450edef68
2018-07-01 16:15:25 +00:00
Jacques Le Roux fbe01909a8 Fixed: Put back the com.lowagie:itext license from 4.2.0 to 2.1.7
(OFBIZ-10455)

At r1812161 for OFBIZ-9674 we updated com.lowagie:itext license from 2.1.7 to 
4.2.0. Scott mentionned at https://s.apache.org/ixHW:

<<I just noticed that the iText maven bundle is a bit tricksy and includes iText
 5.6.6 as a dependency, with the latter being GPL licensed.>>

Actually Scott meant itextpdf (was clear in his message), and it turned out that 
not only itextpdf was a problem but the 4.2.0 version in its entirety as 
discovered in the thread.

The solution is to get back to the 2.1.7 version which is still MPL licensed.

Thanks: Scott for discovering the issue and others for the discussion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834736 13f79535-47bb-0310-9956-ffa450edef68
2018-06-30 14:00:16 +00:00
Jacques Le Roux 39582de221 Improved: Factorize code logic from ‘ConfigXMLReader’
(OFBIZ-10453)

There is a lot of repetitive code in ConfigXMLReader. 
Using a functional interface as a parameter of a generic algorithm avoids those
repetitions.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834662 13f79535-47bb-0310-9956-ffa450edef68
2018-06-29 10:03:22 +00:00
Shi Jinghai b6a53caa21 Implemented: Add method attribute to request-map to controll a uri can be called GET or POST only
OFBIZ-10438

Add apache license to MethodNotAllowedException.java.

Thanks: Mathieu Lirzin for the contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834570 13f79535-47bb-0310-9956-ffa450edef68
2018-06-28 03:00:23 +00:00
Shi Jinghai 4abebaea5a Implemented: Add method attribute to request-map to controll a uri can be called GET or POST only
OFBIZ-10438

ControlServlet.java returned to the previous doGet/doPost structure.

Thanks: Mathieu Lirzin for the contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834465 13f79535-47bb-0310-9956-ffa450edef68
2018-06-27 05:48:59 +00:00
Jacques Le Roux e153847f01 Improved: Adds missing license headers
(OFBIZ-10245)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834403 13f79535-47bb-0310-9956-ffa450edef68
2018-06-26 07:35:28 +00:00
Shi Jinghai 68003b9526 Implemented: Add method attribute to request-map to controll a uri can be called GET or POST only
OFBIZ-10438

The request-map element has a new method attribute to control a uri be called by GET or POST or all.

Thanks: Mathieu Lirzin for the contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834389 13f79535-47bb-0310-9956-ffa450edef68
2018-06-26 02:00:33 +00:00
Arun Patidar b346b89112 Improved: Define generic types in
(OFBIZ-10355)

Thanks Mathieu for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834201 13f79535-47bb-0310-9956-ffa450edef68
2018-06-23 12:53:56 +00:00
Akash Jain 2da1409dd1 Fixed: Values are not aligned with column over EditShoppingList Screen, applied patch from jira issue. (OFBIZ-10210)
Thanks, Yogesh Naroliya for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834191 13f79535-47bb-0310-9956-ffa450edef68
2018-06-23 11:58:22 +00:00
Akash Jain 5ea74e1603 Improved: Enable drop-ship PO feature at product store and product facility level as well, applied patch from jira issue with slightly changes. (OFBIZ-9987)
Thanks, Ankit Joshi for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834190 13f79535-47bb-0310-9956-ffa450edef68
2018-06-23 11:01:23 +00:00
Arun Patidar b750d6d3c8 Improved: Improve Hindi UiLables.
(OFBIZ-10362)

Thanks Pawan for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834189 13f79535-47bb-0310-9956-ffa450edef68
2018-06-23 10:43:20 +00:00
Arun Patidar 8a399bf0bd Improved: Make accounting entry configurable.
(OFBIZ-10391)

Thanks Aman Agrawal for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834186 13f79535-47bb-0310-9956-ffa450edef68
2018-06-23 09:17:33 +00:00
Arun Patidar abf3318c29 FIXED:Incorrect succes mesage after creating customer.
(OFBIZ-9898)

Thanks Anushi Gupta for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834181 13f79535-47bb-0310-9956-ffa450edef68
2018-06-23 06:26:56 +00:00
Jacques Le Roux 65a705eb56 Improved: Use in and spread operator in gradlewSubprocess
(OFBIZ-10431)

No functional change. The idea of using the spread operator is to have less 
mutation involved. In Groovy, using operator overloads like in is more idiomatic 
than using explicitly the associated method.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833997 13f79535-47bb-0310-9956-ffa450edef68
2018-06-21 11:41:22 +00:00
Jacques Le Roux 985aeaee03 Improved: Use list literals when possible
(OFBIZ-10431)

No functional change. List literals feels simply more readable.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833981 13f79535-47bb-0310-9956-ffa450edef68
2018-06-21 08:02:33 +00:00
Jacques Le Roux 5f37e7ea51 Fixed: Don't guess the system file separator
(OFBIZ-10428)

In case of Windows we need to escape "\" so adding "\\" } before fileSep 
is required

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833957 13f79535-47bb-0310-9956-ffa450edef68
2018-06-20 21:47:46 +00:00
Jacques Le Roux daa5194031 Improved: Use functional programming in build script
(OFBIZ-10429)

No functional change, the idea is to have more declarative code.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833951 13f79535-47bb-0310-9956-ffa450edef68
2018-06-20 20:43:35 +00:00
Jacques Le Roux 7b79f3d2b4 Improved: Don't guess the system file separator
(OFBIZ-10428)

The JVM already knows the file separator of the current system when running 
Gradle so use that value instead of guessing from the operating system property.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833949 13f79535-47bb-0310-9956-ffa450edef68
2018-06-20 20:36:59 +00:00
Taher A. Alkhateeb d46a33a627 Improved: improve XML parsing with more restrictive settings
(OFBIZ-10435)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833708 13f79535-47bb-0310-9956-ffa450edef68
2018-06-18 12:23:44 +00:00
Jacques Le Roux ca9b1bbd41 Reverted: Navigate from a domain to another with automated signed in
authentication
(OFBIZ-10307)

This reverts the work done previously for OFBIZ-9833 and OFBIZ-10206
Most parts of it will actually be reused later in a patch. By reverting it will 
allow to provide a patch for others to review


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833510 13f79535-47bb-0310-9956-ffa450edef68
2018-06-14 14:37:24 +00:00
Jacques Le Roux bdd946d0e8 Improved: Remove unused code in CommonEvents::setFollowerPage
(OFBIZ-10413)

`CommonEvents::setFollowerPage` contains two unused variable definitions.  
After basic search I found that this request handler is used only in 
`webapp/partymgr/controller.xml` 
However I was unable to understand its purpose, so I have added a comment to add
 some kind of docstring.

jleroux: this event method is never used because the pushPage request map is 
also never used. So we can get rid of the whole.
At the same time, fixes a typo in comment an remove an useless import

Thanks: Mathieu Lirzin for initial reporting

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833505 13f79535-47bb-0310-9956-ffa450edef68
2018-06-14 13:18:49 +00:00
Jacques Le Roux 4472a0e39e Improved: no functional change, fix a typo in a comment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833388 13f79535-47bb-0310-9956-ffa450edef68
2018-06-12 09:22:40 +00:00
Rishi Solanki b9cf8a5d55 Improved: Add Support for Disable attribute in CheckBox Form Widget. Disabled attrivute can be used as
<field><check disabled=true/></field>

and default value for attribute will be false.
(OFBIZ-10367)
Thanks Pawan Verma for reporting the improvement and providing patch for that.
Thanks James Yong for testing the work.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833231 13f79535-47bb-0310-9956-ffa450edef68
2018-06-09 12:34:49 +00:00
Jacques Le Roux 48ac12b6e1 Improved: no functional change, fixes formatting found by chance
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833214 13f79535-47bb-0310-9956-ffa450edef68
2018-06-08 20:41:18 +00:00
Jacques Le Roux a948ce1747 Fixed: streaming large content cause out of memory exception.
(OFBIZ-10133)

With r1821036 DataResourceWorker.getDataResourceStream() may return an 
InputStream (if the data resource is a file) instead of a ByteArrayInputStream 
which was expected in few places.

This fixes it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833211 13f79535-47bb-0310-9956-ffa450edef68
2018-06-08 20:37:32 +00:00
Michael Brohl 38a90dbefa Improved: Add a VERSION file in root dir.
(OFBIZ-10141)

This adds a VERSION file to store the release version information
and changes the footer of the themes to show the release version.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833173 13f79535-47bb-0310-9956-ffa450edef68
2018-06-08 14:42:18 +00:00
Jacques Le Roux 3304dec663 Fixed: The first visit event are not executed in case of CMS
(OFBIZ-10389)

Execution of the first visit events depends on the trackVisit function

In RequestHandler.java file

if (this.trackVisit(request) && session.getAttribute("_FIRST_VISIT_EVENTS_") == null) {
    // execute first visit event
}

trackVisit function does not honor the default controller request 
(in this case, cms) So, we should improve the code of trackVisit to honor 
default controller request.


Thanks: Swapnil M Mane

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832944 13f79535-47bb-0310-9956-ffa450edef68
2018-06-05 13:56:29 +00:00
Jacques Le Roux 66fa6b9c51 Improved: no functional change, fixes a typo in comment while at it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832930 13f79535-47bb-0310-9956-ffa450edef68
2018-06-05 11:29:11 +00:00
Jacques Le Roux c704689c3a Improved: no functional change, removes trailing blanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832762 13f79535-47bb-0310-9956-ffa450edef68
2018-06-03 08:55:51 +00:00
Jacques Le Roux 25f853db70 Fixed: Session fixation issue
(OFBIZ-10420)

Prevents the session fixation by making Tomcat generate a new jsessionId 
(ultimately put in cookie). Only do when really signing in to avoid unnecessary 
calls

This improves the way it's done by using request.changeSessionId() instead of 
creating a brand new session. So there is no possible side effects on client and
no need to set initial request info (using setInitialRequestInfo)

Thanks: Taher for asking about it










git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832756 13f79535-47bb-0310-9956-ffa450edef68
2018-06-03 08:33:09 +00:00
Jacques Le Roux 598eee0d93 Fixed: Session fixation issue
(OFBIZ-10420)

Fixes a session fixation security issue discovered by a client with the security
 audit tool "IBM Security AppScan Enterprise , Version : 9.0.3.7"

Prevents the session fixation by making Tomcat generate a new jsessionId 
(ultimately put in cookie). 

Only do when really signing in to avoid unnecessary calls
Though if the client has disabled the use of cookies, then a session will be 
new on each request, not a good choice on client side!




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832662 13f79535-47bb-0310-9956-ffa450edef68
2018-06-01 07:37:27 +00:00
Jacques Le Roux 94ec9094c4 Improved: Add session tracking mode and make cookie secure
(OFBIZ-6655)

In CrossSubdomainSessionValve::replaceCookie sets HttpOnly if it was in replaced
cookie

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832591 13f79535-47bb-0310-9956-ffa450edef68
2018-05-31 09:27:32 +00:00
Wei Zhang 6da8a7fc29 Fixed: Incorrect data type conversion of variable serviceEndTime in CoreEvents.java
(OFBIZ-10419)

A minor fix for serviceEndTime conversion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832577 13f79535-47bb-0310-9956-ffa450edef68
2018-05-31 01:20:54 +00:00
Jacques Le Roux 7036cb66e0 Improved: Update DBCP to 2.3.0
(OFBIZ-10404)

This is a minor release, including bug fixes and enhancements.
See http://commons.apache.org/proper/commons-dbcp/changes-report.html#a2.3.0
I'm running with it locally for 2 weeks, all seems OK

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832426 13f79535-47bb-0310-9956-ffa450edef68
2018-05-29 06:32:57 +00:00
Jacques Le Roux 16ad1e4870 Improved: New documentation for EntitySync
(OFBIZ-10390)

No functional changes while working on EntitySync-manual.adoc and checking the 
opportunity of existing debug log (it's a bit verbose, but it's OK as is)
Simply uses a multi-catch where possible



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832411 13f79535-47bb-0310-9956-ffa450edef68
2018-05-28 17:34:20 +00:00
Jacques Le Roux 22b6c33e88 Improved: Empty header row should not render if list to render in file is empty
(OFBIZ-7598)

If list inside form doesn't contain data, then header row should not render from
better UI perspective and proper message should be shown to user.

Get to catalog/control/EditProductGoodIdentifications with eg 
productId=ID:GZ-1006 for a test 

Thanks: Suraj 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832401 13f79535-47bb-0310-9956-ffa450edef68
2018-05-28 14:37:44 +00:00
Jacques Le Roux cc969366be Improved: Replace Inline js with External js in renderFormClose macro
(OFBIZ-9846)

Fixing patch, we forgot the other macro libraries.

Thanks: Aditya 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832365 13f79535-47bb-0310-9956-ffa450edef68
2018-05-28 06:50:51 +00:00