Commit Graph
27737 Commits
Author SHA1 Message Date
Adrian Crum df526ee5cf Remove Javolution from the testtools component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635907 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 09:31:51 +00:00
Adrian Crum c039bb0330 Remove Javolution from the entityext component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635906 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 09:31:06 +00:00
Jacopo Cappellato 3552f65800 Merged json-integration-refactoring into trunk:
* moved the json-lib jar (json-lib-2.2.3-jdk15.jar) from the framework/webapp to the framework/base component
* removed the SQL select Parser.jj (parser definition) and its unit tests: it was not used (and never used) by any OFBiz code
* removed the JSON.jj (parser definition) and its unit tests: it was not used (and never used) by any OFBiz code apart from the JSON Converters (now migrated to json-lib, see next items in this list) some utility methods in UtilIO.java (that have been removed too because they have never been used in OFBiz) 
* removed the JavaCC jar and related ant scripts because no more needed after the removal of Parser.jj and JSON.jj
* converted the JSONConverter code that was based on JSON.jj to Jackson
* added a new class org.ofbiz.base.lang.JSON that have been contributed by Adrian Crum that is a facade for simplifying the client code and for hiding the specific JSON library being used
* removed an unused method: ImageManagementServices.toJsonObject(...)
* added TestBooleanConverters to the list of tests
* new unit tests for the new JSON converters
* refactored Ajax code in applications to use the common request json response rather than a custom method
* OFBIZ-5790 Implemented ability to call a service event by passing its input parameters in the request body as JSON data. These classes provide a simple mechanism, based on the request's content type, that can be extended to support other formats (e.g. XML).

This commit resolves OFBIZ-4572, OFBIZ-3365, OFBIZ-5751, OFBIZ-5790



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635901 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 09:06:42 +00:00
Ashish Vijaywargiya e6600ee704 Applied patch from jira issue - OFBIZ-5842.
============================================
As we have Entity Query Builder implemented in trunk (OFBIZ-4053) and now we should add Junit tests for its methods.

As per initial analyses, we can write Junit tests for following methods of Entity Query Builder:

1. queryList()
2. queryFirst()
3. queryCount()
4. queryOne()
5. distinct()
6. filterByDate()
7. orderBy()
8. select()
9. cursorForwardOnly()
10. cursorScrollSensitive()
11. cursorScrollInSensitive()
12. fetchSize()
13. maxRows()
14. cache()
15. queryIterator()
=============================================
Thanks Arun for the contribution. 
Thanks Scott, Jacopo and Adrian for your help in reviewing the patch content. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635894 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 05:59:31 +00:00
Adrian Crum b887db4aef Remove Javolution from the widgets component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635878 13f79535-47bb-0310-9956-ffa450edef68
2014-10-31 23:13:03 +00:00
Adrian Crum d6f7e2aa5a Fixup for my previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635877 13f79535-47bb-0310-9956-ffa450edef68
2014-10-31 23:08:29 +00:00
Adrian Crum 159734866e Remove Javolution from the service component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635860 13f79535-47bb-0310-9956-ffa450edef68
2014-10-31 20:45:45 +00:00
Adrian Crum 79dc510f05 Remove Javolution from most of the base component. I didn't do the converters to avoid merge conflicts with the JSON branch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635846 13f79535-47bb-0310-9956-ffa450edef68
2014-10-31 19:29:46 +00:00
Adrian Crum 38a96bab6c Remove Javolution from the common component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635816 13f79535-47bb-0310-9956-ffa450edef68
2014-10-31 17:13:45 +00:00
Jacques Le Roux cb367d0dff Comments out <log always> logs found in ScrumServices.xml. I guess they were forgotten. Found in the error.log where <log always> also shows as FATAL (weird but I did not check why, can be useful also as proved here :D )
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635719 13f79535-47bb-0310-9956-ffa450edef68
2014-10-31 08:18:05 +00:00
Jacques Le Roux 0bcf05380b Commit for https://issues.apache.org/jira/browse/OFBIZ-5843
Re-running the same load test with a service call proves that the problem was not in the service call but only in the minilang implementation. So putting back this part.

There are more work to do as suggested Scott on dev ML: the call could be done in the same transaction right before committing, to reduce the amount of time the lock is held. But for now it's enough

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635567 13f79535-47bb-0310-9956-ffa450edef68
2014-10-30 18:03:43 +00:00
Scott Gray 44e2c4fda1 Regex search/replace for delegator.findOne() to EntityQuery.queryOne()
Apologies for the large commit.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635383 13f79535-47bb-0310-9956-ffa450edef68
2014-10-30 04:18:05 +00:00
Scott Gray caec934e1a Partially convert ordermgr component's java files to EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635382 13f79535-47bb-0310-9956-ffa450edef68
2014-10-30 04:16:45 +00:00
Scott Gray 2840ebab61 Convert marketing component's java files to EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635381 13f79535-47bb-0310-9956-ffa450edef68
2014-10-30 04:16:39 +00:00
Scott Gray a0ab1ab53e Convert manufacturing app's java files to EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635380 13f79535-47bb-0310-9956-ffa450edef68
2014-10-30 04:16:33 +00:00
Jacopo Cappellato 77e602dc99 Fixes for the "Did you know?" screenlet in ecommerce that was throwing errors after Scott's recent fix to a content related method (the fix has exposed the data issues).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635232 13f79535-47bb-0310-9956-ffa450edef68
2014-10-29 18:02:51 +00:00
Jacques Le Roux 83615e50af Commit for https://issues.apache.org/jira/browse/OFBIZ-5843
At r1635192, I forgot to remove the Minilang implementation of countProductQuantityOrdered

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635219 13f79535-47bb-0310-9956-ffa450edef68
2014-10-29 17:34:07 +00:00
Jacques Le Roux 8c0a2b1ddf Commit for https://issues.apache.org/jira/browse/OFBIZ-5843
The storeOrder service, implemented by the OrderService.createOrder() method, synchronously calls the countProductQuantityOrdered service implemented in Minilang. OOTB, the countProductQuantityOrdered service is only called by the storeOrder service implementation. It's called inside a loop on orderItems.

While intentionally load testing a custom project with JMeter on a weak m1.small AWS machine, I noticed the overhead of the service call for each order item iteration was significant on this slow machine. With only 30 concurrent users the process was blocked by  a timeout on the countProductQuantityOrdered service.

I then decided to transform the minilang code into an OrderService.countProductQuantityOrdered() method that can be directly called inside OrderService.createOrder() and also implements the countProductQuantityOrdered service. Hence it avoids the overhead of the  minilang service calls in loop while still providing a countProductQuantityOrdered service for possible external uses. For that I moved the definition from Product component to Order component to avoid the hard coded dependency of Order to Product. I then did not cross issues with the same load test.

I also added a test for the countProductQuantityOrdered service by adding an order item of a virtual product (GZ-1006-1) in SalesOrderTest.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635192 13f79535-47bb-0310-9956-ffa450edef68
2014-10-29 16:37:40 +00:00
Jacques Le Roux 39c29b6092 A patch from Pierre Smits for "Update GeoData.xml with Dutch Postal Code format" https://issues.apache.org/jira/browse/OFBIZ-5841
Updates the GeoData.xml type data with the reg-exp for Dutch postal codes

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1634991 13f79535-47bb-0310-9956-ffa450edef68
2014-10-28 21:14:41 +00:00
Scott Gray 306bfa48e6 Add filterByDate(Date) method
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1634039 13f79535-47bb-0310-9956-ffa450edef68
2014-10-24 09:56:43 +00:00
Scott Gray 32a9078e7b Convert humanres component's java files from Delegator usage to EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1634038 13f79535-47bb-0310-9956-ffa450edef68
2014-10-24 09:39:44 +00:00
Scott Gray 96cd99914e Remove unnecessary imports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1634027 13f79535-47bb-0310-9956-ffa450edef68
2014-10-24 08:28:47 +00:00
Scott Gray dab58e739b Convert content app's java file from Delegator usage to EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1634024 13f79535-47bb-0310-9956-ffa450edef68
2014-10-24 08:22:56 +00:00
Jacopo Cappellato b136187618 Fixed two typos in a comment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633781 13f79535-47bb-0310-9956-ffa450edef68
2014-10-23 10:01:06 +00:00
Jacopo Cappellato 99a72aff4a Some modifications to the default configuration of log4j2:
1) added a comment to summarize the default configuration, with a reference to the online log4j2 documentation for further customizations
2) added a new appender for errors (or greater); implemented using a filter to keep the logger definition as clean as possible
3) removed the external appender because the amount of log statements (warnings or greater) from external jars is not large and should not cause much confusion if we keep them with OFBiz log statements
4) increased the number of rolling files for ofbiz.log to 10
5) changed date format to "yyyy-mm-dd hh:mm:ss.sss"


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633550 13f79535-47bb-0310-9956-ffa450edef68
2014-10-22 07:50:08 +00:00
Jacopo Cappellato aada10a520 Removed 4 no more needed configuration properties (and associated fields).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633380 13f79535-47bb-0310-9956-ffa450edef68
2014-10-21 13:53:24 +00:00
Jacopo Cappellato 8614802ac8 Removed unused secas.xml file (containing one commented out seca rule).
I discovered this issue a few weeks ago and reported it to the mailing list; the same issue has been recently reported by Pierre Smits in OFBIZ-5818.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633362 13f79535-47bb-0310-9956-ffa450edef68
2014-10-21 12:46:31 +00:00
Scott Gray c638cf936b Fix NPE when filtering by date without having specified a where EntityCondition. Thanks to Arun Patidar for the report.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633218 13f79535-47bb-0310-9956-ffa450edef68
2014-10-20 20:10:27 +00:00
Scott Gray 6b34697a86 Remove another duplicated Content record
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633217 13f79535-47bb-0310-9956-ffa450edef68
2014-10-20 20:10:11 +00:00
Jacques Le Roux fac16cdff6 During their last bug crush the HMW missed those (related to OFBIZ-5783 and OFBIZ-4606)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633188 13f79535-47bb-0310-9956-ffa450edef68
2014-10-20 17:25:08 +00:00
Jacopo Cappellato ac7bfdfbed Cleaned up the way the classloaders are setup at startup by removing duplicate logic and responsibilities between the start and base components.
Before this change the following classloader hierarchy was setup:
1) the "application" classloader for the "start" component
2) one "native lib" classloader for the "base" component
3) one "native lib" classloader for the all the other (non "base") framework/application/specialpurpose/hot-deploy components
4) one "web app" classloader for each of the webapplications

After this commit the hierarchy is simplified by merging #2 and #3:
a) the "application" classloader for the "start" component
b) one "native lib" classloader for the all the framework/application/specialpurpose/hot-deploy components (including the "base" component)
c) one "web app" classloader for each of the webapplications

This has been achieved by merging the code that was setting up classloader #2 in the start component (for the "base" component) with the code that was setting up the classloader #3 in the base component: now all the code is in the start component.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633182 13f79535-47bb-0310-9956-ffa450edef68
2014-10-20 16:13:33 +00:00
Jacques Le Roux d1d0d3b61e A patch from Deepak Dixit for "The updation and deletion of content meta data tab is not working.Needs a change of entity ContentMetaData." https://issues.apache.org/jira/browse/OFBIZ-4927
MetaDataValue is changed from primary key to non primary key as the value can be updated.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633100 13f79535-47bb-0310-9956-ffa450edef68
2014-10-20 11:06:59 +00:00
Ashish Vijaywargiya 63349b6a5f Applied patch from jira issue - OFBIZ-3382 - inter-app hyperlink generates incorrect url.
Thanks Pranay for the contribution and thanks Nathan for reporting the issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632803 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 15:02:12 +00:00
Ashish Vijaywargiya 44ce4114b6 Applied patch from jira issue - OFBIZ-4668 - CommunicationEventAndRole entity: Field with name custRequestDate not found.
==============================================================================
when displaying this portal page:
https://localhost:8443/myportal/control/main?portalPageId=MYPORTAL_EMPLOYEE0&parentPortalPageId=MYPORTAL_EMPLOYEE

this message is thrown to the console:
Message: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [executeFind]: Error running Find on the CommunicationEventAndRole entity: Field with name custRequestDate not found in the CommunicationEventAndRole Entity
==============================================================================
Thanks Mridul for the contribution and thanks Erwan for creating the issue. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632801 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 14:38:46 +00:00
Ashish Vijaywargiya 5846ffcaa7 Applied patch from jira issue - OFBIZ-5826 - Shipper Account screen not rendering shipper accounts.
===========================================
Here is the steps to regenerate issue:
{code}
<PortalPagePortlet portalPageId="PartyProfile" portalPortletId="ShipperAccount" portletSeqId="00001" columnSeqId="00001" sequenceNum="7"/>
{code}

Upload the PortalPagePortlet data for shipper Account, and go to viewprofile screen. Now add shipper account from shipper account screen.

Expected Result: Newly added/ all shipper account of party should be listed under shipper account screen.

Actual Result:
No shipper accounts are listing.
===========================================
Thanks Deepak for the contribution. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632797 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 14:27:19 +00:00
Anil Patel a828e60213 [OFBIZ-3329] Removing framework code on resources in commonext.
Thanks Divesh and Mridul for helping with resuluation.
Thanks Adrian for reporting it. 
Thanks Chris Snow for reporting the issue

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632793 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 14:11:50 +00:00
Ashish Vijaywargiya 0a9e82d6e9 Applied patch from jira issue - OFBIZ-5714 - Comment does not save.
===========================================================
1. find P.O.
2. select approaved p.o.
3. edit items
4 add item (at bottom of screen)
5. Comment does not save.
Note! shouldn't the comment be displayed on some of the P.O. screens?
I only know it does not save as I edited the .FTL on viewpo and pdf to include comment. Comments from the orignal create P.O. show up, ALso should be able to edit a comment, when edit items is entered.
===========================================================
Thanks Joel for creating the issue and Thanks Akash for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632777 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 12:17:25 +00:00
Ashish Vijaywargiya cd56b25de3 Applied patch from jira issue - OFBIZ-5783 - Shipment Box Type selection should be at package level instead of item level on Pack Order Screen.\
=======================================================================
The Shipment Box Type selection is at line item level on Pack Order screen where the package selection for each order item is made. It should instead be at package level next to the package weight input box.

Also, ShipmentBoxType values are supported only for USPS, which is hard coded in PackOrder.groovy.

There is a bug reported in OFBIZ-4606 for Release 11.04 but exists in Trunk as well. It should be fixed if we make the above change.
=======================================================================
Thanks Mridul for creating the issue and providing the patch for the same. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632772 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 11:46:24 +00:00
Anil Patel 9b6f4e822c [OFBIZ-2618] Applying patch contributed by Arun Patidar. Thanks Arun for updated fix.
Thanks BJ for reporting the issue and providing first patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632764 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 11:35:58 +00:00
Ashish Vijaywargiya 801636607d Applied patch from jira issue - OFBIZ-4528 - Out of stock products screw up the pagination during category browsing.
===================================================================
Pagination is handled in getProductCategoryAndLimitedMembers
Then the out of stock filtering is done in CategoryDetail.groovy.
Hence the pagination is screwed up. Certain pages might show less records or no records based upon data condition.
===================================================================
Thanks Arun for the contribution and Thanks Kiran for creating the issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632750 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 10:43:59 +00:00
Ashish Vijaywargiya b0dbca57c2 I forgot to commit a file in one of my recent commit r1626425. Committing it now.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632747 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 09:29:33 +00:00
Ashish Vijaywargiya 37dc0685db Applied patch from jira issue - OFBIZ-5824 - Error in communication screen while perfom sorting.
=========================================================================
In partymgr contrller.xml, we have view request named "ViewCommunicationEvent", and this request call an service event, due to this when we try to perform sorting on Child Communication Events, Customer Request List or any other screen over Communication screen then it will thorw following exception:

org.ofbiz.webapp.event.EventHandlerException: Found URL parameter [communicationEventId] passed to secure (https) request-map with uri [ViewCommunicationEvent] with an event that calls service [setCommEventRoleToRead]; this is not allowed for security reasons! The data should be encrypted by making it part of the request body (a form field) instead of the request URL. Moreover it would be kind if you could create a Jira sub-task of https://issues.apache.org/jira/browse/OFBIZ-2330 (check before if a sub-task for this error does not exist). If you are not sure how to create a Jira issue please have a look before at http://cwiki.apache.org/confluence/x/JIB2 Thank you in advance for your help.
 

Also due to this service event call on view request entry we can't open the communication events in new tab. Ideally this service should be call in screen context instead view request.

=====================================

Thanks Deepak for reporting the issue and providing the patch for the same. 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632745 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 09:17:05 +00:00
Ashish Vijaywargiya 78497d4497 Applied bug fix from jira issue - OFBIZ-5632 - Changing Visual theme in Order manager results in error message.
===========================================================
The reported issue has been observed in the order manager application. It happens when there's no shopping cart in the session.

Steps to test -
1. Try changing visual theme in the order manager application.

Observations -
1. Returns ERROR MESSAGE - org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen component://order/widget/ordermgr/OrderEntryOrderScreens.xml#quickFinalizeOrder: java.lang.IllegalArgumentException: Error running script at location [component://order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutPayment.groovy]: java.lang.NullPointerException: Cannot invoke method getRelated() on null object (Error running script at location [component://order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutPayment.groovy]: java.lang.NullPointerException: Cannot invoke method getRelated() on null object)

Thanks.
===========================================================

Thanks Vyom for reporting the issue and Thanks Pranay for providing the patch for the same. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632733 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 06:17:49 +00:00
Jacques Le Roux 05376298b4 Implements https://issues.apache.org/jira/browse/OFBIZ-5819 "Improve the build-dev ant target"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632421 13f79535-47bb-0310-9956-ffa450edef68
2014-10-16 19:35:32 +00:00
Jacques Le Roux 8c184be4c5 Fixes a missing import java.sql.Timestamp;
This does not appear in R13.07 => no needs for a Jira

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632235 13f79535-47bb-0310-9956-ffa450edef68
2014-10-16 08:19:18 +00:00
Scott Gray cf7cffbb72 Remove duplicated or unused content seed data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632202 13f79535-47bb-0310-9956-ffa450edef68
2014-10-16 02:16:11 +00:00
Scott Gray 04c9cde650 Remove duplicate PortalPagePortlet record
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632201 13f79535-47bb-0310-9956-ffa450edef68
2014-10-16 02:16:06 +00:00
Jacques Le Roux 7f84dde0d6 Check trunk for updates finally no longer done, restart all demos each morning at 3
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631989 13f79535-47bb-0310-9956-ffa450edef68
2014-10-15 10:14:13 +00:00
Scott Gray f01b2ef574 Improve filterByDate(Timestamp) to not filter by date when the passed in Timestamp is null. Better mimics the behavior of EntityUtil.filterByDate(Timestamp)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631963 13f79535-47bb-0310-9956-ffa450edef68
2014-10-15 07:35:24 +00:00
Scott Gray f4dc1f9e5c Add missing generics markup and remove suppress warnings annotation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631962 13f79535-47bb-0310-9956-ffa450edef68
2014-10-15 07:35:19 +00:00