Commit Graph
8242 Commits
Author SHA1 Message Date
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
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
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
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
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
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 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 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
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
Jacopo Cappellato e1c2fae001 Forgot to include the jars in my previous commit. Upgraded to the latest, now official, release of Freemarker: 2.3.21 Freemarker is now released under the Apache License 2.0
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631300 13f79535-47bb-0310-9956-ffa450edef68
2014-10-13 06:53:21 +00:00
Jacopo Cappellato 5e106b124d Upgraded to the latest, now official, release of Freemarker
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631299 13f79535-47bb-0310-9956-ffa450edef68
2014-10-13 06:45:42 +00:00
Scott Gray 827289c9bc Remove dead code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631019 13f79535-47bb-0310-9956-ffa450edef68
2014-10-11 04:52:32 +00:00
Scott Gray 13383b8abb Fix dead code warning by moving null check to the correct spot
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631018 13f79535-47bb-0310-9956-ffa450edef68
2014-10-11 04:48:12 +00:00
Scott Gray dec29460dd Parameter name correction
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1630983 13f79535-47bb-0310-9956-ffa450edef68
2014-10-10 20:39:09 +00:00
Scott Gray c4f1e66527 Add where(EntityCondition...) to EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1630978 13f79535-47bb-0310-9956-ffa450edef68
2014-10-10 20:30:13 +00:00
Jacques Le Roux f0592e695c Better French translation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1630226 13f79535-47bb-0310-9956-ffa450edef68
2014-10-08 20:21:38 +00:00
Nicolas Malin 37bb53af64 Add junit test to control entity-auto on create, update and delete to ensure no regression when the entity-auto engine will be improve (like OFBIZ-5800)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1630079 13f79535-47bb-0310-9956-ffa450edef68
2014-10-08 12:17:55 +00:00
Nicolas Malin 52d93e3ef3 No functional change, clean end line space
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629816 13f79535-47bb-0310-9956-ffa450edef68
2014-10-07 07:35:55 +00:00
Scott Gray 1d03a846a3 Add cache(boolean) method to EntityQuery to allow the cache to be used or not based on a boolean variable. Avoids the need to use an if block when the caching decision isn't hardcoded
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629782 13f79535-47bb-0310-9956-ffa450edef68
2014-10-06 22:48:40 +00:00
Scott Gray a7d534f589 Add EntityQuery support for filtering by one or more explicit from/thruDate field pairs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629538 13f79535-47bb-0310-9956-ffa450edef68
2014-10-05 20:28:25 +00:00
Nicolas Malin e775c0de17 Convert CRUD service to entity-auto for GoodIdentification, ProductAttribute, ProductGeo, ProductMeter, ProductMaint, ProductGlAccount, ProductAssoc and ProductKeyword. For this last, add StatusValidChange data for keyword to autorize from status KW_PENDING to KW_APPORVED and from status KW_PENDING to KW_DISAPPROVED. Related issue OFBIZ-5734
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629523 13f79535-47bb-0310-9956-ffa450edef68
2014-10-05 19:34:17 +00:00
Adrian Crum 1c27aea03e Fixed a bug in GenericDelegator where stack traces were logged when a sequence name didn't match an entity name.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629391 13f79535-47bb-0310-9956-ffa450edef68
2014-10-04 13:30:12 +00:00
Adrian Crum a9e240b333 Fix JavaDoc - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629388 13f79535-47bb-0310-9956-ffa450edef68
2014-10-04 13:19:11 +00:00
Adrian Crum c708db0104 Small fixup for my previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629385 13f79535-47bb-0310-9956-ffa450edef68
2014-10-04 13:02:45 +00:00
Adrian Crum 13f5288e84 Fixed a bug in Mini-language <field-to-result> element where nested expressions were not evaluated correctly. Reported by Jacopo on the dev mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629382 13f79535-47bb-0310-9956-ffa450edef68
2014-10-04 12:52:48 +00:00
Jacques Le Roux 9e683b1655 Fixes a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628986 13f79535-47bb-0310-9956-ffa450edef68
2014-10-02 14:53:01 +00:00
Jacopo Cappellato 81f333f845 Fixed a trivial typo.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628971 13f79535-47bb-0310-9956-ffa450edef68
2014-10-02 13:46:50 +00:00
Jacopo Cappellato a67d04c2ee Removed deprecated methods in the widget API; cleaned up a bunch of old commented out code; fixed formatting issues; some minor code improvements (no functional changes).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628361 13f79535-47bb-0310-9956-ffa450edef68
2014-09-30 06:20:29 +00:00
Scott Gray fcd7797209 Improved generics for where(List) so that a list of EntityExpr will be accepted. Fixes an issue where the runtime would select the where(Object...) method for a List of EntityExpr objects.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628287 13f79535-47bb-0310-9956-ffa450edef68
2014-09-29 20:12:04 +00:00
Jacopo Cappellato 3b8baced92 Upgraded freemarker to 2.3.21-rc02.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628130 13f79535-47bb-0310-9956-ffa450edef68
2014-09-29 07:37:46 +00:00
Scott Gray b0dbf709fa OFBIZ-4053 Implement an entity query builder to be used as a friendlier API for executing entity queries.
Entry point is the static EntityQuery.use(Delegator) method which will then return an EntityQuery instance whose methods support method chaining to set query options.
The query can then be executed using the first(), list(), iterator() and one() methods which respectively return:
- The first result from a result set
- The full list of results from a result set
- An EntityListIterator to iterate over a result set
- The single record from a query that will return only one record (such as a lookup by primary key)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627940 13f79535-47bb-0310-9956-ffa450edef68
2014-09-27 09:22:31 +00:00
Jacopo Cappellato 732855faa3 Because of the "negate" attribute the entity-test.jar used to contain all the non-test classes (already in entity.jar).
This fix should be the right way to go but please review this commit because the syntax of these custom ant tasks is rather cryptic to me.
 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627818 13f79535-47bb-0310-9956-ffa450edef68
2014-09-26 15:57:22 +00:00
Jacopo Cappellato 1084f48cdb JUnit test to prove that field-to-result doesn't work properly when result-name contains the a ${} field.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627718 13f79535-47bb-0310-9956-ffa450edef68
2014-09-26 06:56:27 +00:00
Jacopo Cappellato 19d7606913 Use the default value of the Tomcat connectors for the enableLookups parameter: this is false by default.
From Tomcat connector configurator documentation:
enableLookups
Set to true if you want calls to request.getRemoteHost() to perform DNS lookups in order to return the actual host name of the remote client. Set to false to skip the DNS lookup and return the IP address in String form instead (thereby improving performance). By default, DNS lookups are disabled.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627490 13f79535-47bb-0310-9956-ffa450edef68
2014-09-25 09:03:48 +00:00
Jacopo Cappellato 1bf6f051a5 Based on review and comments from Adrian Crum, re-added the max-worker-pool-size element (that was removed as part of the changes in commit 1627092) but with a new implementation that preserves all the cleanups done in rev. 1627092.
This new implementation should be slightly more flexible but with default setup will end up with the same behavior as before 1627092.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627489 13f79535-47bb-0310-9956-ffa450edef68
2014-09-25 08:55:42 +00:00
Jacques Le Roux 6e717f7bd0 A patch from Leon for "HttpClient does not support charset name with quotation mark around" https://issues.apache.org/jira/browse/OFBIZ-5787
In RFC2045 (Section 5.1) there is:
"Content-type: text/plain; charset=us-ascii (Plain text)
Content-type: text/plain; charset="us-ascii"
are completely equivalent".

In current revision, if the 'Content-Type' of http response includes the quotation mark around the charset name, HttpClient throws out unsupported encoding exception.

This patch removes quotation marks from charset name extracted from http response header.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627230 13f79535-47bb-0310-9956-ffa450edef68
2014-09-24 06:40:46 +00:00
Jacopo Cappellato adc41ad5bf Moved the thread pool executor object from GenericDAO to the DatabaseUtil class where it was actually used: this change simplifies the API and allows to shutdown the pool when it is no more needed.
Removed a series of methods that are no more needed after this refactoring or were not used.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627092 13f79535-47bb-0310-9956-ffa450edef68
2014-09-23 17:04:20 +00:00
Jacopo Cappellato c2b09a6027 Removed an old an unused class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627001 13f79535-47bb-0310-9956-ffa450edef68
2014-09-23 13:12:49 +00:00
Jacopo Cappellato d4c5b5112a Small code enhancement: use FixedThreadPool to run the "pulse" worker threads.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626993 13f79535-47bb-0310-9956-ffa450edef68
2014-09-23 12:59:13 +00:00
Jacopo Cappellato f14003d799 Removed a bunch of never used classes from the base/concurrent package.
Provided better settings for the thread pools to avoid to keep alive threads that are only needed at startup.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626977 13f79535-47bb-0310-9956-ffa450edef68
2014-09-23 10:52:29 +00:00
Jacopo Cappellato 3e5b24806e Removed some code that was not used by the CatalinaContainer.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626971 13f79535-47bb-0310-9956-ffa450edef68
2014-09-23 09:24:37 +00:00
Jacques Le Roux c19e450091 As suggested by Jacopo on dev ML moves the README file related to SSL certificate from framework/base/README to framework/base/config/README
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626881 13f79535-47bb-0310-9956-ffa450edef68
2014-09-22 19:48:37 +00:00
Jacques Le Roux 6833c2acd4 We agreed with Jacopo that the framework/base/cert directory is more misleading than helping. So this removes it.
I though keep the slightly expurgated README file for the sake of certificates creation history. I move it to framework/base

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626874 13f79535-47bb-0310-9956-ffa450edef68
2014-09-22 19:17:45 +00:00
Jacopo Cappellato bac3fd452f Explicitly setting the keyPass and keyAlias to the Tomcat connector: this is similar to keystorePass but is more flexible when the keystore contains multiple values.
In the log info, don't print the content of Connector parameters that may contain a password. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626677 13f79535-47bb-0310-9956-ffa450edef68
2014-09-22 07:19:41 +00:00
Jacopo Cappellato 2f234a01af Further improvements to the way we use the Tomcat startup API: removed the deprecated (will be removed in Tomcat 8) memory realm (not really used in OFBiz) and a series of minor adjustments.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626531 13f79535-47bb-0310-9956-ffa450edef68
2014-09-21 06:23:57 +00:00
Anil Patel 5d95b3522e [OFBIZ-5711] Nice catch. Thanks Rong Nguyen for reporting and Deepak Dixit for the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626464 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 15:53:08 +00:00
Ashish Vijaywargiya 3aee9fc009 Applied bug fix from jira issue - OFBIZ-254 - Noisy, Possibly Unnecessary Logging when a browser request is cancelled by the user.
Thanks Jacopo for reporting the issue and thanks Pranay for the contribution. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626458 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 15:33:34 +00:00
Ashish Vijaywargiya 44bc632d5a Applied patch from jira issue - OFBIZ-1524 - Improve the way CreditCard.cardType field is managed.
Thanks Akash Jain for the contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626425 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 12:16:37 +00:00