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
David E. Jones
9b347446c8
A few improvements to make error logs less redundant
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@570729 13f79535-47bb-0310-9956-ffa450edef68
2007-08-29 10:03:11 +00:00
David E. Jones
6ced65fcb1
Cleaned up exception and error handling in getNextSeqId code, was redundant and the tx code in getNextSeqIdLong that getNextSeqId always calls wasn't handling commits right
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@570706 13f79535-47bb-0310-9956-ffa450edef68
2007-08-29 08:58:10 +00:00
Jacques Le Roux
a494d53d5e
A patch from Adrian Crum "Improved Title Bar In Webtools Entity Screens" ( https://issues.apache.org/jira/browse/OFBIZ-1215 )
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@570576 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 21:30:08 +00:00
David E. Jones
2e96095d1c
A few extensions to the watchEntity service
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@570297 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 03:23:23 +00:00
David E. Jones
529ac4df28
Changed so that when set and action elements are interleaved they run in the order specified instead of all set ops and then all actions ops
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@570283 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 00:48:50 +00:00
David E. Jones
e20fb4bd36
Added set element for Entity ECA rules, and a simple service to be run as an EECA for watching entire entities or single fields on entities
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@570282 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 00:47:58 +00:00
David E. Jones
772fb21047
Added generic invalid status change message
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@570036 13f79535-47bb-0310-9956-ffa450edef68
2007-08-27 08:36:30 +00:00
David E. Jones
4364e99744
Added example of how to do statusEndDate for a status date range, plus other little cleanups
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@570035 13f79535-47bb-0310-9956-ffa450edef68
2007-08-27 08:35:45 +00:00
David E. Jones
20916970e7
Small improvement for the messages when an ECA rule evals to true or false
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@569763 13f79535-47bb-0310-9956-ffa450edef68
2007-08-26 04:32:02 +00:00
David E. Jones
c7bfe4beb7
Added little method like the addToDoubleInMap to do addToListInMap
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@569749 13f79535-47bb-0310-9956-ffa450edef68
2007-08-26 01:01:58 +00:00
Andrew Zeneski
3cd7c25f6f
implemented a simple date based ECA condition
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@569693 13f79535-47bb-0310-9956-ffa450edef68
2007-08-25 16:02:35 +00:00