Commit Graph
27737 Commits
Author SHA1 Message Date
Jacopo Cappellato 7bc6142674 Set log levels for Freemarker (to disable all log messages under warning) to resolve performance issue in newer releases of freemarker.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308355 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 13:58:14 +00:00
Jacques Le Roux da5cc09fd3 A patch from Markus M. May "Allows build.xml in hot-deploy folder to build components in a specific order" https://issues.apache.org/jira/browse/OFBIZ-4736
In the current build.xml in the ofbiz-Home-folder, the build target is executed for each subdirectory (framework, application, specialpurpose) with the fileset:

<filelist dir="." files="specialpurpose/build.xml"/>

Only for the hot-deploy folder the fileset is quite different:

<fileset dir="${basedir}/hot-deploy" casesensitive="no">
<exclude name="disabled/**"/>
<include name="*/build.xml"/>
</fileset>

This is calling the build.xml directly in the hot-deploy components, which is an error, if you do have several dependent components in there, which needs to get build in the right order. I propose to use the following filelist:

<filelist dir="." files="hot-deploy/build.xml"/>

jleroux: a check is done, if no build.xml file is present in hot-deploy dir, then the build.xml files - if present - in hot-deploy sub-dirs will be used. So the previous, simpler, behaviour is kept as long as you don't need to build hot-deploy components in a specific order.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308336 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 13:09:37 +00:00
Erwan de Ferrieres c5c75df222 Seems using ./ant for running install and tests is not detecting the class for cobertura. Testing if the jar is present is making it right. Resolves OFBIZ-4757
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308301 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 11:16:10 +00:00
Jacques Le Roux 8baaab2b1a A patch from Francis ANDRE "Add missing ConverterLoader to framework/entity/src/META-INF/services/org.ofbiz.base.conversion.ConverterLoader for running FOBiz in debug under Eclipse https://issues.apache.org/jira/browse/OFBIZ-4777
In order to run OFBiz in debug mode under Eclipse with hot class reloading, one needs to add the following Converters to the services framework/entity/src/META-INF/services/org.ofbiz.base.conversion.ConverterLoader because they are added at build time by the build.xml of the framework. Thus, they are missing when running OFBiz as an full Eclipse debug launcher.

org.ofbiz.base.conversion.BooleanConverters
org.ofbiz.base.conversion.CollectionConverters
org.ofbiz.base.conversion.DateTimeConverters
org.ofbiz.base.conversion.JSONConverters
org.ofbiz.base.conversion.MiscConverters
org.ofbiz.base.conversion.NetConverters
org.ofbiz.base.conversion.NumberConverters

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308085 13f79535-47bb-0310-9956-ffa450edef68
2012-04-01 11:39:34 +00:00
Jacques Le Roux afde12093c A patch from Francis ANDRE "Avoid exiting ofbiz when running in debug mode,i.e with -DDEBUG=true set on theJVM arguments" https://issues.apache.org/jira/browse/OFBIZ-4776
This is a patch for allowing to run OFBiz in debug mode,i.e with -DDEBUG=true on the JVM arguments, and avoid to exit from the process when a Error or a StartupException occurs.

jleroux: replaced tabs by 4 spaces

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308078 13f79535-47bb-0310-9956-ffa450edef68
2012-04-01 11:27:45 +00:00
Jacques Le Roux a6018705ff A patch from Sebastian Leitner https://issues.apache.org/jira/browse/OFBIZ-4766 "PriceRule applies action to wrong priceType"
If you create a PriceRule and add an action of type "PRICE_POD" (Percent of default price) I read this as:
"take the default price and give an amount of x% to that"

These rules are applied within the service "calculateProductPrice" (specifically in PriceServices.calcPriceResultFromRules). It calculates the amount of discount using the default price (as specified by the action of the rule). But then it adds this discount to the listPrice instead of the defaultPrice.

An example:
listPrice = 100,
defaultPrice = 10,
rule says you give 10% of defaultPrice,
modifyAmount = -1 (this is the correct discount amount)
result would be 100-1 = 99.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308063 13f79535-47bb-0310-9956-ffa450edef68
2012-04-01 10:35:09 +00:00
Jacques Le Roux 8b2a581061 Replaces width="200" by style="cssImgXLarge" for images
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307920 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 22:08:39 +00:00
Jacques Le Roux 2ab258f919 A patch from BREMA Dev Team "email password broken" https://issues.apache.org/jira/browse/OFBIZ-3790
There is no productStoreId in the session for an user of a backend application, and ProductStoreEmailSetting is not available. This is the reason.
However we can use default template and default sender's address from general.properties in this case.
Also removes some dead code.

jleroux: this uses  "general.properties", "defaultFromEmailAddress". So to work correctly it still needs "defaultFromEmailAddress" (default =ofbiztest@example.com), "mail.smtp.relay.host" (default =localhost) and such to be set correctly... In other words the message "A new password has been created and sent to you. Please check your Email." could even more misleading if people are not aware about setting SMTP


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307895 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 20:35:42 +00:00
Jacques Le Roux 7dc9f081cd A patch from Pierre Smits "Include meta tag 'generator' in the ecommerce theme" https://issues.apache.org/jira/browse/OFBIZ-4544
Includes the tag <meta name="generator" content="Apache OFBiz - eCommerce"> into the eCommerce theme. 
This will help improve visibility when searching for implemented webshops.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307848 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 16:57:36 +00:00
Erwan de Ferrieres ffd9fc86b7 no functional change: removing an array of 1 element
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307836 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 15:45:12 +00:00
Jacques Le Roux bf2feb63bd A patch from Nicolas Malin "add possibility to sort field at the end form on widget form" https://issues.apache.org/jira/browse/OFBIZ-4518
When you use sort-field, you reorder only the form begin or you need list all file if you want reordered the end form.

Example

    <form>
    <field name="a"/>
    <field name="b"/>
    <field name="c"/>
    <field name="d"/>
    </form>

If you want put c at the end :

    <form>
    <field name="a"/>
    <field name="b"/>
    <field name="c"/>
    <field name="d"/>
    <sort-order>
    <sort-field name="a"/>
    <sort-field name="b"/>
    <sort-field name="d"/>
    <sort-field name="c"/>
    </sort-order>
    </form>

with the patch

    <form>
    <field name="a"/>
    <field name="b"/>
    <field name="c"/>
    <field name="d"/>
    <sort-order>
    <last-field name="c"/>
    </sort-order>
    </form>

It's really useful for inherited forms when you adding new fields, you just use last-field for instance for submit button.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307784 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 12:10:07 +00:00
Adrian Crum e1a03aee17 Small code cleanup in ObjectType.simpleTypeConvert, added support for null target type (returns original object). Updated unit tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307551 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 17:48:32 +00:00
Hans Bakker 2874803c43 property to either show currency decimals when zero or not
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307303 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 08:29:28 +00:00
Hans Bakker a582973d78 promotions not added to ordertotal: corrected
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307302 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 08:25:41 +00:00
Jacopo Cappellato 4dfcf989fb Implemented new Freemarker transform to set a context variable.
The transform is now used to pass the "postalAddress" to the context of the postal address formatter screen.
This should fix the issue, reported by Chatree, that prevented to render the localized address when the screen was rendered from the send mail service (no request object was available).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307288 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 07:28:39 +00:00
Hans Bakker 3795166f01 enable searching orders by payment status
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307283 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 06:38:11 +00:00
Erwan de Ferrieres 1832d2ac8b OFBIZ-4770 - editCalEvent not use label system on status drop-down - a patch from Nicolas Malin
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307097 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 20:38:21 +00:00
Erwan de Ferrieres bba2048fd4 A patch from Pierre Smits - Assigning a resource to a task is not reflected in the resource's tasks view - OFBIZ-3638
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307092 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 20:18:16 +00:00
Jacopo Cappellato c95ac05435 Attempt to update and simplify the quick start notes in the README file: your feedback is appreciated (please also help to improve the English). Thanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306778 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 10:04:39 +00:00
Jacopo Cappellato b0981990ee Added new ant task to start OFBiz as a process in the background: "run-batch".
Moved the "stop" task a few lines below to group together all the tasks dealing with the startup of OFBiz.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306777 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 10:02:35 +00:00
Jacopo Cappellato 6fb5a9a309 Upgrade to Groovy 1.8.6 (from Groovy 1.7.7).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306773 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 09:57:55 +00:00
Jacopo Cappellato 8c99e6b35e Upgrade to Groovy 1.8.6 (from Groovy 1.7.7).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306769 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 09:43:54 +00:00
Christian Geisert 85ee0b3a7d Finished German translation for OrderErrorUiLabels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306751 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 08:32:48 +00:00
Sascha Rodekamp 9cb01a05f3 If his/her gender is editable by a customer, the service "getPartyNameForDate" should include it if available (https://issues.apache.org/jira/browse/OFBIZ-3483). A patch from Seabastian Leitner: The service "getPartyNameForDate" returns the name and some personal data for a person for a specific date. If a person is able to edit its gender, I think it would be nice, if the service would also return the gender as an optional output-parameter, if it's available.
IMHO this makes sense, if you use the gender to find out the salutation.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306745 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 07:57:22 +00:00
Sascha Rodekamp 1ce82e8dfe ProductStoreCartAwareEvents: wrong check for website in setSessionProductStore (https://issues.apache.org/jira/browse/OFBIZ-4744). A patch from Michael Brohl: There's a duplicate check if the productStore is null instead of checking productStore and website in ProductStoreCartAwareEvents.setSessionProductStore.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306742 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 07:51:00 +00:00
Sascha Rodekamp a6ba1f9e5e runSubscriptionAutoReorders places duplicate orderIds (https://issues.apache.org/jira/browse/OFBIZ-4762) A patch from Sebastian Leitner: The services "runSubscriptionAutoReorders" runs every midnight by default. It checks for expired subscriptions and places a new order to extend them. It fills up a cart from the previous order and places the order.
It also sets the orderId of the old order at the cart, which is used during creation of the new order. According to this, no new order can be placed because of duplicate-entry exceptions from the database.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306732 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 07:28:30 +00:00
Erwan de Ferrieres 6bfac82574 this should not have been committed at rev 1306575, reverting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306577 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 20:33:00 +00:00
Erwan de Ferrieres fcff838a2c Updating Apache POI to the latest stable version
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306575 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 20:26:58 +00:00
Erwan de Ferrieres 029f6e9410 Removing usage some more iterators
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306568 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 20:18:13 +00:00
Erwan de Ferrieres 5d3e068922 ApplicationSessionCookieConfig.getSessionCookieName() is now deprecated and replaced by SessionConfig.getSessionCookieName()
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306175 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 05:19:29 +00:00
Jacopo Cappellato 6c49613480 OFBIZ-4715 Committed patch from Markus M. May to extend the country specific address formatter to PDF (fo.ftl).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305898 13f79535-47bb-0310-9956-ffa450edef68
2012-03-27 16:48:54 +00:00
Joseph Eckard f838604e0b ignore jetty session store directory
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305885 13f79535-47bb-0310-9956-ffa450edef68
2012-03-27 16:18:47 +00:00
Joseph Eckard addff35b64 enable HashSessionManager persistent sessions, by default they will be written to runtime/jetty/sessions (can be configured via a property)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305884 13f79535-47bb-0310-9956-ffa450edef68
2012-03-27 16:18:42 +00:00
Ashish Vijaywargiya 1d1f6dae2f Bug fix. Setting up transaction-timeout="7200" for updateOrderItems service. This problem comes into picture when you have large number of items in an order. For example: Suppose you have more then 100 _different_ items in the cart, each has large quantity and now you wanted to update any of the item quantity then you will observe transaction timeout issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305733 13f79535-47bb-0310-9956-ffa450edef68
2012-03-27 05:26:25 +00:00
Joseph Eckard b4b7b1b0a5 fixed typos in example jetty config, NIO connectors did not have the correct types
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305605 13f79535-47bb-0310-9956-ffa450edef68
2012-03-26 21:18:34 +00:00
Erwan de Ferrieres fdf00739ee I replaced too much while in order component at rev 1305309. Here are the right ones back
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305426 13f79535-47bb-0310-9956-ffa450edef68
2012-03-26 16:19:21 +00:00
Joseph Eckard b93711f4cb fixed copy/paste error with updated jetty libs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305417 13f79535-47bb-0310-9956-ffa450edef68
2012-03-26 15:59:32 +00:00
Jacques Le Roux 8f6004c2eb This was missing in r1305004
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305316 13f79535-47bb-0310-9956-ffa450edef68
2012-03-26 11:42:49 +00:00
Erwan de Ferrieres e027a23eb3 OFBIZ-4758 - Minor issue in .gitignore - a patch from Markus M. May
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305312 13f79535-47bb-0310-9956-ffa450edef68
2012-03-26 11:19:33 +00:00
Erwan de Ferrieres 55535e8a47 Replacement of iterators with for-each loops for order component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305309 13f79535-47bb-0310-9956-ffa450edef68
2012-03-26 11:08:11 +00:00
Erwan de Ferrieres a1074d4ea1 Replacement of iterators with for-each loops for product component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305308 13f79535-47bb-0310-9956-ffa450edef68
2012-03-26 11:06:08 +00:00
Jacques Le Roux bef9ffd272 A patch from K Sharad Bhushan "An issue on billing error messages display" https://issues.apache.org/jira/browse/OFBIZ-4736
Billing error messages are displayed in shipping address section, instead of billing address section

Just a element "id" change..

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305053 13f79535-47bb-0310-9956-ffa450edef68
2012-03-25 14:42:51 +00:00
Jacques Le Roux 1554be0379 A patch from Markus M. May "Add Product Reviews to the profile Screen" https://issues.apache.org/jira/browse/OFBIZ-4736
Currently there is no way for a customer to view her/his reviews created in the ecommerce application. This functionality is added with the attached patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305038 13f79535-47bb-0310-9956-ffa450edef68
2012-03-25 14:02:59 +00:00
Jacques Le Roux 231c289650 My user name on Windows is "Jacques Le Roux" I get a an exception when creating shopping list cookie. This is because <<if the cookie name contains illegal characters (for example, a comma, space, or semicolon) or it is one of the tokens reserved for use by the cookie protocol>> http://docs.oracle.com/javaee/6/api/javax/servlet/http/Cookie.html
This fixes it (I did not handle comma not semicolon, I don't think any name use them)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305033 13f79535-47bb-0310-9956-ffa450edef68
2012-03-25 13:44:42 +00:00
Jacques Le Roux f105261233 A patch from Atul Vani "When changing picklists status to something invalid, user friendly error message should be displayed." https://issues.apache.org/jira/browse/OFBIZ-4579
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305025 13f79535-47bb-0310-9956-ffa450edef68
2012-03-25 13:14:12 +00:00
Jacques Le Roux 7d943cb341 A patch from Anne Jessel "Support validation of resource xml files" https://issues.apache.org/jira/browse/OFBIZ-4723
The xsd for the resource xml files is invalid. In addition, the format of the value of the xml:lang attribute in resource xml files is invalid, according to the xml standard.

The attached patch:

    provides a valid xsd
    updates UtilProperties and the Label Manager to deal with the correct formatting of the xml:lang value, while still working with the old format, following Adrian Crum's recommendation on the mailing list
    includes simple unit tests for UtilProperties to ensure it does work with both formats
    changes the Label Manager to include a reference to the new xsd, and to use the correct format of the xml:lang value, when writing a resource xml file.

Some minor code cleanups to these files.

jleroux: the base test suite was successfully run locally once UtilIOTests have been commented out (still an issue with it on Windows)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305004 13f79535-47bb-0310-9956-ffa450edef68
2012-03-25 11:07:57 +00:00
Jacques Le Roux 2086a40026 Moves ofbiz.aptana.js.format.xml to tools
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305000 13f79535-47bb-0310-9956-ffa450edef68
2012-03-25 09:46:30 +00:00
Jacopo Cappellato a61f23dd70 * added new ant task, named "stop", to stop OFBiz (same purpose of stopofbiz.sh/bat)
* OFBiz admin port and key are now passed as system properties to the "run", "run-debug" and "stop" tasks: the three tasks are now more consistent with the platform dependent startofbiz.sh/bat and stopofbiz.sh/bat scripts
* start/stop tasks are now grouped under the same section of the build.xml file; added a new section for data setup scripts (no functional changes)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304982 13f79535-47bb-0310-9956-ffa450edef68
2012-03-25 06:30:57 +00:00
Hans Bakker 0c83348161 reverting revision 1304679 and 1304687, however leaving the original startofbiz.sh and stopofbiz.sh in the root deirectory, this in order not to block furher development
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304965 13f79535-47bb-0310-9956-ffa450edef68
2012-03-24 23:46:04 +00:00
Jacques Le Roux 03559e12ab Reverts r1304715 and re-add .idea
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304738 13f79535-47bb-0310-9956-ffa450edef68
2012-03-24 09:39:04 +00:00