Commit Graph
1801 Commits
Author SHA1 Message Date
Jacques Le Roux 1806397b93 Update defaultValveFilter using http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-valve.html as reference, with our own specificities (.*\.ico;.*\.htc;) even if I guess It's not a big deal. This is mostly a reference for future.
So adds.*\.png;.*\.css;.*\.ico;.*\.htc; 

I wonder though why "\" were not used previously, maybe an older version of Tomcat cluster-valve

Also update containers...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081740 13f79535-47bb-0310-9956-ffa450edef68
2011-03-15 11:40:43 +00:00
Marco Risaliti bdcca6ed53 Remove some unused warning in ComparableRangeTests (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078297 13f79535-47bb-0310-9956-ffa450edef68
2011-03-05 15:03:27 +00:00
Marco Risaliti 135ba2cf46 Remove some warning as unchecked "temporary" in JdbmSerializer/JdbmRecordManager (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078219 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 23:39:12 +00:00
Marco Risaliti fe1e4da289 Remove some warning in MiscTests change the class JSONResult (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078216 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 23:35:03 +00:00
Marco Risaliti a6079463c2 Remove some warning in TTLObject (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078215 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 23:29:42 +00:00
Marco Risaliti db713a6fe5 Remove some warning in MapComparator (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078209 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 23:15:45 +00:00
Marco Risaliti d0bc649190 Remove some warning in ReadOnlyMapEntry (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078207 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 23:14:51 +00:00
Marco Risaliti 6fc064992e Remove some warning in GenericMapEntrySet (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078206 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 23:13:49 +00:00
Marco Risaliti 7cd0c46514 Remove some warning in GenericMapValues (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078204 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 23:12:45 +00:00
Marco Risaliti d112488267 Remove some warning in GenericMapSet (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078203 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 23:11:42 +00:00
Marco Risaliti 8e34065a12 Remove some warning in GenericMapEntry (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078202 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 23:10:49 +00:00
Marco Risaliti 44eb5d9d3c Remove some warning in GenericMap (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078201 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 23:09:34 +00:00
Marco Risaliti 6bf3683a17 Remove some warning in MapContext (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078198 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 23:02:44 +00:00
Marco Risaliti f85548aad6 Remove some unused variables in ReferenceCleanerTests (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078197 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 23:01:00 +00:00
Marco Risaliti c30e1abdb2 Remove some warning in ComponentContainer (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078169 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 22:08:25 +00:00
Marco Risaliti f855d8895a Remove some warning in StringUtilTests (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078137 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 21:21:48 +00:00
Marco Risaliti af845b9dab Remove some warning in JSONTests (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076835 13f79535-47bb-0310-9956-ffa450edef68
2011-03-03 22:15:32 +00:00
Marco Risaliti 2672c664a3 Remove some warning in FreeMarkerWorker (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076832 13f79535-47bb-0310-9956-ffa450edef68
2011-03-03 22:11:34 +00:00
Marco Risaliti fae9ef56a1 Remove some warning in UtilObjectTests (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076830 13f79535-47bb-0310-9956-ffa450edef68
2011-03-03 22:11:21 +00:00
Marco Risaliti 93971045ec Remove some warning in TTLObject (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076822 13f79535-47bb-0310-9956-ffa450edef68
2011-03-03 21:56:49 +00:00
Marco Risaliti bd8c7ccc7b Remove a warning in JSONWriter (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076819 13f79535-47bb-0310-9956-ffa450edef68
2011-03-03 21:44:27 +00:00
Adrian Crum c060f87151 Implemented a new feature: hot-deploy components can load containers. Just put the hot-deploy-containers.xml file in your component's config folder (or anywhere on the classpath) and it will used. The xml file's schema is the same as framework/base/config/ofbiz-containers.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076529 13f79535-47bb-0310-9956-ffa450edef68
2011-03-03 05:21:20 +00:00
Adrian Crum 8418f75e2c Small code cleanup in container loader code.
Small functional change: ContainerConfig.getContainers(String configFile) used to return ALL loaded containers, not just the ones in configFile. This commit fixes that - now the method returns only the containers found in the specified file.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076469 13f79535-47bb-0310-9956-ffa450edef68
2011-03-03 00:34:49 +00:00
Marco Risaliti b08c94cab2 Remove a warning in DependencyPoolTests (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076442 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 22:33:54 +00:00
Marco Risaliti 8fa630870a Remove unused variable in TTLObjectTest (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076440 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 22:30:17 +00:00
Marco Risaliti 78255405f5 Remove some warning in GenericTestCaseBase (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076439 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 22:28:02 +00:00
Marco Risaliti 5d53fe63fb Remove some warning in StringUtil (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076429 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 22:08:43 +00:00
Marco Risaliti fe74e744fb Remove some warning in UtilMisc (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076428 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 22:08:28 +00:00
Marco Risaliti f55a81a86d Remove some warning in UtilHttp (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076427 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 22:08:07 +00:00
Marco Risaliti 0b6d48faa6 Remove a warning in UtilGenerics (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076422 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 22:01:16 +00:00
Marco Risaliti 2249639ac1 Remove some warning in UtilCache (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076419 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 21:54:02 +00:00
Marco Risaliti b1266e64b3 Remove some warning in UtilCacheTests (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076413 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 21:49:33 +00:00
Marco Risaliti 04f9e16356 Remove some warning in UtilPlist (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076407 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 21:46:14 +00:00
Marco Risaliti fe88b86001 Remove a warning in UtilO (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076397 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 21:36:14 +00:00
Marco Risaliti 0a733c0896 Remove a warning in FlexibleServletAccessor (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076396 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 21:31:49 +00:00
Marco Risaliti 7eea3b7de9 Remove unused variable and suppress serial in FlexibleMapAccessorTests (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076395 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 21:30:37 +00:00
Marco Risaliti 01f355463d Remove some warning in UelUtil (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076392 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 21:28:56 +00:00
Marco Risaliti d1a6f5f805 Remove some warning in ObjectType (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076384 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 21:18:05 +00:00
Sascha Rodekamp 40f52ad764 Improvement - if-regexp conditions in Minilang and Screens not thread safe (https://issues.apache.org/jira/browse/OFBIZ-4107). I added another getTestPattern Method to support case insensitive tests. The case insensitive testPattern is needed from the UtilHttp.checkURLforSpiders.
Thanks Martin & Dimitri for your effort.

Orig. Msg.:

The Perl5Matcher Perl5Compiler are not thread safe, as mentioned in their documentation: http://jakarta.apache.org/oro/api/org/apache/oro/text/regex/Perl5Compiler.html
A separate instance should be used per thread.

The concrete issue occurred in our system in the createCommContentDataResource service. The service tries to save emails to the database after they have been sent. It failed because of the described issue. This caused the whole email service (sendMailFromScreen) to be rescheduled. So customers got emails twice.

The Perl5Matcher and Perl5Compiler instances are assigned to static fields in the org.ofbiz.minilang.method.ifops.IfRegexp class. So every thread will use the same instance. No synchronization is done currently. Changing the fields to be non-static will not work either, as SimpleMethods are cached. So all calls to the same simple method use the same IfRegexp instance.

We fixed the problem by moving the instantiation of the Perl5Matcher and Perl5Compiler to the exec() method in IfRegexp.

Other classes are most likely affected, too: org.ofbiz.entity.condition.EntityComparisonOperator, org.ofbiz.minilang.method.conditional.RegexpCondition, org.ofbiz.minilang.operation.Regexp, org.ofbiz.widget.menu.ModelMenuCondition$IfRegexp, org.ofbiz.widget.screen.ModelScreenCondition$IfRegexp, org.ofbiz.widget.tree.ModelTreeCondition$IfRegexp


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075322 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 13:43:23 +00:00
Sascha Rodekamp a3cfb8c9e4 Feature - Improve UtilProperties.java with a new Method getPropertyNumber which returns an Object of the Number or a default Object - (https://issues.apache.org/jira/browse/OFBIZ-3418) - I submitted a less modified patch from Mirko Vogelsmeier. The patch was outdated but doesn't matter I merged by hand and removed the tabs. Thanks Mirko for the improvement. And thanks Adrian for the first review.
Orig. Msg.:
Improvement of UtilProperties.java with a new method which returns the Number as an Object of the specified property name from the specified resource/properties file.
If the specified property name or properties file is not found, the defaultObject is returned.

i did update my method "getPropertyNumber" a bit and
as requested i added "getPropertyAsInteger / asLong / AsFloat / AsDouble / AsBigInteger / AsBigDecimal".
In addition i added a "getPropertyAsBoolean".


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1073113 13f79535-47bb-0310-9956-ffa450edef68
2011-02-21 19:01:36 +00:00
Jacques Le Roux 6d47543fe3 Fix ports numbers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1072395 13f79535-47bb-0310-9956-ffa450edef68
2011-02-19 17:08:08 +00:00
Jacques Le Roux e3711d2369 * Replaces the old testRemoteSoap service now invalid with our own dog food: testSoapSimple from http://demo-trunk.ofbiz.apache.org:8080/webtools/control/SOAPService
* Adds a bunch of external SOAP services, none of them work so far, not sure why, a good exercise for the future...

I have tried to backport to R9.04 the testRemoteSoap change but it does not work there:

2011-02-19 17:26:02,500 (http-0.0.0.0-8443-1) [               Call.java:2469:ERROR] Exception:
org.xml.sax.SAXException: Deserializing parameter 'map-Map':  could not find deserializer for type {http://www.w3.org/2001/XMLSchema}anyType
        at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:277)
        at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
        at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
        at org.apache.axis.client.Call.invoke(Call.java:2467)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at org.ofbiz.service.engine.SOAPClientEngine.serviceInvoker(SOAPClientEngine.java:137)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1072378 13f79535-47bb-0310-9956-ffa450edef68
2011-02-19 16:32:19 +00:00
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