Commit Graph
27737 Commits
Author SHA1 Message Date
Nicolas Malin f81916c504 correct error when sort a localized field with the order way is present like '-field', '+field', 'field ASC', 'field DESC'
This error raise by james yong on the issue OFBIZ-6987. Thanks to him for the issue and Deepak Dixit to spot the source

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1738258 13f79535-47bb-0310-9956-ffa450edef68
2016-04-08 15:16:22 +00:00
Jacques Le Roux 53ab8eebd9 A patch from Kongrath Suankaewmanee for "Error in entity reference chart for static in webtools" https://issues.apache.org/jira/browse/OFBIZ-6995
I found the error when I try to use entity reference chart for static in webtools,
https://localhost:8443/webtools/control/entityref?forstatic=true
and choose one from the list of left side and the error appear on right hand side.
It's work without error for "Enitity Packages" list but doesn't for "Entities - Alphabetical" list.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1738235 13f79535-47bb-0310-9956-ffa450edef68
2016-04-08 11:54:01 +00:00
Pranay Pandey 1028a9259b [OFBIZ-6986] Applied slightly modified patch from JIRA issue. Simplify getChildHRCategoryTree. Breaking the single long method to multiple private functions with improved exception handling.
Thanks Kulwant for reporting and providing patch for the issue. Thanks Deepak Dixit for reviewing the patch and providing improvement suggestions.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1738122 13f79535-47bb-0310-9956-ffa450edef68
2016-04-07 12:04:27 +00:00
Jacques Le Roux 08e258af68 Non functional change, only a French label
A disbursment is not a débours but a décaissement

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1738056 13f79535-47bb-0310-9956-ffa450edef68
2016-04-06 21:22:59 +00:00
Deepak Dixit 9a48cafbca (OFBIZ-6818) Apply patch from jira issue.
============================================================
relocate .ftl files in the marketing component
============================================================
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737969 13f79535-47bb-0310-9956-ffa450edef68
2016-04-06 11:47:19 +00:00
Deepak Dixit 56a29a093c (OFBIZ-6827) Apply patch from jira issue.
============================================================
relocate .ftl files in the specialpurpose/birt component
============================================================


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737817 13f79535-47bb-0310-9956-ffa450edef68
2016-04-05 10:13:18 +00:00
Jacques Le Roux e6193df72d Partial improvement for "Remove from trunk the deprecated code if deprecated before December 2014" https://issues.apache.org/jira/browse/OFBIZ-6273
Deletes FoScreenRenderer.java no longer used/needed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737807 13f79535-47bb-0310-9956-ffa450edef68
2016-04-05 09:31:43 +00:00
Jacques Le Roux 6ed0d2e22b Partial improvement for "Remove from trunk the deprecated code if deprecated before December 2014" https://issues.apache.org/jira/browse/OFBIZ-6273
Replaces the deprecated FoScreenRenderer.getFoStyle() by new MacroScreenRenderer.getFoStyle() in Fo form and screen renderers

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737806 13f79535-47bb-0310-9956-ffa450edef68
2016-04-05 09:13:20 +00:00
Jacques Le Roux 01ab6dd9b7 Partial improvement for "Remove from trunk the deprecated code if deprecated before December 2014" https://issues.apache.org/jira/browse/OFBIZ-6273
Replaces the deprecated new HtmlScreenRenderer() in HtmlTreeRenderer.java.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737803 13f79535-47bb-0310-9956-ffa450edef68
2016-04-05 08:57:35 +00:00
Deepak Dixit 42b7904591 (OFBIZ-6826) Again something went wrong, Committing missing moved files in specialpurpose/bi component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737790 13f79535-47bb-0310-9956-ffa450edef68
2016-04-05 06:57:55 +00:00
Jacques Le Roux 4ecbb21ee0 Partial improvement for "Remove from trunk the deprecated code if deprecated before December 2014" https://issues.apache.org/jira/browse/OFBIZ-6273
Replaces the deprecated StAXSOAPModelBuilder(XMLStreamReader) and StAXOMBuilder(reader) in SOAPEventHandler.java. I did not find how to test though...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737789 13f79535-47bb-0310-9956-ffa450edef68
2016-04-05 06:57:54 +00:00
Deepak Dixit bb48565def (OFBIZ-6826) Applied patch from jira issue, moves the *.ftl files from webapp to template subfolders for specialpurpose/bi component.
Thanks  Pierre Smits for the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737787 13f79535-47bb-0310-9956-ffa450edef68
2016-04-05 06:54:12 +00:00
Deepak Dixit bfd44a3f1f Reverting revision 1737783, something went wrong with eclipse.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737784 13f79535-47bb-0310-9956-ffa450edef68
2016-04-05 06:51:12 +00:00
Deepak Dixit 44057602f6 (OFBIZ-6826) Applied patch from jira issue, moves the *.ftl files from webapp to template subfolders for specialpurpose/bi component.
Thanks  Pierre Smits for the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737783 13f79535-47bb-0310-9956-ffa450edef68
2016-04-05 06:45:10 +00:00
Deepak Dixit 50ffc15c80 (OFBIZ-6975) Applied patch from jira issue, moves the *.ftl files from webapp to template subfolders for securityext component.
Thanks  Pierre Smits for the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737781 13f79535-47bb-0310-9956-ffa450edef68
2016-04-05 06:28:40 +00:00
Nicolas Malin 882b2ca482 no functionnal change, remove unnecessary space and unnecessary return
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737734 13f79535-47bb-0310-9956-ffa450edef68
2016-04-04 19:02:01 +00:00
Jacques Le Roux 3a933fb55a A patch from Pierre Smits for "relocate .ftl files in the specialpurpose/hhfacility component" https://issues.apache.org/jira/browse/OFBIZ-6835
jleroux: OFBIZ-6835-hhfacility-widget-ftl-relocation.patch applied, ftl files moved by hand in Eclipse


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737703 13f79535-47bb-0310-9956-ffa450edef68
2016-04-04 16:22:01 +00:00
Jacques Le Roux 89b06de15c No functional change, add commented out "-Xlint:deprecation" compilerarg value for convenience
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737696 13f79535-47bb-0310-9956-ffa450edef68
2016-04-04 15:34:39 +00:00
Jacques Le Roux 2001f1091a For "Replace OFBiz HttpClient by org.apache.commons.httpclient.HttpClient" - https://issues.apache.org/jira/browse/OFBIZ-4430
Since commons.httpclient.HttpClient is now deprecated/not-maintained an vulnerable I prefer to simply put a warning at the top of the class. So people can pick what they prefer and is handy for their problem at than

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737695 13f79535-47bb-0310-9956-ffa450edef68
2016-04-04 14:49:44 +00:00
Jacques Le Roux b15de687dd No functional change, removes useless delegator var and import
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737691 13f79535-47bb-0310-9956-ffa450edef68
2016-04-04 13:48:19 +00:00
Jacques Le Roux e3b099e5f4 "SagePay classes make use of deprecated httpclient features" - https://issues.apache.org/jira/browse/OFBIZ-6286
No functional change. Replaces deprecated code. I stumbled upon this by chance. I wanted to entertain myself and learn something, this was much fun (not really :/)
The new CloseableHttpClient is great but I was very surprise to have to put a catch block into a finally. I double-checked I see no other ways (but to throw a IOException and I wanted to log)

In SagePayUtil.java, I wondered if deprecated BasicHttpParams was useless or not. I checked the source, which extends AbstractHttpParams and HttpParams, the default constructor does not set anything. We can get rid of it, I guess it was forgotten there.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737688 13f79535-47bb-0310-9956-ffa450edef68
2016-04-04 13:30:27 +00:00
Michael Brohl 302195327b Applied patch for OFBIZ-6971: Remove dead imports.
Remove all unnecessary import statements in all java files. Taken from the Refactor ToDo list at https://cwiki.apache.org/confluence/display/OFBIZ/Re-Factor+To-Do+List .

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737636 13f79535-47bb-0310-9956-ffa450edef68
2016-04-04 08:31:08 +00:00
Michael Brohl eaafbb0779 Applied patch for OFBIZ-6972: Fix resource leaks in CommonServices.java.
File1 and file2 should be fixed by closing them in byteBufferTest. Taken from refactor todo list at https://cwiki.apache.org/confluence/display/OFBIZ/Re-Factor+To-Do+List .

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737631 13f79535-47bb-0310-9956-ffa450edef68
2016-04-04 08:16:59 +00:00
Jacques Le Roux cd61531674 A modified patch from James Yong's for "Redundant image in popup (tooltip)" - https://issues.apache.org/jira/browse/OFBIZ-6968
Problem
=======
Go to https://localhost:8443/ecommerce/
Popup (tooltip) contains the same image as the target. 
Pointless to repeat the same content in a popup (tooltip).

jleroux: I added the introduction of LARGE_IMAGE_URL and updated to reflect the productsummary.ftl location change 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737627 13f79535-47bb-0310-9956-ffa450edef68
2016-04-04 06:38:44 +00:00
Jacques Le Roux 7ba040fc5e Oops, this was redundant in previous commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737609 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 21:43:06 +00:00
Jacques Le Roux 2ebd0cb7a7 Just stumbled upon it by chance, these changes needed in ecommerce were missing in r1736868 for OFBIZ-6819 (order)
I will double-check all screens changes kept in r1737557 (ie initially committed for subtasks 25 to 32 of OFBIZ-6810) 
From 1st investigation I believe there are no others (at least dependency in specialpurpose from applications, I did not check specialpurpose interdependencies yet...)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737608 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 21:40:33 +00:00
Jacques Le Roux 4881510af1 Fixes a bug introduced with r1737531 for OFBIZ-6817 (manufacturing). Part of "Move all Groovy scripts in components WEB-INF/actions sub-folders" - https://issues.apache.org/jira/browse/OFBIZ-6981
Currently there are few Groovy scripts not in components WEB-INF/actions sub-folders.

Before moving Groovy scripts as we decided in OFBIZ-6810 we should move the few Groovy scripts not in components WEB-INF/actions sub-folders to these WEB-INF/actions sub-folders. So we will not miss one and it will be a "straightforward" task to move then as we decided in OFBIZ-6810.

The 1st task here will be to fix a bug related with ShowProductionRun.groovy. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737603 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 18:42:59 +00:00
Jacques Le Roux fc12ea1f62 Following partial revert of r1736876 for OFBIZ-6812 (project), this moves the *.ftl files from webapp to template subfolders
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737571 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 10:07:42 +00:00
Jacques Le Roux b6d0b094ae Following partial revert of r1736870 for OFBIZ-6860 (myportal), this moves the *.ftl files from widget to template subfolders
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737570 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 10:05:47 +00:00
Jacques Le Roux a1f2791914 Because or r1737872 "SQLite error - svn: sqlite[S10]: disk I/O error"
I need to restore this file before moving it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737569 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 10:05:05 +00:00
Jacques Le Roux 31e7d7f119 After r1737565 for OFBIZ-6837 (webpos) moves back images folder (with only .css and .js files) from template to webapp
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737566 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 09:52:33 +00:00
Jacques Le Roux ccd24f2735 Following partial revert of r1736869 for OFBIZ-6837 (webpos), this moves the *.ftl files from webapp to template subfolders
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737565 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 09:43:27 +00:00
Jacques Le Roux 84d1b73fe4 Following partial revert of r1736868 for OFBIZ-6819 (order), this moves the *.ftl files from webapp to template subfolders
It also removes the empty and not used images subfolder in webapp/ordermgr

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737564 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 09:40:47 +00:00
Jacques Le Roux 339d43cde6 Following partial revert of r1736867 for OFBIZ-6817 (manufacturing), this moves the *.ftl files from webapp to template subfolders
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737563 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 09:33:17 +00:00
Jacques Le Roux df3f8fc8ed After r1737560, removes now empty humanres/humanres subfolder under webapp in humanres component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737561 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 09:23:15 +00:00
Jacques Le Roux a5f9d927f6 Following partial revert of r1736866 for OFBIZ-6816 (humanres), this moves the *.ftl files from webapp to template subfolders
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737560 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 09:17:26 +00:00
Jacques Le Roux 63ce9f7daa This partially reverts the changes done by
r1736866 for OFBIZ-6816 (humanres)
  r1736867 for OFBIZ-6817 (manufacturing)
  r1736868 for OFBIZ-6819 (order)
  r1736869 for OFBIZ-6837 (webpos)
  r1736870 for OFBIZ-6860 (myportal)
  r1736876 for OFBIZ-6812 (project)
Partially because I did not revert the changes in screens files and I already restored the *.ftl files (+ ShowProductionRun.groovy) deleted in r1736867 in their initial locations.

I noticed there is another groovy file: OrderReportPrepare.groovy. It's not used OOTB (events in relation with JasperReport commented out in order controller)
Both groovy files will need to be moved to a right location before we move groovy files also. 
They might not be the only ones in this case (wrong initial locations)...

Actually I did not review these patches enough when I committed them. 
Apart r1736867 (manufacturing), the ftl files were not moved but simply copied from their initial locations to the templates components sub-folders. 
In r1736867 the files were not moved but deleted and copied (this maybe a patch effect, not sure we can move files using patches, I'll try)

images

So this simply deletes the templates components sub-folders and their contents
I'll soon properly move the file, in the meantime the trunk will be in an inconsistent state (because of the the changes in screens files not reverted).



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737557 13f79535-47bb-0310-9956-ffa450edef68
2016-04-03 09:10:47 +00:00
Jacques Le Roux 902f80ae7e This completes previous test commit (r1737529). Like this previous commit it's a non functional change. It only re-adds deleted files. This is a way to restore their history.
It partially reverts the changes done by
  r1736867 for OFBIZ-6817 (manufacturing)
Partially because it only restores the deleted *.ftl files (and ShowProductionRun.groovy: its location was not handled right, from its creation in pre apache era)

I'll continue the work tomorrow, I'm now sure no history will be lost.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737531 13f79535-47bb-0310-9956-ffa450edef68
2016-04-02 21:45:28 +00:00
Jacques Le Roux 862697efea Trying to commit 1 file to see if I can recover its history this way. This is only a test...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737529 13f79535-47bb-0310-9956-ffa450edef68
2016-04-02 21:38:33 +00:00
Deepak Dixit dde8fa8fd1 (OFBIZ-6822) Applied slightly modified patch from jira isseu, use svn mv command to move .ftl files to new location.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737486 13f79535-47bb-0310-9956-ffa450edef68
2016-04-02 10:36:00 +00:00
Jacques Le Roux ce60b616f8 Fixes a possible security issue reported by Pascal Proulx at https://issues.apache.org/jira/browse/OFBIZ-6973 : "Flaw in content wrapper cache handling with encoderType"
In ProductContentWrapper#getProductContentAsText and all similar content wrappers using a cache, the cacheKey does not include the new encoderType:
    String cacheKey = productContentTypeId + SEPARATOR + locale + SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId");

This makes it possible for subsequent calls on the same wrapper using different encoderTypes to return content having the wrong encoding and create potential security flaws.

The key should include the encoderType:
    String cacheKey = productContentTypeId + SEPARATOR + locale + SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId")  + SEPARATOR + encoderType;

jleroux: I fixed all possible such occurrences (ie when encoderType is used)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737440 13f79535-47bb-0310-9956-ffa450edef68
2016-04-01 20:27:13 +00:00
Jacques Le Roux c40f979bcc Oops too fast in previous commit, one change is wrong. This reverts the whole commit to fix the bug properly
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737416 13f79535-47bb-0310-9956-ffa450edef68
2016-04-01 18:22:06 +00:00
Jacques Le Roux 56aa13a77c Fixes a possible security issue reported by Pascal Proulx at https://issues.apache.org/jira/browse/OFBIZ-6973 : "Flaw in content wrapper cache handling with encoderType"
In ProductContentWrapper#getProductContentAsText and all similar content wrappers using a cache, the cacheKey does not include the new encoderType:
    String cacheKey = productContentTypeId + SEPARATOR + locale + SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId");

This makes it possible for subsequent calls on the same wrapper using different encoderTypes to return content having the wrong encoding and create potential security flaws.

The key should include the encoderType:
    String cacheKey = productContentTypeId + SEPARATOR + locale + SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId")  + SEPARATOR + encoderType;

jleroux: I fixed all possible such occurrences (ie when encoderType is used)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737415 13f79535-47bb-0310-9956-ffa450edef68
2016-04-01 18:20:16 +00:00
Jacques Le Roux 6fb337b5f6 A patch from James Yong for <<Tree showing categories has empty labels>> https://issues.apache.org/jira/browse/OFBIZ-6970
Problem
=======
Go to https://localhost:8443/ecommerce/
There are missing labels in the categories section



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737156 13f79535-47bb-0310-9956-ffa450edef68
2016-03-30 19:29:24 +00:00
Jacques Le Roux 1e7d539a7a Removes old simple-methods.xsd from the trunk as it's useless now (was replaced by simple-methods-v2.xsd)
Also renames simple-methods-v2.xsd in simple-methods.xsd and replaces simple-methods-v2.xsd references by simple-methods.xsd references everywhere it's needed



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737087 13f79535-47bb-0310-9956-ffa450edef68
2016-03-30 09:13:03 +00:00
Jacques Le Roux a2ec1cbb64 Removes simple-methods.xsd from the catalog, it's no longer used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737078 13f79535-47bb-0310-9956-ffa450edef68
2016-03-30 06:00:25 +00:00
Jacques Le Roux eff5999d61 A patch from James Yong for <<Unable to change language in ecommerce>> https://issues.apache.org/jira/browse/OFBIZ-6966
Problem
=======
Go to http://localhost:8080/ecommerce/
Change the language dropdown from English to another language will revert back to English. I am using SVN revision 1735923

jleroux: This was due to  OFBIZ-6879 ("Remove forceHttpSession feature"). Now as soon as you start with HTTPS instead of HTTP it works. I mean other links don't get back on HTTP, see OFBIZ-6966 for details... More to come with OFBIZ-6849, hopefully soon...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737046 13f79535-47bb-0310-9956-ffa450edef68
2016-03-29 20:44:30 +00:00
Hans Bakker 707ff1dac8 remove antwebsystems.com references
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736947 13f79535-47bb-0310-9956-ffa450edef68
2016-03-29 05:09:29 +00:00
Scott Gray 393de88042 Ensure a ModelField is set for rhs EntityConditionValues that don't already have it, such as the EntityFunction classes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736922 13f79535-47bb-0310-9956-ffa450edef68
2016-03-28 20:13:54 +00:00
Jacques Le Roux 2be350c308 As reported by Jame Yong at https://issues.apache.org/jira/browse/OFBIZ-6755 "There is no commons-httpclient-3.1.jar in the project but the .classpath file still links to it"
This removes it after r1735021, waiting for backporting in R15.12

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736890 13f79535-47bb-0310-9956-ffa450edef68
2016-03-28 14:48:54 +00:00