Commit Graph
171 Commits
Author SHA1 Message Date
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
Jacopo Cappellato b1aa7686f3 No functional changes, just a lot of cleanups for rev. 566781 by Al Byers:
1) added missing license headers
2) removed tabs
3) fixed some weird/random formatting

I'm still not sure that it is correct to keep the two *.ftl files in the script folder... but I don't have time to further review this revision.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@567558 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 06:48:53 +00:00
Alfred Maxwell Byers 2c8afab971 I am adding these GIS related files for safe keeping and to serve notice that a GIS component will be forthcoming.
Actually, they work now, so it will be a matter of filling the out - especially translating ogc filter constraints to 
simple method entity expressions.

WFS is a standard in the GIS world for querying and returning metadata (as opposed to the other two standards, WMS and WMC,
which deal with returning images from vector info or images as the native format (coverages).
By putting a WFS server interface in OFBiz, it can be used to add point-of-interest plotting to many business apps.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@566781 13f79535-47bb-0310-9956-ffa450edef68
2007-08-16 17:14:18 +00:00
David E. Jones 9484bf4926 Removed property for class that no longer exists in OFBiz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@566645 13f79535-47bb-0310-9956-ffa450edef68
2007-08-16 10:18:52 +00:00
Jacopo Cappellato 6907a4d911 Fixed font url path: I introduced this error in my last commit to this file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@565010 13f79535-47bb-0310-9956-ffa450edef68
2007-08-12 07:48:22 +00:00
Jacques Le Roux 9245703ffc A patch from Adrian Crum "Improved Time Zone Support, Part 2" (https://issues.apache.org/jira/browse/OFBIZ-1164)
Please see comments in Jira issue.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@564957 13f79535-47bb-0310-9956-ffa450edef68
2007-08-11 18:40:45 +00:00
Jacques Le Roux 4bd9d881b9 A patch from Adrian Crum "FreeMarkerWorker.java flexibility" (https://issues.apache.org/jira/browse/OFBIZ-273)
Uses a sort of dependency injection


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@564914 13f79535-47bb-0310-9956-ffa450edef68
2007-08-11 12:52:41 +00:00
Jacopo Cappellato 22cefa2b17 Added fop config file (with unchanged default value to the webapp/config folder.
Also changed the ApacheFopFactory to load froom webapp/config instead of widget/config.
Thanks to Oleg Andreyev and Krzysztof Podejma for the config file and comments.
OFBIZ-1110

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@564545 13f79535-47bb-0310-9956-ffa450edef68
2007-08-10 11:02:14 +00:00
David E. Jones 4479906b3a A little better handling of the rare case where the userLoginId is missing or bad; avoid an NPE and give a better error message
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@564344 13f79535-47bb-0310-9956-ffa450edef68
2007-08-09 19:25:35 +00:00
David E. Jones ede990f68e Changed a few noisy error messages to verbose
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@562592 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 21:37:58 +00:00
Jacopo Cappellato 91549b43b5 Fix for index out of bounds exception reported by Bilgin Ibryam.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@561759 13f79535-47bb-0310-9956-ffa450edef68
2007-08-01 10:47:05 +00:00
David E. Jones 8c07042741 Fixed issue when there is no forward slash in the prefix or in the value in the ofbizContentUrl transform
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@561701 13f79535-47bb-0310-9956-ffa450edef68
2007-08-01 08:12:58 +00:00
Jacopo Cappellato 471acaa18e Code cleanups: no functional changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@561320 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 13:13:17 +00:00
David E. Jones d49ab29996 Some improvements to handling cases where rendering the error messages fails, and the alternate fails, etc
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@560486 13f79535-47bb-0310-9956-ffa450edef68
2007-07-28 04:10:18 +00:00
David E. Jones d12cdec531 Much better error handling, just in case some actually wants to use this, like for testing or something
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@559793 13f79535-47bb-0310-9956-ffa450edef68
2007-07-26 12:28:33 +00:00
Jacques Le Roux 174bcd8621 A patch from Shi Yusen "zh properties in progress" (https://issues.apache.org/jira/browse/OFBIZ-617)
The framework part was still waiting to be commited

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@556459 13f79535-47bb-0310-9956-ffa450edef68
2007-07-15 21:40:04 +00:00
David E. Jones d482174761 Some reformatting for Visit and Visitor entities; also added some fields for information based on the clientIpAddress for future use based on geoIp lookups, etc
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@555796 13f79535-47bb-0310-9956-ffa450edef68
2007-07-12 22:23:04 +00:00
Jacques Le Roux a0cafa57d5 A patch from Oleg Andreyev "ApacheFopFactory initialize font base url to default value independently of <font-base> tag in fop.xconf" (https://issues.apache.org/jira/browse/OFBIZ-990)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@554181 13f79535-47bb-0310-9956-ffa450edef68
2007-07-07 11:36:37 +00:00
David E. Jones b7feb3d18f Appled patch from Adrian Crum in Jira #OFBIZ-1117 to add some timeZone passing and retreival code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@553122 13f79535-47bb-0310-9956-ffa450edef68
2007-07-04 08:20:55 +00:00
Andrew Zeneski 4f2d612dbc added rounding to currency display, this does not change the default behavior, but rather gives the option to set the rounding number (rounding=2) in the transform. Useful when you don't control the code which returns the number.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@551625 13f79535-47bb-0310-9956-ffa450edef68
2007-06-28 17:11:11 +00:00
Jacopo Cappellato 82e557da6c http and https ports should not be changed; I think this change has been committed by accident.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@550701 13f79535-47bb-0310-9956-ffa450edef68
2007-06-26 05:42:42 +00:00
Jacques Le Roux b67954e73a A patch from Dimitri Unruh "Remove sessionid for Googlebot & Co." (https://issues.apache.org/jira/browse/OFBIZ-857).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@550673 13f79535-47bb-0310-9956-ffa450edef68
2007-06-26 03:56:42 +00:00
Andrew Zeneski a6c08b0df3 checked in by mistake..
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@549647 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 23:35:28 +00:00