Commit Graph
27737 Commits
Author SHA1 Message Date
Ashish Vijaywargiya 29603b334a Applied patch from jira issue OFBIZ-5844 - Convert java files to EntityQuery.
Thanks Arun for the contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1642400 13f79535-47bb-0310-9956-ffa450edef68
2014-11-29 08:02:05 +00:00
Ashish Vijaywargiya ef5ba3d6dc Applied patch from jira issue OFBIZ-5844 - Convert java files to EntityQuery.
Thanks Arun for the contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1642398 13f79535-47bb-0310-9956-ffa450edef68
2014-11-29 08:00:37 +00:00
Ashish Vijaywargiya d230383a32 Applied patch from jira issue - OFBIZ-5844 - Convert java files to EntityQuery.
================================================================
Ashish Vijaywargiya / Arun Patidar: Getting error on http://demo-trunk-ofbiz.apache.org/ecommerce/round-gizmo-GZ-2644-p due to commit revision r1641044. There is an issue in CatalogUrlFilter class. Attaching the patch to fix the problem. Here is the error for your quick reference;

java.lang.IllegalArgumentException: You must pass an even sized array to the toMap method (size = 1)
	org.ofbiz.base.util.UtilMisc.toMap(UtilMisc.java:158)
	org.ofbiz.entity.util.EntityQuery.where(EntityQuery.java:160)
	org.ofbiz.product.category.CatalogUrlFilter.doFilter(CatalogUrlFilter.java:97)
================================================================ 
Thanks Rishi for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1642104 13f79535-47bb-0310-9956-ffa450edef68
2014-11-27 11:32:46 +00:00
Jacopo Cappellato 373e0aba28 Moved the "bi" component from the framework to the specialpurpose folder; moved all the dependencies (client code) on the "bi" component from applications components to the "bi" component itself.
Now the "bi" component contains all the dimensions/facts/star schemas and all the logic to populate them and can be easily enabled/disabled.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1642027 13f79535-47bb-0310-9956-ffa450edef68
2014-11-27 06:14:06 +00:00
Jacques Le Roux 75a66c5072 I revert this, it slipped in because I pressed the wrong button, should not work too late :/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641960 13f79535-47bb-0310-9956-ffa450edef68
2014-11-26 23:09:35 +00:00
Jacques Le Roux ab578b0903 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641956 13f79535-47bb-0310-9956-ffa450edef68 2014-11-26 22:18:04 +00:00
Jacopo Cappellato 0e449a6874 Fixed issue happening during ./ant create-tenant target on some databases (e.g. MySQL) where milliseconds are not stored: the order in which the Component records were selected could be different from the order they were inserted, causing some data loading issues.
Also fixed some commented out code.
Thanks to Rohit Kaushal for the initial version of the patch and to Arun Patidar for the review and support.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641804 13f79535-47bb-0310-9956-ffa450edef68
2014-11-26 13:09:40 +00:00
Jacques Le Roux f127f69f0f Creates the "revert-dev" ant target to quickly get rid of changes applied by build-dev locally or on a server https://issues.apache.org/jira/browse/OFBIZ-5886
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641631 13f79535-47bb-0310-9956-ffa450edef68
2014-11-25 15:15:02 +00:00
Jacques Le Roux aee44a7bfc A patch from Deepak Dixit for "EntityListIterator Not Closed for Entity JobSandbox, caught in Finalize" https://issues.apache.org/jira/browse/OFBIZ-5885
EntityListIterator Not Closed for Entity JobSandbox in ServiceUtil.purgeOldJobs method. Need to close the entity list iterator properly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641548 13f79535-47bb-0310-9956-ffa450edef68
2014-11-25 09:14:36 +00:00
Jacques Le Roux f25a007030 Fixes some formatting issues I crossed while merging to the SEO branch, I did not fix them all, just the ones who bugged me
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641366 13f79535-47bb-0310-9956-ffa450edef68
2014-11-24 11:21:54 +00:00
Ashish Vijaywargiya f9b159f793 Applied patch from jira issue - OFBIZ-5844 - Convert java files to EntityQuery.
===========================================================
Thanks Scott for reviewing and reporting an issue.

Scott's comment in email:
The where() methods don't currently support creating an entity
condition in the style used above. You'll need to wrap those three
parameters in a EntityCondition.makeCondition() method, i.e.
paymentMethodTypes = EntityQuery.use(delegator).from("PaymentMethodType")
.where(EntityCondition.makeCondition("paymentMethodTypeId",
EntityOperator.NOT_EQUAL, "EXT_OFFLINE")).queryList();

Attached is a patch with suggested solution.
==================================================
Thanks Arun for the contribution. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641317 13f79535-47bb-0310-9956-ffa450edef68
2014-11-24 06:26:37 +00:00
Jacques Le Roux 82506bb7cc It's not quite clear to me why Date.CultureInfo.formatPatterns.longTime from date.js returns ms (always .000 it seems). I don't know if this would not happen, but anyway I prefer to assign the value to the calendar out of the block which changes the value.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641165 13f79535-47bb-0310-9956-ffa450edef68
2014-11-23 08:49:48 +00:00
Jacques Le Roux c680b1c262 A patch from Gareth Carter for "jQuery datetimepicker popup time value is not set correctly from an existing value" https://issues.apache.org/jira/browse/OFBIZ-5883
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641131 13f79535-47bb-0310-9956-ffa450edef68
2014-11-22 22:48:44 +00:00
Nicolas Malin 9d696217e2 Corrective patch proposed by Gil Portenseigne that pass link's parameter from flexible string to correct parameter element on calendar menu screen, related to the issue OFBIZ-5847
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641096 13f79535-47bb-0310-9956-ffa450edef68
2014-11-22 18:05:32 +00:00
Adrian Crum 865c3ef338 Fixed a bug in the form widgets that was caused by recent refactoring - https://issues.apache.org/jira/browse/OFBIZ-5882.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641087 13f79535-47bb-0310-9956-ffa450edef68
2014-11-22 15:56:41 +00:00
Jacques Le Roux d244ee435b A slightly modified patch from Gareth Carter for "<@htmlTemplate.renderDateTimeField does not parse date string based on input format" https://issues.apache.org/jira/browse/OFBIZ-5850
Commit 1626419 changed htmlFormMacroLibrary.ftl renderDateTimeField to use Date.parse instead of Date.parseExact.
https://code.google.com/p/datejs/wiki/APIDocumentation states Date.parse will use current CultureInfo for formats but for parsing ISO yyyy-MM-dd from hidden field, need to use parseExact.
I spotted this when CultureInfo was en-GB and selecting 2014-11-01 on any date field (i18n field displays 11/01/2014 instead of 01/11/2014)
For November all days after the 12th display correctly

jleroux: I simply removed the line added in the block which remove the dot and 000 ms in date/time string. I did not see any reason why this was needed. I modified the comment on this block for faster understanding.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641066 13f79535-47bb-0310-9956-ffa450edef68
2014-11-22 14:15:54 +00:00
Ashish Vijaywargiya 3e019c8977 Applied ordermgr component patch from jira issue - OFBIZ-5844 - Convert java files to EntityQuery.
Thanks Arun for the contribution. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641045 13f79535-47bb-0310-9956-ffa450edef68
2014-11-22 11:29:46 +00:00
Ashish Vijaywargiya f67ad0317d Applied product folder related changes from jira issue - OFBIZ-5844 - Convert java files to EntityQuery.
Thanks Arun for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641044 13f79535-47bb-0310-9956-ffa450edef68
2014-11-22 11:26:20 +00:00
Ashish Vijaywargiya a090f96cad Applied party component patch from jira issue - OFBIZ-5844 - Convert java files to EntityQuery.
Thanks Arun for the contribution. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641043 13f79535-47bb-0310-9956-ffa450edef68
2014-11-22 11:17:45 +00:00
Jacques Le Roux 02bc6d32c2 A patch from Chatree Srichart for "404 error with birt previews." https://issues.apache.org/jira/browse/OFBIZ-5876
The commons-discovery-0.5.jar has been removed from framework/base/lib/ at r1623042 but was needed for Birt. Its correct place is in specialpurpose/birt/lib/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641037 13f79535-47bb-0310-9956-ffa450edef68
2014-11-22 09:19:34 +00:00
Jacques Le Roux 682c9014a2 Fixes and completes r1640588 and more minor things which were left after the change from run-install to load-demo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1640727 13f79535-47bb-0310-9956-ffa450edef68
2014-11-20 12:18:59 +00:00
Jacques Le Roux b48c6a16b6 At r1639887 I forgot to put the content of templateContext in the local tempTemplateContext. Thanks to Deepak for spotting it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1640717 13f79535-47bb-0310-9956-ffa450edef68
2014-11-20 10:49:56 +00:00
Jacopo Cappellato 94c01378ce Removed the findOne and findList methods from the OFBiz DSL: with the new support for the Entity Query Builder (thanks Scott) we can then run much more powerful queries in a simpler way.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1640679 13f79535-47bb-0310-9956-ffa450edef68
2014-11-20 05:28:49 +00:00
Jacques Le Roux d6c2d35d34 Inconsistencies related to the "java -jar ofbiz.jar" commands when used with arguments https://issues.apache.org/jira/browse/OFBIZ-5872
The help gives you:
c:\projectsASF\ofbiz>java -jar ofbiz.jar -help

Usage: java -jar ofbiz.jar [command] [arguments]
-both    -----> Run simultaneously the POS (Point of Sales) application and OFBiz standard
-help, -? ----> This screen
-install -----> Run install (create tables/load data)
-pos     -----> Run the POS (Point of Sales) application
-setup -------> Run external application server setup
-start -------> Start the server
-status ------> Status of the server
-shutdown ----> Shutdown the server
-test --------> Run the JUnit test script
[no config] --> Use default config
[no command] -> Start the server w/ default config

But actually only the -help, -status and -shutdown command need a dash. 

For now we decided to change the documentation generated by the help command to remove dashes when they are not needed.

To change 
-install -----> Run install (create tables/load data)
by
-load-data -----> Create tables/load data

To comment out the 
-setup -------> Run external application server setup
line

When done, we will try to have things consistent and re-add the missing dashes to the commands and in the help. Then the "Technical production setup guide" should be updated, pfew...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1640588 13f79535-47bb-0310-9956-ffa450edef68
2014-11-19 16:27:49 +00:00
Jacques Le Roux 6826553c36 Forgot to commit changes in .classpath and LICENSE when updatig Tomcat from 7.0.55 to 7.0.57
Forgot also to say that there were no changes in framework\base\lib\j2eespecs

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1640515 13f79535-47bb-0310-9956-ffa450edef68
2014-11-19 10:21:59 +00:00
Jacques Le Roux afac2070b3 With Tomcat 7.0.57 we no longer need to force the TLS version to v1.2
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1640299 13f79535-47bb-0310-9956-ffa450edef68
2014-11-18 10:33:50 +00:00
Jacques Le Roux d2104a85af Updates embedded Tomcat to 7.0.57 - https://issues.apache.org/jira/browse/OFBIZ-5881
Notably related to OFBIZ-5848 (Poodle) changes in Coyote:

Add support for TLSv1.1 and TLSv1.2 for APR connector. Based upon a patch by Marcel Šebek. This feature requires Tomcat Native library 1.1.32 or later. (schultz/jfclere)
Add Disable SSLv3 by default for JSSE based HTTPS connectors (BIO and NIO). The change also ensures that SSLv2 is disabled for these connectors although SSLv2 should already be disabled by default by the JRE. (markt)
Add Disable SSLv3 by default for the APR/native HTTPS connector. (markt)

I will test later if we can get rid of forcing TLSv2 in OFBiz

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1640288 13f79535-47bb-0310-9956-ffa450edef68
2014-11-18 09:20:38 +00:00
Jacques Le Roux d479d0d975 Improve the way build-AREA_NAME targets are used - https://issues.apache.org/jira/browse/OFBIZ-5880
Since the introduction of the build-dev target, a build-AREA_NAME (test, qa, production) should not chain the main build target. Because servers use the patch command and patches applied by the build-dev target are rejected and the process fails.

Of course this also means to change the scripts which are using build-AREA_NAME since now the main build is not chained, eg
from
./ant clean build-qa
to 
./ant clean build-qa build

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1640196 13f79535-47bb-0310-9956-ffa450edef68
2014-11-17 17:34:43 +00:00
Adrian Crum f803833df9 ModelFormField.java refactor:
1. Extract FieldInfo class to a separate file.
2. Make FieldInfo thread-safe.
3. Modify FieldInfo subclasses so they include a thread-safe copy method.

This commit fixes a major flaw in the original design. When a widget form is extended, the original design would copy the child FieldInfo state to the parent FieldInfo - so the parent FieldInfo referenced the child form instead of the parent form. With this commit, parent FieldInfo instances  are copied as new instances to the child form - so the parent FieldInfo instances remain unchanged.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639927 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 21:33:51 +00:00
Ashish Vijaywargiya 66e20b8d44 Applied patch from jira issue - OFBIZ-5551 - Cannot delete the record When Server Timezone and Application timeZone are different.
Thanks  SenthilMurugan for reporting the issue and thanks Deepak for providing the patch. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639892 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 14:22:21 +00:00
Ashish Vijaywargiya 8b60bc3ae0 Applied patch from jira issue - OFBIZ-5470 - List Price gets reset to zero after updating default/base price of existing order items.
Thanks  Christian for reporting the issue and Thanks Arun for providing the patch for this issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639889 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 14:10:59 +00:00
Jacques Le Roux 6fd38f2cc0 OFBIZ-5822 - Uses a tempTemplateContext instead of templateContext which is used later in the method, thanks to Scott's post on dev ML
I will wait to commit the last changes for the Poodle vulnerability in release branches (for running tests with Java 1.7) before backporting, because I used the "new" diamond operator here (1st in OFBiz it seems)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639887 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 14:06:50 +00:00
Adrian Crum 1a21c100ff Add throws clause to ModelWidgetVisitor.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639886 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 14:06:32 +00:00
Ashish Vijaywargiya 73ec4634a3 Applied patch from jira issue - OFBIZ-4655 - searchCategory is not available in results in keywordsearch.groovy
Thanks Kiran for reporting the issue and thanks Deepak for providing the patch for this issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639884 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 13:57:48 +00:00
Ashish Vijaywargiya 21513583f1 Applied patch from jira issue - OFBIZ-5766 - Error when adding/modifying a task to a Production Run - field type error.
Thanks Guillaume Sigoigne for reporting the issue, Thanks Divesh for providing the patch for this issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639880 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 13:35:45 +00:00
Ashish Vijaywargiya 935c229d8b Applied patch from jira issue - OFBIZ-4468 - After login it shows error 'Product not found!'.
Thanks Kiran for reporting the issue, Thanks Akash for providing the patch for this issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639873 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 12:44:39 +00:00
Ashish Vijaywargiya db646b4997 Committing minor changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639872 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 12:40:39 +00:00
Ashish Vijaywargiya b889daf058 Applied patch from jira issue - OFBIZ-4362 - MapKey for CMS content cannot be updated.
Thanks Manuela for reporting the bug, Thanks Deepak for providing the patch for this issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639867 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 12:19:44 +00:00
Jacques Le Roux 4330fcd646 Following changes for "PortalPage entity definition wrong. ownerUserLoginId field must be id-vlong-ne" https://issues.apache.org/jira/browse/OFBIZ-5110
Fixes other cases as well

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639863 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 12:14:37 +00:00
Jacques Le Roux 893c32ed9c Removes an useless log entry
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639862 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 12:12:53 +00:00
Ashish Vijaywargiya 2352e830af Applied patch from jira issue OFBIZ-4569 - Update address dialog shows multiple CommonUpdatingData when required field is missing.
============================================================================================
Open update address dialog (profile->Manage Addresses->Edit)
Remove one of the required field.
Hit submit couple of times. You need notice, it shows 'CommonUpdatingData' at the top. 

It should validate the form before adding the label.
============================================================================================
Thanks Kiran for reporting the issue, Thanks Deepak for providing the patch for this issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639859 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 11:47:42 +00:00
Ashish Vijaywargiya 817d96fdc6 Applied patch from jira issue - OFBIZ-5630 - service updateFxConversion doesn't set thruDate properly.
==========================================================================================
When updating an existing foreign currency exchange rate in accounting the service creates a new exchange rate and sets the thruDate of the old rate.
But in stead of taking the fromDate of the new exchange rate as a starting point for the thruDate of the expired exchange rate it uses nowTimeStamp.
==========================================================================================
Thanks Pierre for reporting the issue. Thanks Pranay for providing the fix. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639848 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 09:18:39 +00:00
Ashish Vijaywargiya e6bae23919 Applied patch from jira issue - OFBIZ-2567 - Entity VirtualProduct missing.
Thanks  Jan Valkovic for reporting the issue, Thanks Deepak for providing the patch for the same.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639846 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 08:57:13 +00:00
Ashish Vijaywargiya e60c40b733 Applied patch from jira issue - OFBIZ-904 - Error when "Inventory Facility Id" is left blank in product store settings.
Thanks Michel for creating the issue and Thanks Arun Arun for providing the patch. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639841 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 07:07:36 +00:00
Ashish Vijaywargiya bade7c3eb2 Applied patch from jira issue - OFBIZ-5150 - reserveProductInventory method looses priority attribute in oisgir for non serialized and non requireInventory.
Thanks Deepak Agarwal for reporting the issue and Thanks Arun for providing the patch. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639840 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 06:08:59 +00:00
Ashish Vijaywargiya 87aa7ba1c9 Applied patch from jira issue - OFBIZ-5110 - PortalPage entity definition wrong. ownerUserLoginId field must be id-vlong-ne.
Thanks Roberto for reporting the issue and Thanks Arun for providing the patch. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639837 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 05:36:10 +00:00
Ashish Vijaywargiya 9a791b7caa Applied patch from jira issue - OFBIZ-5416 - Sales order cart items already assigned to ship groups are incorrectly able to be modified to quantities/prices that break the ProductStoreShipmentMeth rules.
Thanks Christian for reporting the issue and Thanks Arun for providing the patch. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639835 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 05:28:30 +00:00
Ashish Vijaywargiya d2d3178e50 Applied bug fix from jira issue OFBIZ-5854 - Order On Hold Auto Approves When Edited.
Thanks Vikas for creating the issue and thanks Akash for verification. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639833 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 05:15:17 +00:00
Jacques Le Roux 8a9d0ecae3 Removes forgotten log
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639788 13f79535-47bb-0310-9956-ffa450edef68
2014-11-14 20:58:27 +00:00
Jacques Le Roux 1e75493723 A patch from Pierre Gaudin for "use requestParameters for customMethod call" https://issues.apache.org/jira/browse/OFBIZ-5822
For a content, you can set a custom method that perform an action before content's rendering.
Unfortunately, in the customMethod call, the request Parameters can't be used because they are not set into the map that is used to create custom method IN parameters.
This patch solves this problem

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639606 13f79535-47bb-0310-9956-ffa450edef68
2014-11-14 11:15:54 +00:00