Commit Graph
1143 Commits
Author SHA1 Message Date
Jacques Le Roux 10676abb06 A patch from Michael Brohl "Configure cookie use for a module through the ofbiz-component.xml" (https://issues.apache.org/jira/browse/OFBIZ-1831) - OFBIZ-1831
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@670268 13f79535-47bb-0310-9956-ffa450edef68
2008-06-21 23:02:59 +00:00
Andrew Zeneski d9ab64888d fixed encoding issues with SOAP responses; now ignoring all internal parameters for SOAP client calls (when TimeZone was added it broke the encoding)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@669642 13f79535-47bb-0310-9956-ffa450edef68
2008-06-19 18:47:13 +00:00
Jacopo Cappellato b2ac94a266 Added support for the skip-end attribute to form widgets of type "multi": now it is easier to add "global" form parameters to multi forms by concatenating a single form to a multi form with skip-end set to true.
Modified the way submitted multi form rows are counted: now the hidden _rowCount field in the form is no more needed because rows are counted in the ServiceMultiEventHandler (using the util methods that I have implemented in the UtilHttp class).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667930 13f79535-47bb-0310-9956-ffa450edef68
2008-06-15 06:27:15 +00:00
Jacopo Cappellato 42723effc3 Implemented new event handler for Groovy scripts; converted two Beanshell events to Groovy.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662337 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02 06:28:55 +00:00
Jacopo Cappellato fbc52e02dc Several improvements to the Italians labels by Bruno Brusco: OFBIZ-1805
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660816 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 05:38:39 +00:00
David E. Jones b9d6f8b524 Changed EntityExpr and EntityFunction subclasses to use the factory instead of constructor pattern, plus moved EntityExpr to EntityCondition factory methods; a number of EntityExpr cleanups, but many more to go
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660812 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 05:20:09 +00:00
David E. Jones 3543d6abe3 Changed the way EntityCondition sub-classes work so they use the javolution Reusable class for recycling objects; now all conditions should be created using the factory methods on the EntityCondition object instead of the direct constructors; there is a small variety of classes available there now for ease of use; also changed a bunch of old code to not use the deprecated constructors; note that still need to do a pass similar to this on EntityExpr
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660780 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 01:58:46 +00:00
Andrew Zeneski 5095e4e09f added support for third party policy servicers; setting the userLoginId in a request header, ofbiz will assume the user has already been authenticated and log the user in.
This is DISABLED by default (see security.properties) be sure your policy server is running in front of ofbiz to avoid security issues (spoofing).

Jira: OFBIZ-1781


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@656008 13f79535-47bb-0310-9956-ffa450edef68
2008-05-13 20:59:03 +00:00
Adrian Crum 4195b35a78 Added JavaScript detection to the framework. See https://issues.apache.org/jira/browse/OFBIZ-1648.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655712 13f79535-47bb-0310-9956-ffa450edef68
2008-05-13 02:25:55 +00:00
David E. Jones 329631a4b5 A whole bunch of cleanups to use newer and more consolidated delegator find methods; still lots of deprecation warnings, bots of deprecation warnings but this is a first pass, and things still run as before
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653029 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 09:40:51 +00:00
David E. Jones 3b7660fc3b Added feature to entity engine to support generic audit log that can be used for any field; values are converted to a string and l using the enable-audit-log attribute on the entity->field element; the Testing entity uses it now for the testName; this also has functionality to associate user info like the userLoginId with the thread so that the EE knows about it automatically, and uses a stack for flexibility
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652226 13f79535-47bb-0310-9956-ffa450edef68
2008-04-30 02:02:29 +00:00
Jacques Le Roux 4973c9f293 This add the possiblity to run RMI services under WASCE or Geronimo.
There is only one small drawback : so far if you restart the OFBiz EAR from the console you loose the RMI Dispatcher. However stopping and starting (even after a restart) is OK. I guess it's the same for the commande redeploy, I will test tomorrow.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652177 13f79535-47bb-0310-9956-ffa450edef68
2008-04-29 22:35:32 +00:00
Jacques Le Roux 64e46094b7 A patch from Nicolas Mervaillie "JSON event handlers send truncated response when it contains accented chars" (https://issues.apache.org/jira/browse/OFBIZ-1752) - OFBIZ-1752
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@650083 13f79535-47bb-0310-9956-ffa450edef68
2008-04-21 10:18:20 +00:00
Jacques Le Roux f8d48464c5 From a Yin T's suggestion "Remove hardcoded value" in (https://issues.apache.org/jira/browse/OFBIZ-1743) - OFBIZ-1743
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@647417 13f79535-47bb-0310-9956-ffa450edef68
2008-04-12 10:31:52 +00:00
Jacques Le Roux af63afe562 New version which automatically deploys in application server see https://cwiki.apache.org/confluence/x/IYBr for more informations
One base, one webapp, and the webtools web.xml files are slightly modified, nothing harmful anyway

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@646349 13f79535-47bb-0310-9956-ffa450edef68
2008-04-09 13:51:39 +00:00
David E. Jones 3141bca290 Finished form to link/target request artifact info stuff
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644179 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 06:06:48 +00:00
David E. Jones 630950c653 Refactored xml file searching to make more general, now used to search for controller xml files for requests referred to in screen linktroller xml files for requests used in screen defs, code for forms soon to come
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@641730 13f79535-47bb-0310-9956-ffa450edef68
2008-03-27 07:53:39 +00:00
David E. Jones aa4d60d4b8 Refactored to put the request response options in their own Map to be cleaner and avoid conflicts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@638242 13f79535-47bb-0310-9956-ffa450edef68
2008-03-18 06:55:09 +00:00
David E. Jones 0ceb1de0aa Changed artifact info classes to extend a common base class; added classes (incomplete still) for controller request and view
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@638210 13f79535-47bb-0310-9956-ffa450edef68
2008-03-18 04:40:06 +00:00
Christian Geisert 725ceb71e6 Setting svn properties (svn:eol-style,svn:mime-type,svn:keywords)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@634600 13f79535-47bb-0310-9956-ffa450edef68
2008-03-07 10:16:45 +00:00
Hans Bakker d3732f6bc3 convert most of the framework language properties files to xml and added the thai language
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630751 13f79535-47bb-0310-9956-ffa450edef68
2008-02-25 07:39:46 +00:00
Jacques Le Roux 85f337520a A patch from Bilgin Ibryam "Login process strange behavior" (https://issues.apache.org/jira/browse/OFBIZ-1145) - OFBIZ-1145
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630434 13f79535-47bb-0310-9956-ffa450edef68
2008-02-23 13:45:00 +00:00
Hans Bakker 18effbc6e2 new Handler, not tested, but I am sure Bilgin wil
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@618594 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 09:52:38 +00:00
Jacques Le Roux d3669ceeee A slightly refactored patch from Chris Howe "visit tracking should default to on" (https://issues.apache.org/jira/browse/OFBIZ-1554) OFBIZ-1554
Maybe the title could have better been "Allow requests to provide guidance on tracking"

Refactoring : one liner syndrom, but note I kept uriString : not totally affected, some brain remains. I also wondered if keeping appStat and appVisit could provide some kind of information but finally chose to do like it was already done in lines just below. This note only to follow the discussion we had on this topic in dev ML.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@608574 13f79535-47bb-0310-9956-ffa450edef68
2008-01-03 17:52:27 +00:00
Jacques Le Roux 21fc2f91ba A patch from Fabien Carrion "To permit to have a view with jasperreports to export to excel using the poi api, or the jxls api." (https://issues.apache.org/jira/browse/OFBIZ-1250) - OFBIZ-1250
JasperReports is any longer used in OFBIz but this might be helpful in some occasions. As it changes anything (I reviewed but no tested) I prefer to commit than ignore.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@604728 13f79535-47bb-0310-9956-ffa450edef68
2007-12-16 22:38:02 +00:00
Adrian Crum b584b3549b FOP code improvements, based on https://issues.apache.org/jira/browse/OFBIZ-1414.
The Jira issue mentions rendering to temp files, but I kept that out of the commit. If we get out of memory errors in the future, it will be easy to add it back in.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603483 13f79535-47bb-0310-9956-ffa450edef68
2007-12-12 06:38:23 +00:00
Scott Gray 592b4a2229 Don't use getInParamNames because it returns a TreeSet which means the parameters are sorted by name rather than the order they are defined in the service def. The unit test for XML-RPC now passes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600834 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 08:35:04 +00:00
Jacques Le Roux 7e60f4cec9 A patch from Jeremy Wickersheimer "makeLoginUrl doesn't URL encode the strings" (https://issues.apache.org/jira/browse/OFBIZ-1199) - OFBIZ-1199
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600278 13f79535-47bb-0310-9956-ffa450edef68
2007-12-02 12:58:01 +00:00
Jacopo Cappellato 97f25673f4 Added Xalan jars from Fop 0.94 distribution: they are required, due to a bug in FOP (see http://issues.apache.org/bugzilla/show_bug.cgi?id=43542) when user defined fonts are used.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@598214 13f79535-47bb-0310-9956-ffa450edef68
2007-11-26 10:44:18 +00:00
Jacopo Cappellato 3f27fed7e7 Upgrade to FOP 0.94 (that requires xmlgraphics-commons-1.2.jar): this is the latest stable release.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@594465 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 09:47:54 +00:00
Andrew Zeneski 02ffc06b52 added a FileProgress listener to the session when uploading files through the service event handler
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@593583 13f79535-47bb-0310-9956-ffa450edef68
2007-11-09 16:27:06 +00:00
Jacopo Cappellato 909c8d9b6e Set the base url for FOP for resolving relative URLs: the default value is 'http://localhost:8080'. Issue OFBIZ-242.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@591256 13f79535-47bb-0310-9956-ffa450edef68
2007-11-02 08:12:14 +00:00
David E. Jones 75c26763e5 Fairly significant update to correct a long-standing problem; reverted ByteWrapper back for backward compatibility, and then replaced all use of ByteWrapper with java.nio.ByteBuffer; the main point is to both store only the byte[] data in the database and not a serialized object containing the byte[], and at the same time be able to read the old ByteWrapper objects, and there is a service to read and update all old data to be plan bytes instead of wrapped in a serialized object; this includes changing the java-type for blob fields to be java.sql.Blob to greater compatibility and flexibility, ie you can either set a plain byte[] or you can pass in a Blob object to be persisted, you can also get both as get returns java.sql.Blob, but getBytes always returns the byte[], converting as needed; this is tested a fair amount, but obviously needs to be watched as it is new code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@587433 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 09:52:49 +00:00
Jacques Le Roux ae76370a04 Replace all www.ofbiz.org by ofbiz.apache.org (mostly links to dtds). Note that there are 2 void links :
http://ofbiz.apache.org/service/
http://ofbiz.apache.org/cgi-bin/http_test.pl

Those links were useless before also

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586802 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 21:17:45 +00:00
Adam Heath c69096e93a Switch as much as possible from StringBuffer to StringBuilder.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585805 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:56:02 +00:00
Adam Heath 2ff7a8a575 Make use of the single-arg variants of makePK/makeValue, removeAll,
and clearCacheLine


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585803 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:46:57 +00:00
Jacques Le Roux 9b2976071c A forgotten patch from Joe Eckard (sorry Joe) "Typo in RequestHandler.java" (https://issues.apache.org/jira/browse/OFBIZ-597) OFBIZ-597
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@584697 13f79535-47bb-0310-9956-ffa450edef68
2007-10-15 06:51:12 +00:00
David E. Jones ca526c3957 Some improvements to how sequencing is done, including a new method in the GenericDelegator that does a sequence and create all in one, including a single retry with bank refresh on failure because of duplicate ID just in case two sequencers somehow get the same ID bank; in theory that is impossible but it has been observed in production and this is part of the 2 part solution to handle the problem more elegantly than having to restart the servers, and to try to find out just how two sequencers got the same bank of values; this includes changing a number of key code blocks to use the combined sequence and create for retry, and a little bit of code cleanup too
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582142 13f79535-47bb-0310-9956-ffa450edef68
2007-10-05 09:02:49 +00:00
Alfred Maxwell Byers c933f6a7d4 Adding a transform for RenderContentAndSubContent
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579474 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 05:06:35 +00:00
Scott Gray c2218ce5bd Applied patch from Vinay Agarwal OFBIZ-102, "cross-redirect" wasn't being stripped from the url.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576328 13f79535-47bb-0310-9956-ffa450edef68
2007-09-17 09:34:06 +00:00
Andrew Zeneski 429b9ade8e turned off logging from testing the server hit/visit bypass functionality; added code to send back errors to the stream handler
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575065 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 20:31:44 +00:00
David E. Jones 38d3888005 Changed a couple of log messages to be info instead of always
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574837 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 08:24:12 +00:00
Andrew Zeneski 01aeb00f2f changed track-stats to track-serverhit to be more clear
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574715 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 22:48:55 +00:00
Andrew Zeneski 2e8645ed67 added code to disable ServiceHit and Visit tracking for defined requests (use new track-stats and track-visit attributes on the request URI); also supports disabling tracking per webapp (use init param track-stats and track-visit)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574709 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 22:09:40 +00:00
Andrew Zeneski 2d1b5b3083 fixed small bug prevent small files from being uploaded
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574698 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 21:24:29 +00:00
David E. Jones 3ad47cf2b7 Added sequence-bank-size for certain higher traffic entities
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573786 13f79535-47bb-0310-9956-ffa450edef68
2007-09-08 05:33:55 +00:00
Alfred Maxwell Byers 8bbce50753 Added this json event handler to deal with a couple of special issues when uploading a file with Dojo.
Dojo expects the json response to be wrapped in html like this:
  <html><head></head><body><textarea style="width: 100%%; height: 100px;">{name: value, name2: value2}</textarea></body></html>
  The other issue is that the JSONObject balks at the "byte" type of uploaded file data.
  I solved that by making the parameters returned by the service (which also contains the input parameters)
  valid for the output parameters defined by the service.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573023 13f79535-47bb-0310-9956-ffa450edef68
2007-09-05 18:20:51 +00:00
David E. Jones c29a8eb6a6 Some error handling improvements, especially for problems with ServerHit saving so it doesn't kill the server output, and to handle the rare case where response isCommitter and there is no session because of logout or whatever
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572931 13f79535-47bb-0310-9956-ffa450edef68
2007-09-05 10:32:30 +00:00
Alfred Maxwell Byers 53c93dc747 Added some code to convert Timestamp types to string so that this code will handle them.
Not sure why it is limited to the types - String, Number, Map, List.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571051 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 06:41:21 +00:00
Hans Bakker c004fc0430 avoid having NPE in verbose message
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571020 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 02:33:16 +00:00