Commit Graph
173 Commits
Author SHA1 Message Date
Scott Gray 5601372ea7 Set the autoLoginCookie's domain to what is specified in url.properties
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@700552 13f79535-47bb-0310-9956-ffa450edef68
2008-09-30 19:10:07 +00:00
David E. Jones 3a461ea757 Added visitId persistence to EntityAuditLog stuff
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688498 13f79535-47bb-0310-9956-ffa450edef68
2008-08-24 12:09:37 +00:00
Scott Gray 9b786b8159 Reverted the rest of Si's recent work since it doesn't look like he is going to complete/correct the RequestHandler part any time soon
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688265 13f79535-47bb-0310-9956-ffa450edef68
2008-08-23 06:17:06 +00:00
Jacques Le Roux e7905f2c8c Fix the anti-pattern
if (* != null && *.size() > 0) { 
where * is a variable name (String or Collection). Rewritten to
    if (UtilValidate.isNotEmpty(*)) {

Done with Eclipse regex replace feature with
search = if \((\w+) *!= *null *&& *(\w+)\.size\(\) *> *0\) *\{
replace = if (UtilValidate.isNotEmpty($1)) {

And of course some hand-work for imports and cleaning. I compiled and tested with ant run-tests

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686591 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 07:47:18 +00:00
Si Chen c22c243cb9 reverted last commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686356 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 20:20:34 +00:00
Si Chen e5451f7f18 OFBIZ-1915 from Jeremy Wickersheimer for request-redirect-filter-param
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686301 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 18:15:39 +00:00
Adam Heath 963b50cc44 Bah, bad doogie, bad. Always at least *compile* your changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685964 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 17:16:42 +00:00
Adam Heath 851c88ea77 User agent and referer were star-crossed lovers. Now they have gone
out on their own.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685962 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 17:12:01 +00:00
Adam Heath 99bf46f085 Switch most new File(string_with_path_separator) calls to
FileUtil.getFile.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682266 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 06:08:42 +00:00
Adam Heath 4f50ff1a92 Fix broken conversion to enhanced for loop; previous code started
checking at index 1, not index 0.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682228 13f79535-47bb-0310-9956-ffa450edef68
2008-08-03 22:29:53 +00:00
Adam Heath 5cf9c7f1c6 Another large set of generics/java15 markup/feature usage.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682067 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 21:56:42 +00:00
Andrew Zeneski 6eb07f0014 added flag to disable the cached classloader; conflicts with certain libraries which plug into the servlet container (i.e. JSF)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679876 13f79535-47bb-0310-9956-ffa450edef68
2008-07-25 18:43:45 +00:00
Adrian Crum 4bd597df22 FreeMarkerWorker.java improvements:
1. Better handling of the FreeMarker Configuration instance. Eliminated the need for synchronizing code.
2. OFBiz transforms are now kept in the Configuration object - no need to load them into the rendering context on every run.
3. Some small code cleanups.

FreeMarkerViewHandler.java improvements:

1. Eliminated redundant Configuration object initialization by cloning the Configuration object kept in FreeMarkerWorker.
2. Now supports the "component://" syntax for page attribute.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@674222 13f79535-47bb-0310-9956-ffa450edef68
2008-07-05 18:43:21 +00:00
Adam Heath c279005e17 Bother, stupid me, jsp won't find the method if the signature is
changed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672913 13f79535-47bb-0310-9956-ffa450edef68
2008-06-30 20:56:06 +00:00
Adam Heath efbcaa3542 Set addInParameter to take a String key, as the in parameters are
used to call the esrvice engine.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672912 13f79535-47bb-0310-9956-ffa450edef68
2008-06-30 20:53:29 +00:00
Adam Heath 1dc13f6105 Number.valueOf changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672898 13f79535-47bb-0310-9956-ffa450edef68
2008-06-30 20:20:37 +00:00
Anil Patel 6a74345536 JSON handler for simple method events.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671706 13f79535-47bb-0310-9956-ffa450edef68
2008-06-26 01:50:39 +00:00
David E. Jones 922952d8e2 Changed so that the parameters Map is more consistent with the one in the screen widget,, other small cleanups
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671564 13f79535-47bb-0310-9956-ffa450edef68
2008-06-25 14:31:29 +00:00
Scott Gray d596d6e904 Added some convenience variables for groovy events as suggested by David on the dev list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671503 13f79535-47bb-0310-9956-ffa450edef68
2008-06-25 10:43:50 +00:00
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
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
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
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
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