Commit Graph
2896 Commits
Author SHA1 Message Date
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
David E. Jones d35f4480a7 Changed service defs to refer to simple-method files by component:// urls instead of classpath resource locations; now that this is in removed the script directory from the classpath; this is the first step in doing this across the project to be less classpath dependent
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574829 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 08:03:11 +00:00
Andrew Zeneski f59b6db4a4 adjusted to reflect change (track-serverhit)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574716 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 22:49:16 +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 6ca57eb79d turned off visit and hit tracking for xmlrpc calls
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574710 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 22:10:46 +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 882124675e Fixed problem with service engine and TransactionUtil where if rollback only was set in a service it could not run sub-services even in their own transaction; the test case for this now passes with no problems
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574514 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 08:52:18 +00:00
David E. Jones 84580f87fb Added service to test case that is currently not working where a service with a transaction with rollback only set can't call a service in its own transaction
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574493 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 07:15:30 +00:00
Andrew Zeneski 2b36eb82b6 upgraded javolution
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574482 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 06:24:52 +00:00
David E. Jones a21616fbca Added mode to error message... it's REALLY annoying to not know in/out for parameter validation errors
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574451 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 05:06:28 +00:00
David E. Jones c9ac857f36 Applied little patch from Ray Barlow to correct unencoded ampersand; Jira #OFBIZ-1174
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574442 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 03:34:31 +00:00
Jacques Le Roux 99018818b3 A patch from Bilgin Ibryam "Added a few missing UiLabels to order component" (https://issues.apache.org/jira/browse/OFBIZ-1225) with some more changes from my own
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574072 13f79535-47bb-0310-9956-ffa450edef68
2007-09-09 20:40:43 +00:00
Jacques Le Roux c1d5cbf664 Finally put toUpperCase in ModelFieldType.StringLength() on David's advice
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573980 13f79535-47bb-0310-9956-ffa450edef68
2007-09-09 10:25:13 +00:00
David E. Jones 20d6259e82 Added some tougher variations on the deadlock retry test case to make sure both threads succeed in the end; note that this appears to be failure for the non-retry thread so the retry code and/or the test cases need a little more work
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573973 13f79535-47bb-0310-9956-ffa450edef68
2007-09-09 09:39:13 +00:00
Jacques Le Roux b45c9b49a9 A patch from Adrian Crum "ModelFieldType.StringLength() returns incorrect value" (https://issues.apache.org/jira/browse/OFBIZ-1229)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573967 13f79535-47bb-0310-9956-ffa450edef68
2007-09-09 09:16:50 +00:00
David E. Jones 3249854cee A few refinements to the deadlock retry test case, but the main part of this is the actual implementation of the deadlock retry in the service engine, and the implementation of that makes the deadlock test case pass now; this is a bit of rework in some low level code so this needs some good testing beyond the few general tests already done
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573956 13f79535-47bb-0310-9956-ffa450edef68
2007-09-09 08:13:25 +00:00
David E. Jones e6389beca1 Added handy method for doing a wait in a static method and without making the whole thing synchronized
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573814 13f79535-47bb-0310-9956-ffa450edef68
2007-09-08 10:34:54 +00:00
David E. Jones afefce6020 These failure cases are now running properly, though for the first lock wait timeout I still don't like the error results because it is hard to identify for retry purposes; whatever the case, here they are; NOTE these WILL all fail right now and that is expected, these are in anticipation of new Service Engine features to automatically recover from these errors
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573813 13f79535-47bb-0310-9956-ffa450edef68
2007-09-08 10:32:18 +00:00
David E. Jones fc67258517 Redid transaction management for poller; noticed that this is using a dangerous pattern so changed to use the one more common and help catch some corner cases, and make SURE the transaction gets closed; based on observation in a production server that this code appears to have locked a bunch of stuff and then the commit never happened, so the poller was dead until that went away
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573800 13f79535-47bb-0310-9956-ffa450edef68
2007-09-08 08:25:19 +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
David E. Jones 2d744d0102 Added sequence-bank-size to configure sequence bank sizes on a per-entity basis
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573785 13f79535-47bb-0310-9956-ffa450edef68
2007-09-08 05:32:53 +00:00
Andrew Zeneski 24c6afd4ab added missing ui label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573664 13f79535-47bb-0310-9956-ffa450edef68
2007-09-07 18:38:01 +00:00
Andrew Zeneski a39e0f07a0 changed toSring() method to NOT display encyrpted fields for security; add new toStringInsecure() to get the insecure string value
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573650 13f79535-47bb-0310-9956-ffa450edef68
2007-09-07 18:00:27 +00:00
Andrew Zeneski 6548a71c1e implementation (from Anil Patel) to support restricting changed passwords to not allow the use of a previous password (the length of tracking is configurable in security.properties)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573458 13f79535-47bb-0310-9956-ffa450edef68
2007-09-07 04:58:35 +00:00
David E. Jones fb4a0080b3 Fixed bugs in recently refactored FreeMarkerWorker: a Reader was always being created even if the template was cached, also the reader was never closed which means files stayed open until the garbage collector cleaned up these objects which on busy production systems could lead to many thousands of open files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573442 13f79535-47bb-0310-9956-ffa450edef68
2007-09-07 04:01:25 +00:00
Andrew Zeneski c2c2de5580 dispatcher was ignore the results of pre-auth and pre-in-validate eca responses
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573300 13f79535-47bb-0310-9956-ffa450edef68
2007-09-06 15:35:35 +00:00
David E. Jones 1d6d5edea5 Refactor of service def attribute default-value stuff, fixes the corner case found in OFBIZ-1226; was able to get through test case that previously erred out
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573140 13f79535-47bb-0310-9956-ffa450edef68
2007-09-06 03:25:29 +00:00
David E. Jones 1bd07f8dd8 Small message change so you know which permission is being printed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573137 13f79535-47bb-0310-9956-ffa450edef68
2007-09-06 03:02:18 +00:00
David E. Jones e3feec113a Fixed issue reported by Si in #OFBIZ-1226, and added comment to services.xsd to explain how this is used; BTW, the commit that caused this problem broke rule #1 of first do no harm, that broke existing functionality to add something new that didn't work either
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573126 13f79535-47bb-0310-9956-ffa450edef68
2007-09-06 00:47:47 +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
David E. Jones 5d26a3e817 Finally adding stuff for Sets like the Map and List stuff
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572841 13f79535-47bb-0310-9956-ffa450edef68
2007-09-04 23:39:48 +00:00
David E. Jones 136b14faf5 Small format change only in TransactionUtil; in EntityDataAssert fixed a couple of NPE cases and improved to make much more robust
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572413 13f79535-47bb-0310-9956-ffa450edef68
2007-09-03 20:22:51 +00:00
Jacques Le Roux e0504ef18d A patch from Adrian Crum for an issue from Bilgin Ibryam"Changing the language in party manager is broken" (https://issues.apache.org/jira/browse/OFBIZ-1223)
This patch définitively corrects the problem David raised + some cosmetic UI changes

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572375 13f79535-47bb-0310-9956-ffa450edef68
2007-09-03 15:56:51 +00:00
Jacques Le Roux 02e0beac3c Revert 572172 on David's advice
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572322 13f79535-47bb-0310-9956-ffa450edef68
2007-09-03 13:24:16 +00:00
David E. Jones c5e71667f6 Added some test cases for deadlock and lock wait timeout errors to be used when developing auto retry feature in service engine; note that this isn't implemented yet so these (usually not used) test cases will fail, if that becommes a problem we can comment them out in the test def xml file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572280 13f79535-47bb-0310-9956-ffa450edef68
2007-09-03 10:45:24 +00:00
David E. Jones 04170fbfa1 Updated for change in test def xml spec
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572278 13f79535-47bb-0310-9956-ffa450edef68
2007-09-03 10:43:06 +00:00
David E. Jones 0b43b8b6d8 Changed entity-xml-assert to entity-xml with an action element to specify either assert or load; note that parsing code still supports old entity-xml-assert
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572276 13f79535-47bb-0310-9956-ffa450edef68
2007-09-03 10:41:28 +00:00
David E. Jones eba6f60b7b Fixed NPE caused by passing in a null context, now creates an empty one for use throughout the call
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572275 13f79535-47bb-0310-9956-ffa450edef68
2007-09-03 10:38:34 +00:00
Jacques Le Roux 0f1cc4f129 A patch from Bilgin Ibryam "Service detail screen in webtools is broken" (https://issues.apache.org/jira/browse/OFBIZ-1218)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572174 13f79535-47bb-0310-9956-ffa450edef68
2007-09-02 21:59:06 +00:00
Jacques Le Roux 504c87ddca A patch from Adrian Crum for an issue from Bilgin Ibryam"Changing the language in party manager is broken" (https://issues.apache.org/jira/browse/OFBIZ-1223)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572172 13f79535-47bb-0310-9956-ffa450edef68
2007-09-02 21:46:01 +00:00
David E. Jones 3ad6776a70 Small comment change
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571663 13f79535-47bb-0310-9956-ffa450edef68
2007-09-01 01:02:46 +00:00
David E. Jones 427f56690c Added enum value for a conventional variable name to use for this to avoid errors and still keep the enum auto-fill and checking
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571289 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 20:06:10 +00:00
Andrew Zeneski 431a0c4f34 few small moficiations (better error checking) to the javamail container
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571262 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 18:12:02 +00:00
Andrew Zeneski 1413bff0a3 simple implementation of textfield readonly attribute (for html forms)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571237 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 16:41:09 +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
David E. Jones 6d1e9778c8 After more testing it looks like I was wrong about this, changing back to use getWriter instead of getOutputStream for Tomcat
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@570857 13f79535-47bb-0310-9956-ffa450edef68
2007-08-29 16:31:33 +00:00