Sascha Rodekamp
13cf8abcc4
Bug - Create (upload) content in Party Profile does not work ( https://issues.apache.org/jira/browse/OFBIZ-4179 ). The bug occurs when trying to upload a zip file. Tika was missing a class for dealing with zip files. I added commons-compress-1.1.jar. I also updated the UX for the upload function. When no file purpose was set the upload crashes. Therefore i added a field validation.
...
Orig. Msg.:
As it does not work in trunk I 1st thought it was a jQuery migration issue. But it does not work either in R9.04 and I guess this is the initial reason
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1087254 13f79535-47bb-0310-9956-ffa450edef68
2011-03-31 11:22:05 +00:00
Adrian Crum
3855697825
Moved nested class in Start.java to its own file - no functional change. This commit changes the StartupLoader API.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085757 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 16:29:15 +00:00
Adrian Crum
355cc6a59e
Fix framework/base tests that were not running. Patch from Bob Morley with a few changes by me - https://issues.apache.org/jira/browse/OFBIZ-3662 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085735 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 15:11:00 +00:00
Erwan de Ferrieres
ddea2b9136
OFBIZ-4220 a patch from Philippe Mouawad: Current implementation of UtilCache has a memory leak if maxInMemory is set
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1084732 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 20:44:17 +00:00
Adrian Crum
397889ae8f
Some work on ContainerLoader.java - Fixes some thread-safe issues and try to have better control over loading/starting/stopping containers.
...
I'm not sure what the Geronimo code was supposed to do. It appeared to load all of the containers just so it could create/start the rmi-dispatcher container. So, I created a static method that allows client code to get a specific container. If this change causes problems with Geronimo just let me know and I will fix it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1084238 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 16:22:54 +00:00
Adrian Crum
c0ae7cfde6
More Container.java JavaDocs - no functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1084202 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 14:51:46 +00:00
Adrian Crum
e1acc655ee
Reordered code in ContainerLoader.java - no functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1084043 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 00:47:32 +00:00
Adrian Crum
99807645a9
Container.java JavaDocs - no functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1084034 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 00:14:11 +00:00
Adrian Crum
1d3c353252
Some bug fixes and improvements to ComponentContainer.java and Classpath.java:
...
1. <classpath type="dir" .../> did not add jar files to the classpath. That has been fixed.
2. <classpath type="dir" .../> that contained an invalid path was added to the classpath anyway. That has been fixed.
3. Added ability to load native libraries (*.dll, *.so).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1083554 13f79535-47bb-0310-9956-ffa450edef68
2011-03-20 20:02:48 +00:00
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