Commit Graph
423 Commits
Author SHA1 Message Date
Jacopo Cappellato 9f49ca16f7 Added ofbizHome to the path to fop.xconf (user config file) for consistency with the url for font.base set later in this method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935615 13f79535-47bb-0310-9956-ffa450edef68
2010-04-19 15:18:35 +00:00
Adam Heath 95949ff2b7 Add <test-jar> macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935381 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:47 +00:00
Scott Gray 06be6c89c0 Removed an unused delegator variable
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932167 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:13:53 +00:00
Scott Gray ef95f80dbf Removed some unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932166 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:13:49 +00:00
Scott Gray c47c48d412 Removed an unnecessary null check
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932165 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:13:44 +00:00
Jacques Le Roux 8c6360bad0 A modified patch from BJ "Tenant login can cause a problem when contacting a delegator" (https://issues.apache.org/jira/browse/OFBIZ-3578) - OFBIZ-3578
If the tenantid has leading/trailing spaces


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930580 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 21:07:37 +00:00
Jacques Le Roux 9d6925fabc A patch from Stefan Roggensack "LoginWorker.doBasicLogout does not check userLogin against null" (https://issues.apache.org/jira/browse/OFBIZ-3577) - OFBIZ-3577
Not easy to reproduce...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928037 13f79535-47bb-0310-9956-ffa450edef68
2010-03-26 20:05:54 +00:00
David E. Jones 8e3edae07f Merged multitenant20100310 branch into the trunk
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927271 13f79535-47bb-0310-9956-ffa450edef68
2010-03-25 04:42:26 +00:00
Scott Gray 68dd372bdb Add the current overrideViewUri to the request attributes if present so that events can access the additional information if necessary.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926417 13f79535-47bb-0310-9956-ffa450edef68
2010-03-23 00:47:46 +00:00
Scott Gray f507fad221 [CVE-2010-0432] Properly encode any error messages before attempting to write them to the response. I'm doing it here to avoid having to do the encoding within each app's error.jsp file, I think this should be fine though.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920371 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 16:05:19 +00:00
Hans Bakker c3038fdfe6 revert 910871 because the new itext library is not compatible with the current eclipse birt reportgenerator
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@916599 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26 07:40:16 +00:00
Bilgin Ismet Ibryam 75f2d0f5dc Fix typo in RequestHandler.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912507 13f79535-47bb-0310-9956-ffa450edef68
2010-02-22 08:25:50 +00:00
Erwan de Ferrieres f532a75616 update library iText 2.0.1 to iText 2.1.7 (http://issues.apache.org/jira/browse/OFBIZ-3407)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910871 13f79535-47bb-0310-9956-ffa450edef68
2010-02-17 09:09:44 +00:00
Adrian Crum 583d012e4b Created a SOAP serializer facade class to decouple SOAP code from XmlSerialize.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910060 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 18:38:34 +00:00
Scott Gray 5929b3b830 Moved username.lowercase and password.lowercase security property checks from calling events to the userLogin service itself
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909216 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 03:33:20 +00:00
Jacques Le Roux 6d6a6fa7b3 Not as helpful now, but while at it, fixing the link
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907341 13f79535-47bb-0310-9956-ffa450edef68
2010-02-06 23:12:21 +00:00
Adam Heath 592cb808d2 Use MapContext, and dynamically create links to the includes files for
each accessor method.  This fixes a memory leak, and allows for the
included file to be cleared from the cache and reread, without having to
clear all files that included it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904252 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:11:28 +00:00
Adam Heath 93d0182f49 Make all variables in ControllerConfig private, and add accessor
functions to them.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904250 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:10:51 +00:00
Adam Heath b98a11cf66 Fix for a memory leak; sometime during the past, the initial url fetched
from the servlet container started being a jndi:// form; so, when
include processing was introduced, the urls wouldn't match up.  Instead,
implement a temporary hack to convert the servlet path to a file, so
that the urls will be normalized.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903799 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:50:17 +00:00
Scott Gray ce43168d21 Fix from Ruth Hoffman (OFBIZ-3376), prevent NPEs when invoking the RomeEventHandler
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899855 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 00:43:43 +00:00
Adam Heath b17eb127ec Fix trailing whitespace, and mixed tab/space at the beginning of lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
Adam Heath eb0f0bfb16 Fix several generics warnings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898090 13f79535-47bb-0310-9956-ffa450edef68
2010-01-11 22:21:12 +00:00
Hans Bakker ce5a5ee0b4 the netbeans generated code (jax-ws) now works with this patch. contribution by Chris snow
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@896347 13f79535-47bb-0310-9956-ffa450edef68
2010-01-06 08:05:00 +00:00
Hans Bakker eff08dd327 fixed: OFBIZ-3385: Axis2 integration returns 'Unsupported Content-Type: text/html;charset=utf-8', contribution by Chris
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@895944 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 08:41:16 +00:00
Adam Heath 93cc17b5b0 Remove a bunch of wildcard imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894106 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 19:54:58 +00:00
Adam Heath 18d0ceeaf9 Remove most docs targets, they are all the same anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath 56dac0bf9e Add a classes target to common.xml, and switch most build.xml to use it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894024 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:16:56 +00:00
Adam Heath 47b0a876ed Switch all javac15 to javac16.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +00:00
Hans Bakker ea3a88e1a6 Upgrade Axis1 to Axis2. Ofbiz now supports complex parameters in webservices including WSDL generation. see OFBIZ-3363 for more info. A contribution of Antwebsystems employee Chatree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892712 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 07:31:58 +00:00
Scott Gray 3f33a1fab7 Deprecated the various json event handlers and commented out references to them from the controllers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892685 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 05:01:20 +00:00
Hans Bakker f9e1b11bde Merge birt branch 831204:886087 and 831209:885099. A contribution by Antwebsystems employee Chattree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890175 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 04:41:28 +00:00
Jacques Le Roux 6be9a2c8ea Revert r887916, not a solution at all
I did not test eCommerce, it crashes at 1st load :/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888111 13f79535-47bb-0310-9956-ffa450edef68
2009-12-07 20:05:51 +00:00
Jacques Le Roux ef296bb420 A patch from Adrian Crum "ServerHit aborts transactions when trying to create entries with duplicate startTime(s)." (https://issues.apache.org/jira/browse/OFBIZ-2208) - OFBIZ-2208
This add synchronization for ServerHit entities creation. Hence startTime is no longer used. 
I have also removed some comment about the problem, and added one for startTime no longer used.

Note: If synchronization proves to slow down sites we could introduce a properties in serverstats.properties to switch from using it or not since I did not remove startTime from the method signature
Then we will use one or the other lines
-            serverHit.set("hitStartDateTime", new java.sql.Timestamp(startTime));
+            serverHit.set("hitStartDateTime", getNowTimestamp());


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887916 13f79535-47bb-0310-9956-ffa450edef68
2009-12-07 13:00:09 +00:00
Jacques Le Roux e07ab48fb4 Some cleaning related to is(Not)Empty
* remove duplicate ()
* remove casts no longer needed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885103 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 15:46:52 +00:00
Jacques Le Roux 2777b83223 Fix r885091 where isNotEmpty has been used by error instead of isEmpty
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885092 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 13:59:45 +00:00
Jacques Le Roux 5661bad7fa I forgot to improve Angelo Matarazzo's patch I committed for "view-last-noparam" (https://issues.apache.org/jira/browse/OFBIZ-3027) - OFBIZ-3027 in r829727
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883914 13f79535-47bb-0310-9956-ffa450edef68
2009-11-24 22:54:47 +00:00
Jacques Le Roux c72b29cb1f Use UtilValidate.isNotEmpty methods instead of (obj != null) || (obj.length > 0) and (obj != null) || (obj.size > 0)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883549 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 23:41:34 +00:00
Jacques Le Roux 4e0d303e06 Use UtilValidate.isEmpty methods instead of (obj == null) || (obj.length == 0)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883507 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 21:42:18 +00:00
Adam Heath 820d11eb97 Deprecate UtilCache constructors, and add a create helper function.
This is the first step to making utilCacheTable concurrent, and
non-blocking.  To do so, the constructor has to have no side-effects.
This means it can't modify utilCacheTable itself; this will be moved to
the helper function created above.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883217 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 02:56:28 +00:00
Bilgin Ismet Ibryam ffe7c0926a Fix for the issue reported in https://issues.apache.org/jira/browse/OFBIZ-3196
Set also the result from services invoked by multi-service w/o a suffix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836192 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 15:42:26 +00:00
Jacques Le Roux ffdbca925e A patch from Marc Morin "Resolve java warnings exposed in Eclipse : framework - webapp" (https://issues.apache.org/jira/browse/OFBIZ-3116) - OFBIZ-3116
With few changes notably an enhanced for loop instead of while iterator and


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836141 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 08:29:42 +00:00
Scott Gray f4c8abb56c Reverted changes to the trunk from r833294 that appear to have been intended for the birt branch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833303 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 05:22:58 +00:00
Hans Bakker 99f2b600db 1. fix framework for using jsp tag in freemarker.
2. change order building birt component to after common component in framework/build.xml file
3. specific birt container before beanshell container in framework/base/config/ofbiz-containers.xml file
4. specific loading birt component after bi component in framework/component-load.xml
5. list all birt's jar files that have Eclipse Public License - v 1.0 in LICENSE file
6. change example report's path in mail form's tooltip.
7. delete four duplicated jar files.
  - framework/birt/lib/axis.jar
  - framework/birt/lib/commons-discovery-0.2.jar
  - framework/birt/lib/axis-ant.jar
  - framework/birt/lib/commons-cli-1.0.jar

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833294 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 03:55:56 +00:00
Jacques Le Roux bf71e5ec52 A slightly modified patch from Patrick Antivackis "A way to generate no cache header for the views" (https://issues.apache.org/jira/browse/OFBIZ-3091) - OFBIZ-3091
Patrick : The goal of this improvement is to allow at the view level, through setup in the controller.xml file, to generate no-cache http headers. Example is included for the showcart view of the ecommerce application.
JLR : I have commented out Patrick's example in controller and put a comment about its usage

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833096 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 17:38:42 +00:00
Bilgin Ismet Ibryam ddb2d1148a Prevent overriding of service results in a service-multi type events.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831098 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 21:35:49 +00:00
Jacques Le Roux 048506f318 A patch from Patrick Antivackis "NPE when calling a page like http://localhost:8080/cmssite/cms" (https://issues.apache.org/jira/browse/OFBIZ-3096) - OFBIZ-3096
A Null Pointer Exception is generated by RequestHandler.trackVIsit and trackStat if a page is called without view and without trailing slash after the controller.
This may be not a problem for non cms site, but it is for cms site. Calling http://localhost:8080/cmssite/cms will generate a NPE; WIth the included pacth, calling the same page will display the default page.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@830366 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 22:13:53 +00:00
Jacques Le Roux 3f8e87f56f A patch from Angelo Matarazzo "Add view-last-noparam" (https://issues.apache.org/jira/browse/OFBIZ-3027) - OFBIZ-3027
"view-last-noparam" has functionality of view-last but without last parameters like "request-redirect-noparam". 

I' m using this attribute because in my application all the screens are linked to a field in the context. that I call "commonValue". I have a link in the common header that change the value of this field but when I click this link the screen must not change but the field of current screen must be cleaned. By this attribute the view is set at " last-view" but the last parameters are cleaned.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829727 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 08:22:25 +00:00
Jacques Le Roux 06d24f1277 Better French translation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829605 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 15:25:24 +00:00
Adrian Crum 9ee18d37c5 Updated client code to use the new Delegator factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823633 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 17:44:24 +00:00
Adrian Crum 7fa08f9079 Replaced GenericDelegator.getGenericDelegator(...) calls with new factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821649 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 01:53:50 +00:00