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
Si Chen
4efd1f3554
Catch NPE in ResourceBundleMapWrapper.containsKey(Object)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@581979 13f79535-47bb-0310-9956-ffa450edef68
2007-10-04 18:20:25 +00:00
Jacopo Cappellato
5d90630c2a
Fixed bug reported by Jan Valkovic in ML.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@581919 13f79535-47bb-0310-9956-ffa450edef68
2007-10-04 14:15:03 +00:00
Jacques Le Roux
f4771964a0
Removed file because doubt on merge. Replace with this new version
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@580795 13f79535-47bb-0310-9956-ffa450edef68
2007-09-30 21:45:59 +00:00
Jacques Le Roux
e91c0682fb
Removed file because doubt on merge. Will replace with new version just after
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@580794 13f79535-47bb-0310-9956-ffa450edef68
2007-09-30 21:44:15 +00:00
Jacques Le Roux
ed3e61a774
From a Michael Brohl's suggestion "HTML Editor / Whizzywig code is not generated properly when using more than one HTLM editor in one page" ( https://issues.apache.org/jira/browse/OFBIZ-1264 ) - OFBIZ-1264
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@580774 13f79535-47bb-0310-9956-ffa450edef68
2007-09-30 19:39:01 +00:00
Jacques Le Roux
7af00d048d
A patch from Bilgin Ibryam "javascript confirmation bug" ( https://issues.apache.org/jira/browse/OFBIZ-1257 ) - OFBIZ-1257
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@580767 13f79535-47bb-0310-9956-ffa450edef68
2007-09-30 18:54:35 +00:00
Andrew Zeneski
0df41168ce
another change to XML output for test cases, now logs each ofbiz test suite in its own file
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@580550 13f79535-47bb-0310-9956-ffa450edef68
2007-09-29 06:43:30 +00:00
Jacopo Cappellato
061dc78bb2
Forgotten to include this in my last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579921 13f79535-47bb-0310-9956-ffa450edef68
2007-09-27 06:45:39 +00:00
Jacopo Cappellato
c3c7cdb4c3
Better handling of global variables to set the url for the application logo: now ONE global variable is set in GlobalDecorator and this will affect all the applications; if we need a custom logo for each application then we will have to uncomment the variable setting in the application's main-decorator.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579920 13f79535-47bb-0310-9956-ffa450edef68
2007-09-27 06:43:11 +00:00
Jacopo Cappellato
520547c6e5
Added seed data for VIEW permission to the Oagis and ProjectMgr components.
...
Added base permissions to the Example*, Oagis, ProjectMgr components.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579654 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 13:55:54 +00:00
David E. Jones
78f33e304e
Cleaned up how sync is done for cache in renderTemplateFromString, based on comments from Adrian Crum in Jira OFBIZ-1258
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579571 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 10:34:26 +00:00
David E. Jones
72e104f08d
Updated derby to 10.3.1.4, which requires recent change in DatabaseUtil, but is now tested with the new stuff there
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579552 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 10:00:35 +00:00
David E. Jones
a843682ce1
Applied patch from Karl Eilebrecht, cleaned up by Adrian Crum, to fix startup issues in SQL Server and other databases, including the latest version of Derby which I'll now put in here; after the patch I made a few changes to keep the stuff that tries to get data for all tables in one call as that tends to perform MUCH faster on certain databases, but now checks for errors and will try other methods as needed; right now this is only being done for primary key info, but the same pattern could be applied in other places if needed (and it may very well be); this should close Jira #OFBIZ-1020
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579551 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 09:59:26 +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
David E. Jones
c5ff0fc828
Added result-to-result feature for seca rules, based on patch from Adrian Crum but changed to be more consistent with context-to-result, AND to only copy over values that are valid for the service that triggered the eca; Jira #OFBIZ-1237
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579424 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 01:32:37 +00:00
Andrew Zeneski
2efbbe6cca
fixes possible NPE (from Anil Patel)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579088 13f79535-47bb-0310-9956-ffa450edef68
2007-09-25 06:29:34 +00:00
Si Chen
23be2b01f3
Fix bug in request-redirect when attributes contains error messages of type MessageString
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@578886 13f79535-47bb-0310-9956-ffa450edef68
2007-09-24 17:36:22 +00:00
Si Chen
c396b92ff4
Fix some potential NPEs from Oleg Andreyev OFBIZ-1244
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@578874 13f79535-47bb-0310-9956-ffa450edef68
2007-09-24 16:39:40 +00:00
David E. Jones
dd9811fd17
Small tweak so that it doesn't blow up when doing the all entity thing with a fromDate; unfortunately the all entities thing no longer checks for view entities and not auto-checking those boxes, which is lame and I wish whoever removed it hadn't, but oh well
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@578752 13f79535-47bb-0310-9956-ffa450edef68
2007-09-24 10:53:04 +00:00
Andrew Zeneski
b330fea32e
fixed bug where runtime data was not being deleted
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@578274 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 21:03:19 +00:00
Andrew Zeneski
ebfbea1b9a
uses nested trys
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@578273 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 21:03:03 +00:00
Alfred Maxwell Byers
f751ac43e1
Tuning the method so that it gives passed dataResourceId priority over passed contentId, but not
...
over content.dataResourceId.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@578181 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 15:49:07 +00:00
David E. Jones
1c746f7234
Chagned type for very-long in MySQL from TEXT to LONGTEXT to be more similar to what we expect in other databases; TEST has a max size of 64KB, LONGTEXT has a max size of 4GB
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577960 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 02:04:29 +00:00
Alfred Maxwell Byers
e0d985e8cc
The content widget was not using the dataResourceId attribute. To make it work I had to
...
copy someone's brilliant WidgetContentWorker pattern.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577932 13f79535-47bb-0310-9956-ffa450edef68
2007-09-20 21:30:44 +00:00
Jacques Le Roux
fdf6348bf9
Transparency added
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577740 13f79535-47bb-0310-9956-ffa450edef68
2007-09-20 13:35:58 +00:00
Alfred Maxwell Byers
c7c2045158
Just implementing Adam's request.
...
Line 51 now looks like:
if (this.alias.equals(aliases[x])) {
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577544 13f79535-47bb-0310-9956-ffa450edef68
2007-09-20 04:44:23 +00:00
Andrew Zeneski
1ef6a9f731
changed where semaphores are released (in finally block to make sure it is run even in the case of an exception) implemented per-service configurable settings for wait/sleep (sleep in milliseconds; wait in seconds) semaphore-wait-seconds="300" (default) is 5 minutes. The max time a service will wait before failing to run.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577141 13f79535-47bb-0310-9956-ffa450edef68
2007-09-19 04:04:08 +00:00
David E. Jones
f63513b53f
Refactored to use a loop instead of recursion for the retries so the stack doesn't get so huge; also added notes about some things that need to be done on this semaphore stuff
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577139 13f79535-47bb-0310-9956-ffa450edef68
2007-09-19 03:06:55 +00:00
Andrew Zeneski
b1478118c4
changed so the purgeOldJobs service can only run one at a time to prevent locking on the job sandbox table; when it is running on multiple application servers at the same time
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577097 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 22:56:19 +00:00
David E. Jones
4c02885546
Added global-commit-post-run event that gets a context after the service and eca rules run
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576815 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 10:04:50 +00:00
David E. Jones
8da94ddff4
Changed to use FlexibleLocation so that for url resource loaders in component config files you can use the component:// style url for resources in components
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576796 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 09:24:19 +00:00
Scott Gray
a1b604adf6
Changed all occurances of new BigDecimal("0") to BigDecimal.ZERO and likewise for BigDecimal.ONE
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576773 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 08:30:58 +00:00
Alfred Maxwell Byers
eb03dea061
RenderTemplate was not working for .ftl files that are used as templates in CMS.
...
The "templateLocation" value in those cases is something like "DATARESOURCE:<id>"
and that causes makeReader(...) to fail.
renderTemplateFromString(...) still checks to see if a cached template exists, but
if it doesn't and since it has the template string, it builds the template from the
"templateString" and puts it in cashe.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576766 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 08:07:29 +00:00
Alfred Maxwell Byers
48b92accf0
Added FreeMarkerWorker.getSiteParameters to render method.
...
This data, particularly "rootDir", is used loading FTL content templates.
I figured it could not hurt normal screen rendering.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576757 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 07:49:16 +00:00
David E. Jones
1aeaa42a42
Added test of global-commit and global-rollback, also commented out the failing tests so that these will all succeed, as solutions are found for these other tests they should be added back in, those are the lock wait timeout tests
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576730 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 06:46:04 +00:00
Andrew Zeneski
d327438d57
implemented junit xml formatted output to test cases; new options -results=filename default file outputs to runtime/logs/test-junit.xml
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576686 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 04:27:14 +00:00
Andrew Zeneski
c239535138
changed log level to stop annoying error when running test cases
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576678 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 03:53:12 +00:00
David E. Jones
a1a4271304
A small change to make it possible to attach these to a transaction other than the currently active one (like a paused one, for example)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576661 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 02:09:52 +00:00
David E. Jones
559723ad32
Changed to use BigDecimal.valueOf instead of constructor, for something closer to the expected results; thanks to Jacopo and Martin Anderson for comments on this
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576660 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 02:09:09 +00:00
Scott Gray
c501041f58
Applied patch from myself based on comments from David E Jones in an issue reported by Pham Hoai Van OFBIZ-152, Removed the boolean keepLocalReaders and any references to it since the false setting is no longer supported.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576331 13f79535-47bb-0310-9956-ffa450edef68
2007-09-17 09:47:50 +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
Scott Gray
05432d31b3
typo
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576324 13f79535-47bb-0310-9956-ffa450edef68
2007-09-17 09:23:32 +00:00
David E. Jones
ad308bf854
Small validation improvement
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575853 13f79535-47bb-0310-9956-ffa450edef68
2007-09-15 02:07:03 +00:00
Jacopo Cappellato
fc8336c7a7
Updated log4j jar to latest release: this fixes the annoying NPE at startup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575675 13f79535-47bb-0310-9956-ffa450edef68
2007-09-14 13:37:24 +00:00
David E. Jones
19ab65004c
Small improvement and quieting of log message
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575446 13f79535-47bb-0310-9956-ffa450edef68
2007-09-13 20:49:44 +00:00
Andrew Zeneski
4202c6ecac
refactored entity engine factory and transaction factories to allow full configuration of managed connections through entityengine.xml. changed all connection factories to be instance objects (singleton pattern) implementing the new ConnectionFactoryInterface interface.
...
Two working connection factories are included now, Minerva and DBCP.
Minerva is still default until more testing can be done on DBCP; to change this use the DBCPConnectionFactory instead of MinervaConnection factory (see entityengine.xml)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575396 13f79535-47bb-0310-9956-ffa450edef68
2007-09-13 18:32:31 +00:00
David E. Jones
4c56bd82d9
Fixed a couple of issues with the tx tests, for deadlock the problem was with the test, also changed to hide error with the rollback only set and attempt to commit so doesn't show up as error or failure in test case
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575366 13f79535-47bb-0310-9956-ffa450edef68
2007-09-13 16:47:36 +00:00
Andrew Zeneski
b9fe2735e4
added DBCP connection pool and supporting class; need to modify ConnectionFactory to enable this; needs more testing before 'production' ready (snapshot of 1.3 DBCP)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575181 13f79535-47bb-0310-9956-ffa450edef68
2007-09-13 06:10:34 +00:00
Andrew Zeneski
d4c785dad4
implemented ServiceSemaphore; built in locking to prevent services (when defined) from running at the same time; uses database record to work with a cluser of application servers. Three modes are available:
...
None - Does no locking
Wait - Waits for the previous service to complete (currently up to 5 minutes)
Fail - Fails when the same service is already running
use the semaphore="none|wait|fail" in the service definition (none is the default when the attribute is not defined)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575074 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 20:58:44 +00:00