Commit Graph
1259 Commits
Author SHA1 Message Date
Erwan de Ferrieres 530e8847da Migration to Tomcat 6.0.32 due to a security issue in previous revisions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1070455 13f79535-47bb-0310-9956-ffa450edef68
2011-02-14 12:04:29 +00:00
Jacques Le Roux 13f879435f Revert r1070230, was a patch from Stephen Rufle "Blank year in UtilValidate.isYear should return false" (https://issues.apache.org/jira/browse/OFBIZ-4171) - OFBIZ-4171
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1070282 13f79535-47bb-0310-9956-ffa450edef68
2011-02-13 19:43:13 +00:00
Jacques Le Roux a259699bd7 A patch from Stephen Rufle "Blank year in UtilValidate.isYear should return false" (https://issues.apache.org/jira/browse/OFBIZ-4171) - OFBIZ-4171
UtilValidate.isYear returns true for a blank year which the calling function UtilValidate.isDate(String, String, String) tries to parse. This causes an exception to be thrown
ValidateMethod.java:96 :ERROR] [ValidateMethod.exec] Error in validation method isDateAfterToday of class org.ofbiz.base.util.UtilValidate: null
I found this error when trying to add a new credit card in the eCommerce checkout flow.
   1. Add a product to the cart
   2. login as any user I used "admin"
   3. Checkout Step "Shipping Address" (Step 1: Where shall we ship it?)
          * Click Next
   4. Checkout Step "Shipping Options" (Step 2: How shall we ship it?)
          * Choose "UPS Air"
          * Click Next
   5. Checkout Step "Payment Options" (Step 3: How shall you pay?)
   6. Create "Credit Card"
          * Fill Name
          * Card Type "Visa"
          * Card Number "4111111111111111"
          * Expiration Date Month drop-down 01
          * Expiration Date Year drop-down leave blank
          * Choose billing address
          * Click "Save" button

Should see "Error in validation method isDateAfterToday of class org.ofbiz.base.util.UtilValidate: null"

My fix is to change isYear, isMonth, and isDay to return false when a blank value is entered.
After I make my change the message is "The expiration date is before today"


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1070230 13f79535-47bb-0310-9956-ffa450edef68
2011-02-13 12:55:45 +00:00
Marco Risaliti 5680ef42bf Add a @SuppressWarning("serial") in GenericMapTest (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1069069 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 20:25:03 +00:00
Marco Risaliti 56664b11a9 Remove unused variable in SyncTTLObjectTest (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1069067 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 20:13:36 +00:00
Marco Risaliti 26009a9ca6 Remove unused variable in AsyncTTLObjectTest (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1069065 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 20:11:56 +00:00
Jacques Le Roux 3f6d0167f0 Update Groovy from 1.7.4 to 1.7.7
This version is required for Groovy++: http://code.google.com/p/groovypptest/wiki/HowDoesItWork

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068830 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 10:17:21 +00:00
Marco Risaliti 860d0537b2 Add a @SuppressWarning("serial") in FlexibleStringExpanderTests (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068616 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 22:19:01 +00:00
Marco Risaliti d5d75bda27 Add a @SuppressWarning("serial") from ObjectWrapper (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068580 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 21:07:37 +00:00
Marco Risaliti 8cd85c7a4c Remove an unused import in StringUtil (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068577 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:57:58 +00:00
Marco Risaliti a919ba2003 Remove some unnecessary suppress warning serial in UtilProperties (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068576 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:56:34 +00:00
Marco Risaliti 60d44422ef Remove an unused private variable of method containsAll in GenericMapCollection instead of suppress it as unused (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068507 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 18:29:35 +00:00
Marco Risaliti b18225f7b1 Remove an unused private method of JNDIConfigUtil instead of suppress it as unused (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068505 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 18:25:52 +00:00
Marco Risaliti c9099db25b Remove compilation warnings of an unused variable in GenericMapCollection (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068128 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 20:56:02 +00:00
Marco Risaliti d9a9fd2179 Remove unnecessary warning suppress into HardRefCacheLine (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068127 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 20:53:06 +00:00
Marco Risaliti e386c63015 Remove compilation warnings of an unused variable in ComparableRangeTests (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068125 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 20:50:33 +00:00
Marco Risaliti 4ea2300f38 Remove compilation warnings of an unused private method in JNDIConfigUtil (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068120 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 20:46:53 +00:00
Jacques Le Roux f2d7b941f7 As discussed on dev ML, by default comment out Beanshell and Groovy containers for security reasons
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1063235 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 11:35:04 +00:00
Jacques Le Roux 357eda99e0 Revert file commited by error at r1063228
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1063234 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 11:33:23 +00:00
Jacques Le Roux 41f04cefbb As discussed on dev ML, by default comment out Beanshell and Groovy containers for security reasons
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1063228 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 11:25:23 +00:00
Jacques Le Roux d42aaef2b8 A patch from René Scheibe "Groovy shell." (https://issues.apache.org/jira/browse/OFBIZ-3954) - OFBIZ-3954
A Groovysh container to connect to. Just do a 'telnet localhost 9991' and you have a fully fledged groovysh.
This is a Groovy equivalent to the already existing BeanShell container.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1062476 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 17:58:43 +00:00
Erwan de Ferrieres ec5adee63b Displaying help was in error in the big topics, buffer.flip() was misplaced
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061189 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 10:10:52 +00:00
Erwan de Ferrieres 1dedf4711c Upgrading to tomcat 6.0.30 - Changelog is here: http://tomcat.apache.org/tomcat-6.0-doc/changelog.html
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061169 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 09:14:24 +00:00
Jacopo Cappellato 0ed73fe64c Added a bunch of missing license headers.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058580 13f79535-47bb-0310-9956-ffa450edef68
2011-01-13 14:25:38 +00:00
Jacopo Cappellato a6922893a3 hot-deploy component are now always loaded in alphanumeric order; before this change they were loaded randomly (in a platform dependedent way).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055411 13f79535-47bb-0310-9956-ffa450edef68
2011-01-05 11:05:13 +00:00
Adrian Crum 35da2271fa Added two new UEL functions to make date/time display more user friendly. Form widget example:
<field name="someTimeStamp">
  <display description="${date:localizedDateTimeStr(someTimeStamp, timeZone, locale)}"/>
</field>

will display the date/time according to the user's locale, instead of yyyy-mm-dd hh:mm:ss.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054211 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 09:05:44 +00:00
Hans Bakker 50b24e3ee5 the first version of a product image management system to upload/approve and manupulate product images, see catalog -> image management
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052521 13f79535-47bb-0310-9956-ffa450edef68
2010-12-24 15:22:49 +00:00
Jacques Le Roux 1221defad7 Better solution for "Bug In Jquery Integration - js File Not Found" (https://issues.apache.org/jira/browse/OFBIZ-4060) - OFBIZ-4060
A jquery.ui.datepicker i18n file is missing for the language.country couple you want. Simply add it there: [" + baseLocation + "]. Else anyway the 'en' default will be used", module)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052494 13f79535-47bb-0310-9956-ffa450edef68
2010-12-24 12:12:05 +00:00
Jacques Le Roux 52c7d137e8 Fix "Bug In Jquery Integration - js File Not Found" (https://issues.apache.org/jira/browse/OFBIZ-4060) - OFBIZ-4060
We don't care for missing jquery.ui.datepicker i18n files, since "en" as default is handled internally. If people want a missing translation they have to add the file 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052492 13f79535-47bb-0310-9956-ffa450edef68
2010-12-24 11:59:54 +00:00
Erwan de Ferrieres adbf783134 Adding ivy to OFBiz and make an example with cobertura. No more errors when running tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050915 13f79535-47bb-0310-9956-ffa450edef68
2010-12-19 17:38:57 +00:00
Jacques Le Roux 26fcb9eb4c I think this is the correct solution for the problem I temporarily fixed some hours ago (r1050364+r1050367: was for a blocking deadlock issue, see https://issues.apache.org/jira/browse/OFBIZ-4065 - OFBIZ-4065 for details)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050452 13f79535-47bb-0310-9956-ffa450edef68
2010-12-17 17:04:27 +00:00
Jacques Le Roux 159aaa42e9 Temporary(?) fix, follows r1050364
(r1050364 was for a blocking deadlock issue, see https://issues.apache.org/jira/browse/OFBIZ-4065 - OFBIZ-4065)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050367 13f79535-47bb-0310-9956-ffa450edef68
2010-12-17 12:51:55 +00:00
Jacques Le Roux 95ec1c0d52 Temporary(?) fix for a blocking deadlock issue, see https://issues.apache.org/jira/browse/OFBIZ-4065 - OFBIZ-4065
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050364 13f79535-47bb-0310-9956-ffa450edef68
2010-12-17 12:28:27 +00:00
Christian Geisert 2d501d0876 Log if there's a problem (i.e. invalid XML) when loading XML-Properties
see OFBIZ-4045
submitted by Georg Koester

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050186 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 21:56:14 +00:00
Scott Gray 2ecc4b2494 Removed unnecessary SuppressWarnings annotations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044932 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 21:31:51 +00:00
Scott Gray 47f43a302a Remove unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044931 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 21:31:27 +00:00
Scott Gray 75b0b1c1e3 Remove unnecessary semicolons
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044917 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 20:43:03 +00:00
Scott Gray bdd23c22d5 Add missing override annotations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044913 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 20:41:27 +00:00
Adam Heath a2fd254167 Make FreeMarkerWorker.getWrappedObject auto-cast to whatever type the
caller wants.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044232 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:21:09 +00:00
Adam Heath d61ce6486f Move variable declarations until they are actually used, instead of
assigning null, then force-reassigning the real value later.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044230 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:49 +00:00
Adam Heath 90c849bb36 Remove unnecessary cast when fetching the compiled template from the
UtilCache cache.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044229 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:42 +00:00
Adam Heath 762a3b6630 Fix some spacing issues, no code changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044228 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:35 +00:00
Adam Heath 2f6217251a Set svn:eol-style properly on all java files. This needs to be done on other text files as well, but that would cause undo conflicts in the jquery branch(due to .js being heavily modified there). Also, some files were committed to the repository with DOS line endings; those are fixed as well.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044202 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 02:40:02 +00:00
Adam Heath 192418385b Several utility methods for copying streams and
readers/writers/appendable.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040798 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:03:40 +00:00
Jacques Le Roux 66c5dd10a0 A patch from Dukian "Add Traditional Chinese translation for applications, ecommerce, and ofbizsetup" (https://issues.apache.org/jira/browse/OFBIZ-4031) - OFBIZ-4031
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039574 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 21:56:14 +00:00
Jacques Le Roux e7bdf3d27e This comment is not true anymore (you can set things using POP/IMAP transfer menu option in your GMail account).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1004238 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 13:54:25 +00:00
Jacques Le Roux ad6c8a8341 Deprecates renderTemplateFromString from Scott's remark on dev ML.
I also removed a wrong @Override annotation for OFBizTemplateExceptionHandler

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1004148 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 08:55:13 +00:00
Jacques Le Roux 8372d0cf87 A patch from Sascha Rodekamp "Additional parameter for FreeMarker to tell if it should load ftl files from cache or not" (https://issues.apache.org/jira/browse/OFBIZ-3970) - OFBIZ-3970
This patch allows you to tell FreeMarker if it should load the ftl files from cache or not as extension for the method description. If you have a few screens which shouldn't use the cache you can configure them separately. The use case is loading content with templates which are stored in the DB and can be modified during the runtime (CMS). 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1003943 13f79535-47bb-0310-9956-ffa450edef68
2010-10-03 10:03:14 +00:00
Hans Bakker 3a4caa0038 add role set for 'th' locale into 'Rule Base Number Format Rule Sets'
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1003459 13f79535-47bb-0310-9956-ffa450edef68
2010-10-01 09:56:20 +00:00
Ashish Vijaywargiya 58b5d276a6 Correcting the condition. Thanks Akash for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@998061 13f79535-47bb-0310-9956-ffa450edef68
2010-09-17 10:40:20 +00:00