Commit Graph
10472 Commits
Author SHA1 Message Date
Jacques Le Roux 0323d6f48c No functional changes, just organizes imports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1387567 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 12:55:58 +00:00
Jacques Le Roux 934cede069 Fix an issue with WSDL and nillable attribute (can be only in 1st level element)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1384251 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 09:37:58 +00:00
Jacques Le Roux 0cef05fa6b Trivial changes on r1383340
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1383381 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 12:36:08 +00:00
Erwan de Ferrieres 901c176aa2 A patch from Nicolas Malin - OBFIZ-5032 - Complete French traduction for common component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1383340 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 10:35:57 +00:00
Erwan de Ferrieres 21c0d55c09 Upgrading to tomcat 7.0.30
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1381977 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 11:11:42 +00:00
Jacques Le Roux 9dcd3564e3 Moves the workflow component to attic
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1381884 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 05:39:26 +00:00
Jacques Le Roux 678a145d75 A patch from Chatree Srichart for "Fields in extended entity do not override attribute enable-audit-log" https://issues.apache.org/jira/browse/OFBIZ-4844
Tested with NoteData.noteParty


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1381559 13f79535-47bb-0310-9956-ffa450edef68
2012-09-06 11:24:01 +00:00
Erwan de Ferrieres d8a1e145ea A patch from Leon - OFBIZ-5025 - jquery validator localization looks for messages_cn.js for locale zh_CN and _tw for zh_TW
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1381146 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 11:17:02 +00:00
Hans Bakker 3bca44db12 OFBiz 5018: LoginWorker does not check a base permission for the root mount point
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1378020 13f79535-47bb-0310-9956-ffa450edef68
2012-08-28 08:30:10 +00:00
Sascha Rodekamp 1985a8206e Lookup Form not working with Arabic characters (https://issues.apache.org/jira/browse/OFBIZ-4915): A patch from Taher Alkhateeb: Any field in a form that uses the <lookup target-form-name="WhateverForm"/> would not return results when searching in Arabic. I suspect the main offender is javascript/jQuery when parsing user input.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1377988 13f79535-47bb-0310-9956-ffa450edef68
2012-08-28 06:41:07 +00:00
Jacques Le Roux 5cc959344a CVE-2012-3506: Unlike descriptions and values, tooltips were not encoded, thanks to Scott for spotting it (r1377382 was flawed)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1377388 13f79535-47bb-0310-9956-ffa450edef68
2012-08-26 08:35:34 +00:00
Jacques Le Roux 3b1205669c Revert r1377382, this was not complete
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1377386 13f79535-47bb-0310-9956-ffa450edef68
2012-08-26 08:32:46 +00:00
Jacques Le Roux 5016c7291f Unlike descriptions and values, tooltips were not encoded, thanks to Scott for spotting it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1377382 13f79535-47bb-0310-9956-ffa450edef68
2012-08-26 08:21:05 +00:00
Jacques Le Roux efae3a2e7e No functional changes: removes now useless comments (since r1170125)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1377253 13f79535-47bb-0310-9956-ffa450edef68
2012-08-25 10:24:12 +00:00
David E. Jones 358f61fdbc Added ext-test and ext-demo to all datasources so that install without specifying readers behaves as expected (ie loads all readers)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1376379 13f79535-47bb-0310-9956-ffa450edef68
2012-08-23 06:09:36 +00:00
Erwan de Ferrieres 5f2e3fffe5 Updating Apache HttpComponents to their latest version
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1376296 13f79535-47bb-0310-9956-ffa450edef68
2012-08-22 22:40:25 +00:00
Erwan de Ferrieres 0cd3370cc9 updating other Apache-commons libraries to their latest version
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1375502 13f79535-47bb-0310-9956-ffa450edef68
2012-08-21 12:29:14 +00:00
Erwan de Ferrieres 792e6a1729 updating some Apache-commons library to the latest versions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1375145 13f79535-47bb-0310-9956-ffa450edef68
2012-08-20 17:56:21 +00:00
Adrian Crum e31fc1c801 Some Job Scheduler related notes/warnings - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374736 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 11:33:07 +00:00
Adrian Crum c8ab3eb95d Fixed a bug in JobPoller.java where the poller thread would start before all of the components were loaded - causing exceptions to be thrown and unpredictable behavior.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374725 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 10:36:46 +00:00
Adrian Crum 0828388d85 More work on Start.java - added the capability for client code to query the class for server state.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374720 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 09:59:31 +00:00
Adrian Crum 9a7cbede73 Some work on Start.java:
1. Removed unused method.
2. Consolidated/separated the Commons Daemon implementation - this just makes it easier to distinguish it from the rest of the code.
3. Changed some public methods to private, and added a private constructor.
4. Made ServerState enum public.

These changes are in preparation for enabling client code to query the class for the server's state.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374711 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 08:46:21 +00:00
Adrian Crum 3425bca428 Re-organize and format code in Start.java - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374705 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 08:05:46 +00:00
Adrian Crum 5b24afe6ab Fixed generics in Config.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374704 13f79535-47bb-0310-9956-ffa450edef68
2012-08-19 08:04:43 +00:00
Adrian Crum b499717344 Updated Web Tools Thread List screen to reflect changes in the Job Scheduler.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374625 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:06:44 +00:00
Adrian Crum aaf10dce39 Small fixup for my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374619 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 17:48:55 +00:00
Adrian Crum e130531db9 Moved JobInvoker.java code to AbstractJob.java, removed JobInvoker.java. Also worked on the Job API - the meaning of "runtime" was a little muddled, so I made "runtime" mean job execution elapsed time, and added a getStartTime method to the Job interface. This should make the distinction clearer.
This commit completes the Job Scheduler overhaul.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374618 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 17:43:03 +00:00
Adrian Crum 6d132e8bd7 A small bug fix in JobManager.java - re-initialize a reused variable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374603 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 16:05:01 +00:00
Adrian Crum 2e4cb54075 Refactored JobPoller.java - the JobPoller instance is now a singleton.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374596 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 15:21:14 +00:00
Adrian Crum 7dc28a9f5d Small change to GenericServiceJob - restore job state in the deQueue method so client code can keep trying to submit the job.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374588 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 14:28:13 +00:00
Hans Bakker 655c38dd6e adapt ant create component target for new security organization
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1374160 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 06:45:07 +00:00
Erwan de Ferrieres da60e4d9f4 Updating to latest nekohtml release 1.9.16
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1373435 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 14:44:31 +00:00
Adrian Crum 25c04f28af Partially reverting rev 1372738. As Scott pointed out on the dev mailing list, the conditions requiring a cast are rare - rendering those optimizations ineffective.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1373239 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 07:08:57 +00:00
Sascha Rodekamp 1e0411fb47 Cleanup javascript jquery folder and update jquery references for the elrte editor
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372757 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 07:52:59 +00:00
Sascha Rodekamp 5b8548563a Update jQuery to Version 1.8 and jQuery UI to Version 1.8.22
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372751 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 07:21:15 +00:00
Adrian Crum afd4e8b3c0 Small GenericEntity optimization - remove instanceof checks in getXxx methods.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372738 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 06:02:58 +00:00
Adrian Crum 85d2a421a0 Updated ofbiz-properties.xsd.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372510 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 16:58:31 +00:00
Adrian Crum f90c42db0f Add the deQueue method to AbstractJob to solve a workflow build problem. Patch from Leon - https://issues.apache.org/jira/browse/OFBIZ-5007.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372501 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 16:41:32 +00:00
Adrian Crum 6fd584e207 Added Job Manager/Job Poller documentation to the service-config.xsd file. Hopefully this will help everyone understand the Job Scheduler behavior and what the settings do.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372088 13f79535-47bb-0310-9956-ffa450edef68
2012-08-12 13:17:17 +00:00
Adrian Crum b3ea46d9a5 Changed JobPoller shutdown behavior - stop threads immediately and dequeue queued jobs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371863 13f79535-47bb-0310-9956-ffa450edef68
2012-08-11 03:39:03 +00:00
Adrian Crum a0e18a8d73 Removed unnecessary entity condition that I added earlier.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371862 13f79535-47bb-0310-9956-ffa450edef68
2012-08-11 03:36:58 +00:00
Adrian Crum 5e05a4df42 JobManager and PersistedServiceJob improvements - based on feedback from Scott.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371593 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 07:50:37 +00:00
Adrian Crum d8f2291c51 Oops, I forgot to wrap the purge find operation in a transaction.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371163 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 11:11:00 +00:00
Adrian Crum 7d7a4017d6 JobManager improvement: Have the JobManager handle purging old jobs - instead of the purgeOldJobs service. Old jobs will be purged when the job queue is idle.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371140 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 10:15:59 +00:00
Adrian Crum 8d6aaecc85 JobManager bug fix - ensure consistent return value in poll method. Also some log message cleanups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1371119 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 09:26:40 +00:00
Adrian Crum 0375909e6b Fixed the Job Scheduler so jobs are not lost during heavy server load.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370566 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 22:10:27 +00:00
Adrian Crum 3627d8bbc8 More work on the Job Scheduler:
1. Gave the job queue a fixed size so the job poller can't create an out-of-memory condition.
2. Changed min/max thread settings to more conservative values.
3. Changed JobSandbox polling code to accept a limit argument to control the number of records retrieved. Also used ELI to limit memory use.
4. Improved JobManager reloadCrashedJobs method to recover queued jobs that were being missed previously.

At this stage the Job Scheduler has been fixed to not crash/saturate the server, but it can still lose jobs. That will be fixed in the next commit.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370437 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 19:11:06 +00:00
Adrian Crum aea294945e Added a warning comment to ResourceLoader.java. DOM object trees should not be kept in memory because they are big. Keep in mind the entire XML document is in the DOM tree - including comments, license headers, etc.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370162 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 10:47:41 +00:00
Adrian Crum 2b3cf6c431 Eliminated/moved some classes in the Job Scheduler.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370157 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 10:02:03 +00:00
Sascha Rodekamp 6ffa178bca js issue causes error when invalid dates are entered (https://issues.apache.org/jira/browse/OFBIZ-4982). A patch from Christoph Neuroth: Reproduce: Enter "123" in a DateField. This will trigger a JS exception and the invalid value will be sent to the server on form submission, probably causing server-side exceptions in badly written backend code, resulting in really bad error messages for the user.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370123 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 05:51:10 +00:00