Commit Graph
27737 Commits
Author SHA1 Message Date
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
Jacques Le Roux d5507e2673 An enhanced patch from Josip Almasi for "Can't mount root web app" https://issues.apache.org/jira/browse/OFBIZ-5799
After mounting ecommerce as root web app, I got ScreenRenderException, caused by StringIndexOutOfBoundsException: String index out of range: -1 
at  org.ofbiz.product.category.CatalogUrlServlet.makeCatalogUrl(CatalogUrlServlet.java:186)

Categories and products cannot be rendered.

jleroux: I added 2 other cases to Josip's patch.
Note: you could mount the ecommerce as root web app between R9.04 and R11.04 (included)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631203 13f79535-47bb-0310-9956-ffa450edef68
2014-10-12 16:28:31 +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 1520692f75 Complete conversion of accounting java files from delegator to EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1630980 13f79535-47bb-0310-9956-ffa450edef68
2014-10-10 20:30:30 +00:00
Scott Gray a8bfd316c8 Make use of EntityQuery.where(EntityCondition...)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1630979 13f79535-47bb-0310-9956-ffa450edef68
2014-10-10 20:30:18 +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
Jacques Le Roux 4c4e81c3b4 Removes a number of duplicated labels certainly introduced with https://issues.apache.org/jira/browse/OFBIZ-5737
There are still some, I reopen the Jira issue

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629726 13f79535-47bb-0310-9956-ffa450edef68
2014-10-06 18:21:09 +00:00
Scott Gray 4696ffcf18 Convert a few more classes to use EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629540 13f79535-47bb-0310-9956-ffa450edef68
2014-10-05 20:52:54 +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
Scott Gray 6df6796adc Remove worldpay from Eclipse classpath exclusion because it is built by ant and doesn't have 3rd party library dependencies. Also added missing scrum src folder.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629537 13f79535-47bb-0310-9956-ffa450edef68
2014-10-05 20:28:22 +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
Scott Gray 932ec153c1 Removed duplicate EntityListIterator query left by my EntityQuery conversion work. Thanks to Adrian Crum for the report.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629480 13f79535-47bb-0310-9956-ffa450edef68
2014-10-05 09:16:40 +00:00
Adrian Crum d5d4b3bbec Fixed a bug in the Find Invoice screen where the invoice currency was being ignored.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629426 13f79535-47bb-0310-9956-ffa450edef68
2014-10-04 17:25:27 +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
Jacques Le Roux 2f2d7c411b Better description for web.xml in ordermgr-js
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628940 13f79535-47bb-0310-9956-ffa450edef68
2014-10-02 11:19:37 +00:00
Jacques Le Roux a7676338b8 Adds an empty placeholder web.xml file under ordermgr-js/WEB-INF to prevent a warning message at start and (hopefully) an (at least) exception with sendMailFromScreen service as reported by Jacopo on dev ML.
This issue also exits in R13.07 and is related with r1612202 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628937 13f79535-47bb-0310-9956-ffa450edef68
2014-10-02 11:15:18 +00:00
Nicolas Malin c0219c79da Convert the ProdCatalog CRUD simple service to entity-auto
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628405 13f79535-47bb-0310-9956-ffa450edef68
2014-09-30 11:59:29 +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 69583cb00a First batch of conversions from direct Delegator use to EntityQuery queries
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628288 13f79535-47bb-0310-9956-ffa450edef68
2014-09-29 20:12:10 +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
Nicolas Malin 7816745013 correct ClassCastException: java.lang.Integer cannot be cast to java.lang.Long reported by Deepak Dixit. Problem raise through http://demo-trunk-ofbiz.apache.org/content/control/stream?contentId= where content is associate to ElectronicText data resource
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628167 13f79535-47bb-0310-9956-ffa450edef68
2014-09-29 12:14:25 +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
Nicolas Malin 7f403dd028 I converted CRUD service to entity-auto for :
ProductFeatureCategory
    ProductFeature
    ProductFeatureAppl
    ProductFeatureCategoryAppl
    ProductFeatureCatGrpAppl
    ProductFeatureGroup
    ProductFeatureType
    ProductFeatureApplAttr
    ProductFeaturePrice


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628100 13f79535-47bb-0310-9956-ffa450edef68
2014-09-28 20:45:08 +00:00
Jacques Le Roux e5c296c689 A patch from Anahita Goljahani for "Duplicated 'ALSO_BOUGHT' associations in product details page" https://issues.apache.org/jira/browse/OFBIZ-5782
I have noticed an undesired behavior when two products are associated by the "ALSO_BOUGHT" association type. 

Specifically, when a product, e.g., Tiny Gizmo (productId  = "GZ-1000"), is associated to another product, e.g., Micro Chrome Widget (productIdTo  = "WG-1111"), by setting productAssocTypeId equal to "ALSO_BOUGHT" in ProductAssoc, the Tiny Gizmo web page in the ecommerce site correctly shows the Micro Chrome Widget as "Customers who bought this item also bought:". Accordingly with the current software behavior, even if Micro Chrome Widget (productId = "WG-1111") was not explicitly  associated to Tiny Gizmo (productIdTo  = "GZ-1000"), also the Micro Chrome Widget web page shows Tiny Gizmo as "Customers who bought this item also bought:",  which may be useful in cases where the 'ALSO_BOUGHT' association is meant to be necessarily bidirectional, i.e., if prodA is associated to prodB, then prodB is associated to prodA and vice-versa. However, when the user wants to express the symmetric nature of the relationship by explicitly associating both Tiny Gizmo to Micro Chrome Widget and Micro Chrome Widget to Tiny Gizmo in ProductAssoc, the system erroneously shows the associated products twice, both in the Tiny Gizmo and Micro Chrome web pages.  

The undesired behavior can be reproduced as follows: 
# Run OFBiz with demo data
# import the following associations from the OFBiz  XML Data Import form
{code}
<ProductAssoc productId="GZ-1000" productIdTo="WG-1111" productAssocTypeId="ALSO_BOUGHT" fromDate="2014-09-02 12:00:00.000"/>
<ProductAssoc productId="WG-1111" productIdTo="GZ-1000" productAssocTypeId="ALSO_BOUGHT" fromDate="2014-09-02 12:00:00.000"/>
{code}
# click on Tiny Gizmo or Micro Chrome Widget from the main page of the ecommerce site. 

The attached patch modifies the above behavior as follows:
- if only "prodA" (productId = "prodA") is associated to "prodB" (productIdTo = "prodB") in ProductAssoc, and not vice-versa, only "prodA" web page shows "prodB" as "Customers who bought this item also bought:".   This means that the 'ALSO_BOUGHT' association type becomes not necessarily bidirectional by default, which is in accordance with most common algorithms for the automatic generation of "WHO BOUGHT X ALSO BOUGHT Y" recommendations that may produce bidirectional associations for some couple of products and not for others, based on conditional probabilities and actual users behavior;  
- in those specific cases in which the association is actually bidirectional for a certain couple of products (prodA, prodB), i.e., both 'prodA to prodB' and 'prodB to prodA' associations are present in ProductAssoc, associated products are shown only ones in prodA and prodB web pages.  

The patch simply sets the value of the parameter "bidirectional" to its default value, i.e., "false", when alsoBoughtProducts are collected by calling getAssociatedProducts() from applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductDetail.groovy.  


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628096 13f79535-47bb-0310-9956-ffa450edef68
2014-09-28 19:48:53 +00:00
Anil Patel cdd256649b [OFBIZ-3719] removing Debug statements I added, Sorry :)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628020 13f79535-47bb-0310-9956-ffa450edef68
2014-09-27 22:45:08 +00:00
Anil Patel 5c128c231d [OFBIZ-3719] Reverting DOCTYPE hardcoding from cmsevents. Giving control back to the template.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628015 13f79535-47bb-0310-9956-ffa450edef68
2014-09-27 22:38:02 +00:00
Anil Patel 1ea2d0a765 [OFBIZ-3719] Reverting DOCTYPE hardcoding from cmsevents. Giving control back to the template.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628014 13f79535-47bb-0310-9956-ffa450edef68
2014-09-27 22:37:46 +00:00
Nicolas Malin f7db074f8b First commit, start to remove unneeded space finally remove FastMap and FastList present on CommunicationEventServices.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628004 13f79535-47bb-0310-9956-ffa450edef68
2014-09-27 20:38:22 +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
Jacques Le Roux 6dcfd3e157 Removes trailing blanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627929 13f79535-47bb-0310-9956-ffa450edef68
2014-09-27 07:41:18 +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 49117e1c31 The "authz" code was removed long ago in rev. 1360283
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627812 13f79535-47bb-0310-9956-ffa450edef68
2014-09-26 15:41:58 +00:00
Jacopo Cappellato d428797b70 Some simplifications to the code introduced with my last commit: this will also simplify the backporting to release branches.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627776 13f79535-47bb-0310-9956-ffa450edef68
2014-09-26 13:12:07 +00:00
Jacopo Cappellato 8fc2c776eb The support for dynamic result names in field-to-result:
<field-to-result field="value" result-name="${key}"/>
is no more supported: converted minilang code that was still using this syntax and was broken by the refactoring.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627763 13f79535-47bb-0310-9956-ffa450edef68
2014-09-26 12:52:38 +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