Commit Graph
21159 Commits
Author SHA1 Message Date
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
Adrian Crum fd4ea93d14 Fix NPE caused by recent widget refactoring - https://issues.apache.org/jira/browse/OFBIZ-5875.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639551 13f79535-47bb-0310-9956-ffa450edef68
2014-11-13 23:30:26 +00:00
Jacopo Cappellato 35a4d4f4a8 Improved unit test that was failing when executed in certain platforms.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639373 13f79535-47bb-0310-9956-ffa450edef68
2014-11-13 15:39:54 +00:00
Jacopo Cappellato 06abae3dfa Enhanced the OFBiz DSL with an alternative way of invoking a service; converted one service call in OrderView.groovy to demonstrate its usage.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1638801 13f79535-47bb-0310-9956-ffa450edef68
2014-11-12 14:45:56 +00:00
Jacopo Cappellato ddbb176a9a Converted the OrderView.groovy script to use the runService DSL method instead of the dispatcher.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1638074 13f79535-47bb-0310-9956-ffa450edef68
2014-11-11 12:51:53 +00:00
Jacopo Cappellato d896026f58 No need to import the EntityQuery class when the new OFBiz DSL methods (select or from) are used to use the EntityQuery builder.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1638056 13f79535-47bb-0310-9956-ffa450edef68
2014-11-11 09:49:10 +00:00
Jacopo Cappellato e24c111f05 Added to the OFBiz DSL the ability to invoke the new EntityQuery builder.
Modified two calls in OrderView.groovy to demonstrate the new feature.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1638054 13f79535-47bb-0310-9956-ffa450edef68
2014-11-11 09:33:15 +00:00
Adrian Crum 5510c3ea5b Upgraded httpclient libraries. HttpClient defaults to TLS instead of SSLv3.
http://www.apache.org/dist/httpcomponents/httpclient/RELEASE_NOTES-4.3.x.txt

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637883 13f79535-47bb-0310-9956-ffa450edef68
2014-11-10 15:15:59 +00:00
Nicolas Malin b6518f08a0 Correct createPartyRole call with pk collision risk detected by Supatthra Nawicha on OFBIZ-5853, while waiting for discussion if revert of createPartyRole from entity-auto is need or not
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637721 13f79535-47bb-0310-9956-ffa450edef68
2014-11-09 19:30:26 +00:00
Nicolas Malin 1f17ccfa03 Correct parameter fields present direclty on target value instead of use the parameter's link element that generate for partyId this string : '∂yId' , thanks for Supachai Chaima-ngua and Francis Douet for the alert on OFBIZ-5847
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637716 13f79535-47bb-0310-9956-ffa450edef68
2014-11-09 19:18:02 +00:00
Nicolas Malin 5bbff9f365 Manage multi pk with sub-sequence on entity-auto (OFBIZ-5800),
Add the possibility to the entity-auto engine on the create action to manage entities with more than 2 primary keys which one is under sub sequence or fromDate, like PerfReview (employeePartyId, employeeRoleTypeId, perfReviewId) or PartyQual (partyId, partyQualTypeId, fromDate).

Improve return message for the create action if the entity value exist and the delete action if the entity value not exist instead of the database message error.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637596 13f79535-47bb-0310-9956-ffa450edef68
2014-11-08 21:00:55 +00:00
Jacopo Cappellato cc8f10a6c7 OFBIZ-5793 Enhanced logic to run product subscription expiry service only once when the subscription expires:
a) augment the OFBiz data model with the new field: Subscription.expirationCompletedDate
b) modify the algorithm of runServiceUponSubscriptionExpiry to also check whether the expiry service has already run, by checking that expirationCompletedDate is null.
if expirationCompletedDate is null (and the other conditions are satisfied), run the service in SubscriptionResource.serviceNameOnExpiry and update the date/time into expirationCompletedDate
if expirationCompletedDate is not null, skip the expired subscription and move to the next

Thanks to Ivan Cauchi for the patch (slightly modified by me).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637535 13f79535-47bb-0310-9956-ffa450edef68
2014-11-08 09:38:09 +00:00
Jacques Le Roux b4030cbc48 I forgot to commit this fix
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637089 13f79535-47bb-0310-9956-ffa450edef68
2014-11-06 12:45:32 +00:00
Adrian Crum 871ec276fb Fixed UtilProperties.java bug caused by removal of Javolution - https://issues.apache.org/jira/browse/OFBIZ-5857.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637064 13f79535-47bb-0310-9956-ffa450edef68
2014-11-06 10:08:40 +00:00
Adrian Crum 5f5f4fe087 Comment out recently added entity test because it is still having problems. I will look into this more later.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637063 13f79535-47bb-0310-9956-ffa450edef68
2014-11-06 10:07:32 +00:00
Adrian Crum da478e9144 Fix JS bug caused by recent screen widget refactoring - https://issues.apache.org/jira/browse/OFBIZ-5856.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637050 13f79535-47bb-0310-9956-ffa450edef68
2014-11-06 08:24:53 +00:00
Scott Gray 63f5adf671 Fix bug in EntityQuery where the moment specified in filterByDate(moment) was not being honoured. Adds a new method filterByDate(Timestamp, String...) to allow a moment to be specified when explicitly specifying filterByFieldNames. Thanks to Pritam Kute for the report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636970 13f79535-47bb-0310-9956-ffa450edef68
2014-11-05 21:43:39 +00:00
Adrian Crum 3e987a2402 Try to fix intermittent entity test failures.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636896 13f79535-47bb-0310-9956-ffa450edef68
2014-11-05 15:30:47 +00:00
Jacques Le Roux e511130439 Fixes the Poodle vulnerability following indications from "The Poodle fixer" at https://issues.apache.org/jira/browse/OFBIZ-5848
Note that this fix requires to use at least Tomcat 6.0.32 as explained at https://blogs.atlassian.com/2014/10/ssl-poodle/#comment-190966

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636869 13f79535-47bb-0310-9956-ffa450edef68
2014-11-05 13:19:10 +00:00
Jacques Le Roux 3e0382835b Fixes the Poodle vulnerability following indications from "The Poodle fixer" at https://issues.apache.org/jira/browse/OFBIZ-5848
We will certainly have to evolve this in the future because this correction forces the protocol to TLSv1.2

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636864 13f79535-47bb-0310-9956-ffa450edef68
2014-11-05 13:06:19 +00:00
Hans Bakker f67e5b0e87 role not checked for existence: https://issues.apache.org/jira/browse/OFBIZ-5845
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636495 13f79535-47bb-0310-9956-ffa450edef68
2014-11-04 02:45:29 +00:00
Hans Bakker a227fcfd04 use of wrong field name: https://issues.apache.org/jira/browse/OFBIZ-5846
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636493 13f79535-47bb-0310-9956-ffa450edef68
2014-11-04 02:39:56 +00:00
Adrian Crum f25e674873 Extract rendering code from ModelForm.java to rendering classes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636437 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 20:46:34 +00:00
Adrian Crum 46fb78ef34 Remove unused methods from ModelForm.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636383 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 16:29:40 +00:00
Adrian Crum 087c291998 Cleaned up ModelScreen.java transaction handling - https://issues.apache.org/jira/browse/OFBIZ-4278.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636374 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 15:32:11 +00:00
Jacopo Cappellato 66daa32f1a Cleaned up and inproved the code that integrates Groovy in the OFBiz framework:
* Groovy services and Groovy events now use the same util methods from GroovyUtil to parse/execute the scripts
* the script base class is now specified in the base/config/groovy.parameter file rather than in the serviceengine.xml
* the same util methods (DSL) are now available to all Groovy scripts (executed as services, events or widget actions)
* removed a series of unused methods in the GroovyUtil class



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636346 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 13:15:29 +00:00
Adrian Crum 8e57e863f0 Major overhaul of ModelForm.java:
1. Class and its nested classes were not thread-safe.
2. Bugs caused by C&P errors.
3. The "extends" feature had problems:
  3.1 Only a few class members were inherited from the parent form.
  3.2 Child forms modified the state of the parent form.
4. Bad null/empty checking.
5. Inefficient code.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636339 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 12:42:03 +00:00
Jacques Le Roux 2aa558c25e Now that some incompatible changes have been committed in the specialpurpose components in trunk HEAD we can't no longer run the specialpurpose components in R13.07
Good to have that in svn history though.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636298 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 09:47:04 +00:00
Adrian Crum 833f3b4dad Bug fix and code cleanup in form widget:
1. Cache keys must include delegator name. Multiple forms based on the same entity name might be completely different due to the delegator being used.

2. Do not hold references to ModelReader and DispatchContext after construction.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636158 13f79535-47bb-0310-9956-ffa450edef68
2014-11-02 17:48:20 +00:00