Commit graph

  • 9491159dbb * Add comment to Properties keyMap field hns 2006-08-09 09:57:05 +00:00
  • d47a2de6ff * Implement new case insensitive mapping that uses an in-between key lookup table and preserves capitalization of property keys. hns 2006-08-09 09:55:24 +00:00
  • 4ee8b35d80 * Store property to relation mapping with lower case property name as ResourceProperties will preserve key capitalization from now on. hns 2006-08-09 09:52:10 +00:00
  • 56f83cb75b * From Manfred's last patch for bug 468: - Factor out repetitive SQL query building tasks into DbMapping.appendCondition() - Implement automatic extended prototype filter for collections - add prototype ids, but with simplified implementation (be agnostic about numeric ids vs. prototype names) * Rewrite relational node insertion code * Make better use of DbColumn class wherever possible * Minor code improvements throughout the place hns 2006-08-08 15:37:09 +00:00
  • 37f26241c4 increased version number to 1.5.1 zumbrunn 2006-08-07 13:49:14 +00:00
  • 7860cbdde2 * added String.NULL as constant containing the empty string "" * added global- and HopObject-related macros to core p3k 2006-08-06 11:27:56 +00:00
  • 2c2e9fbbb5 * Remove READONLY attribute from native HopObject methods. hns 2006-08-04 08:31:41 +00:00
  • f5b90c23f1 Cumulative patch: * Factor out invokeOnInit() method from Node.init() in order to implement onInit() invocation for the embedded database. * Make properties starting with an _underscore transient in the embedded database, mirroring the behaviour of the object relational storage. * Keep filter.additionalTables from being included in prefetchNode() queries, fixing bug 472. * Some minor code cleanup and simplification. hns 2006-07-29 12:01:52 +00:00
  • 50d4eb0d93 * Immediately convert java.io.File instance to absolute path names to avoid the many pitfalls and gotchas of relative file names. hns 2006-07-25 20:07:59 +00:00
  • bd8b266fa9 * Pass on return values from FTPClient class. Fixes bug 469. hns 2006-07-25 13:01:02 +00:00
  • 21be4d8651 * Add -h $HELMA_HOME to helma command line arguments. hns 2006-07-24 18:08:13 +00:00
  • b3c82d5a06 * added missing dontEnum() call for String.prototype.parseJSON * shortened toJSONString() method to simply toJSON() p3k 2006-07-24 17:18:52 +00:00
  • ef369a61bf initial check-in as adaptation of code at http://www.json.org/json.js p3k 2006-07-24 17:09:23 +00:00
  • 80b6083da7 added count, enbase64 as well as debase64 methods p3k 2006-07-24 16:03:57 +00:00
  • 69cad60e86 * Keep in mind that repository list may grow while we're looping over it in checkRepositories(). Use a hashmap instead of a long[] to track last scan times. (fixes bug 470) hns 2006-07-24 14:57:49 +00:00
  • 9405046ee5 * Consolidate location for launcher.jar to HELMA_INSTALL (bug 471) hns 2006-07-24 13:44:15 +00:00
  • 971a740a0a * changed signature (it's more important to provide a database name than user and password) * added var keyword before constants * check user and password individually * added execute() method p3k 2006-07-18 15:09:36 +00:00
  • f2cc5103b4 * fixed decimal format in format method * removed unnecessary condition in toPercent method p3k 2006-07-18 08:24:59 +00:00
  • 29407f6444 * Apply patch from Stefan Rinner to set the Date header. http://helma.org/pipermail/helma-user/2006-June/006547.html hns 2006-06-28 20:06:03 +00:00
  • e85a87f8d2 * Update to jakarta commons-fileupload 1.1.1. hns 2006-06-21 08:55:03 +00:00
  • ddb6119b4d * Update to jakarta commons-io 1.2. hns 2006-06-21 08:54:44 +00:00
  • 83dd1e7c1f * Make sure we do not remove HopObject constructors if they aren't referenced during global code compilation anymore. Fixes bug 464 <http://helma.org/bugs/show_bug.cgi?id=464> hns 2006-06-19 18:58:38 +00:00
  • 6a96d0c7a0 * Implement getResource() and getResources() for scripted java objects. hns 2006-06-19 13:56:57 +00:00
  • 7c658fa9db * Add support for ID generation using PostgreSQL sequence syntax hns 2006-06-17 11:52:46 +00:00
  • 1213c464e3 * Add isPostgreSQL() method to DbSource and DbMapping. hns 2006-06-17 11:50:59 +00:00
  • 332f98cbd0 * Always use select max id generator for MySQL databases since they don't support sequences. hns 2006-06-16 17:33:35 +00:00
  • 118c9d9f2b * Implement isMySQL() methods to query if the db behind the mapping/source is MySQL. hns 2006-06-16 17:31:29 +00:00
  • 46a14e1941 * Use logError() instead of logEvent() to log exceptions. * Use Exception constructor that takes original exception as second argument to propagate errors. This is safe since we now require Java 1.4 anyways. hns 2006-06-16 17:18:51 +00:00
  • c41fed49cc - re-added forceCreate argument to createIndex() that was accidentally removed - changed addIndexes(): it now accepts a js-array containing (ram/fs)directories, the conversion into a java array is done by the method itself - minor documentation and indentation fixes grob 2006-06-15 07:38:19 +00:00
  • 0ccb0f1010 * Convert file names to absolute paths in serialize()/deserialize() to avoid names being interpreted relative to root on Mac OS X. hns 2006-06-13 10:46:50 +00:00
  • 9eb4285880 * Update to Javamail 1.4. hns 2006-06-07 12:44:17 +00:00
  • 5910237039 * Update to Java Activation Framework 1.1. hns 2006-06-07 12:43:25 +00:00
  • c9463fe57a fix bug causing an exception when there's no app directory at all p3k 2006-06-06 17:18:03 +00:00
  • 1c51121bdc * Implement ETag based conditional GET for forwarded resources. (ETag is based on last modified date and file size) helma_1_5_0 hns 2006-06-03 07:13:06 +00:00
  • c82daee623 * Do not set buffer length in BufferedInputStream constructor, default lenght will do ok. * Fix bug that potentially set compression level to NaN in Zip.add(). hns 2006-06-02 15:46:20 +00:00
  • 620ce4c305 Fixed all.js to correctly reference core files zumbrunn 2006-05-30 18:34:31 +00:00
  • cab28b406a * Fold default properties checksum calculation into getChecksum() so changes in default properties will get picked up even if they were already consumed by other child properties. * Reimplement update algorithm using a temporary ResourceProperties object to avoid getting into unconsistent state by invoking clear(). * Use uppercase name for final CACHE_TIME field. * Make update() synchronized as concurrent invocation could be absolutely harmful. hns 2006-05-26 14:41:50 +00:00
  • f122e203b3 * Add IPv6 localhost to default allowAdmin addresses, remove 192.168.0.1. Enhance comment. hns 2006-05-26 12:48:24 +00:00
  • 412ba832d2 * Unify check for JAVA_HOME and JAVACMD executable. The latter didn't work on Mac OS X. hns 2006-05-26 10:34:44 +00:00
  • e7a7969e9d * Bring default path names a bit up to date. hns 2006-05-25 19:46:34 +00:00
  • 63fc1fda7e * Use ScriptingEngine.serialize()/deserialize() to save and restore sessions. Fixes bug 461. hns 2006-05-24 12:29:09 +00:00
  • 22678cc604 Added a "# logDir = console" entry along with a suggestion of when to use it zumbrunn 2006-05-24 11:33:18 +00:00
  • 9d6d477e4e Updated readme file to reflect the changed requirement for a JRE 1.4 or higher zumbrunn 2006-05-23 14:18:39 +00:00
  • 3204eb14a6 * Helma 1.5 de facto requires Java 1.4 or greater. hns 2006-05-23 10:47:22 +00:00
  • b203fcc43e * Switch build version to 1.5.0 hns 2006-05-22 09:54:37 +00:00
  • 836ef1bb04 * Delete obsolete helma.objectmodel.db.Server class. hns 2006-05-22 09:52:54 +00:00
  • 1121dcbfdc * Consider conditional GET headers in RequestTrans.equals(). This fixes a bug where Mozilla/Firefox displayed an empty page when fetching the same page with different headers within a short timeframe. * Fix Last-Modified handler heading which was broken in more than one way. * Don't generate ETag headers for error pages. * Rename ResponseTrans.writeErrorReport() to reportError(). * Set response status to 500 (internal server error) in ResponseTrans.reportError(). hns 2006-05-18 20:54:08 +00:00
  • c8a3c3d702 * Implement conditional GET based on file last modified date in sendForward(). hns 2006-05-18 18:25:14 +00:00
  • 7b232f7eb1 * Use WeakReferences to store java object wrappers. Since they hold a reference to the wrapped objects, they prevent them from being garbage collected if stored as WeakHashMap values. * Clean up parsing of rhino.optlevel property. Don't run into exceptions and log an error message if it couldn't be parsed. * Remove some variable initializers that weren't necessary after all. hns 2006-05-12 13:30:47 +00:00
  • 676f4a06f0 * Make usage of deprecated Thread.stop() dependent on setting of requestTimeoutStop = true|false app property hns 2006-05-11 19:22:07 +00:00
  • 5c1714d855 * Implement getRepositories() method that returns an array containing the prototype's repositories * Some minor and/or cosmetic changes hns 2006-05-11 19:20:31 +00:00
  • 16046c5e71 * Add test if SQL connections are alive before returning them in getConnection(). * Add some javadoc comments and rename sqlCon to sqlConnections. hns 2006-05-11 18:36:56 +00:00
  • 7298b70d3b * Copy java source files over to work/src before compiling. This has the following implications: - It allows us to replace the __builddate__ token in Server.java without changing the original file. - It makes sure all files are recompiled each time, avoiding compatible type change errors. hns 2006-04-28 22:24:54 +00:00
  • 3902f06136 * Exit Helma if something important such as binding to a server port fails, rather than just logging the error. * Replace date in version string with __builddate__ replacement token. * Increase version number to 1.5.0. hns 2006-04-28 21:39:22 +00:00
  • 1b26370377 * Set thread field in updatePrototypes() already so it is already set when the RequestEvaluator calls Application.getDataRoot(), which may result in a function invocation (chicken and egg problem, sort of) hns 2006-04-28 13:58:01 +00:00
  • 7b622f8c54 * Only synchronize internal getter for per-thread scope, don't synchronize public get() or put() to avoid deadlocks. * Do not synchronize PropertyRecorder methods, instead mark fields as volatile. * Check for "global" reference before doing the default lookup in get(). hns 2006-04-26 15:52:25 +00:00
  • ae6d3738d2 * Make markAs(), setState() and getState() unsynchronized again, and make state field volatile instead, in order to prevent deadlocks. hns 2006-04-26 13:23:36 +00:00
  • 1611d75c3c changed apps.properties and the build script to include "modules" instead of helmaLib zumbrunn 2006-04-24 08:44:13 +00:00
  • 7b82ff2e81 changed version string to indicate CVS as the source for a build by default instead of an old date zumbrunn 2006-04-24 08:42:00 +00:00
  • 8edbd4e2bd changed license copyright date range to include 2006 zumbrunn 2006-04-24 08:40:17 +00:00
  • 6daa6c0794 Added Helma license notice zumbrunn 2006-04-24 08:27:00 +00:00
  • 36e9e09f7f changed keyword expansion zumbrunn 2006-04-24 07:19:11 +00:00
  • ebf02d851d added all.js files as convenience SingleFileRepositories to load all the Javascript library files in modules/core and/or modules/helma zumbrunn 2006-04-24 07:18:45 +00:00
  • 478df4b853 changed keyword expansion zumbrunn 2006-04-24 07:02:17 +00:00
  • 66876ba214 initial commit of modules with javascript library structure for Helma 1.5 zumbrunn 2006-04-24 06:58:02 +00:00
  • 75ebaa75be * ALWAYS try to tetermine the proper thread scope dynamically in GlobalObject.get(), otherwise we risk to run on the wrong thread scope for nested functions, which will result in buggy behaviour _only_ if the baked-in thread scope is currently active in another request (otherwise most of its properties will be unset and the lookup forwarded to the shared global object, which will proxy it to the proper thread scope). hns 2006-04-19 13:52:50 +00:00
  • 1186a277ae * Fix list index checks in list() and prefetch(). hns 2006-04-18 11:08:58 +00:00
  • d47c1f1643 * Allow non-script resources to be wrapped in SingleFileRepositories and use fake Global subrepository only for script resources. * Implement equals(), hashCode() and toString() in SingleFileRepository hns 2006-04-12 14:55:04 +00:00
  • 7fadb9ce20 * Add property read access to methods registered by PropertyRecorder. Fixes bug 458 <http://www.helma.org/bugs/show_bug.cgi?id=458>. * Make all PropertyRecorder methods synchronized. hns 2006-04-10 11:25:22 +00:00
  • 0aed9bbdc5 * minor fixes and beautification. hns 2006-04-10 10:07:42 +00:00
  • 0cb7650e6a * Add support for SingleFileRepository. hns 2006-04-07 14:40:20 +00:00
  • d4d13f5adc * Add support for SingleFileRepository. * Fix support for ZipRepository. hns 2006-04-07 14:39:54 +00:00
  • e431e18d45 * Add SimpleFileRepository for adding single global JavaScript files as repositories. hns 2006-04-07 14:39:08 +00:00
  • 65a11b1b08 * Add static emptyRepositories array to AbstractRepository. * hns 2006-04-07 14:37:11 +00:00
  • 820342fc6e * Use new WeakCacheMap class for wrapper cache. hns 2006-04-03 13:27:46 +00:00
  • a90c2e6615 * Introduce createTable() method in CacheMap to make internal table implementation overrideable for subclasses. * Add new WeakCacheMap class that uses java.util.WeakHashMap internally. hns 2006-04-03 13:27:04 +00:00
  • f759dbfa91 * Allow prototype name as HopObject constructor function. hns 2006-04-03 12:32:35 +00:00
  • edfdfd5a79 * Make sure global reference is always available, even if there is no per-thread scope (e.g. when compiling scripts) hns 2006-03-30 10:19:25 +00:00
  • e6824fe0ee * Remove unused import statement. hns 2006-03-30 10:17:53 +00:00
  • 80e0d4e012 * Clean up HopObject wrapper, move constructor code into separate HopObjectCtor class * Implement HopObject compilation trigger on HopObject constructor property access * Fix race condition in RhinoCore.updatePrototypes() that could result in failed requests at application startup time; tighten up synchronization. * Fix ListViewWrapper to perform static JS function setup rather than setting up functions for each wrapper. * Implement getOrderedView() in SubnodeList (pulled out of OrderedSubnodeList). * Cleaned up and simplified OrderedSubnodeList. * Change ordering for null properties: add at the end of the list instead of the beginning. * Cache nodes fetched in NodeManager.updateSubnodeList() hns 2006-03-21 16:52:46 +00:00
  • 91a92b6072 * Minor code cleanup: remove code that's been commented out since ages. hns 2006-03-20 15:11:11 +00:00
  • 55ab51da25 * Make apps.properties case insensitive again. The benefit of preserving case in default mountpoint just isn't worth the whole number of hard to debug case errors. hns 2006-03-09 13:07:54 +00:00
  • f6fe185e30 * Log error instead of throwing exception when more than one result is returned by accessname lookup. hns 2006-02-09 16:47:23 +00:00
  • 852543386c * Merging updateable_collections branch (with a few changes along the way) hns 2006-02-09 16:35:32 +00:00
  • d4ac3d2726 * Only log runnable cron jobs if debug = true hns 2006-02-09 14:17:32 +00:00
  • 34b1a8641a * Fix a potential memory leak: Don't allow entries list to grow indefinitely. If the list reaches a certain size (2000 entries), further entries are discarded. hns 2006-02-09 14:11:08 +00:00
  • e41f6c02f1 * Do not open file in constructor, we can do this lazily. hns 2006-02-09 14:09:48 +00:00
  • 2cea688e10 * Do not cast error/fatal messages to stderr in addition to log file. This may be nice in a development/debug setup, but it may be deadly in a deployment scenario. * Fix Indentation for Gzipper class. * Some minor code style fixes as proposed by Intellij. hns 2006-02-09 13:39:27 +00:00
  • c3cd2be291 * Check if property is set before trying to set its attribute in dontEnum(). Fixes bug 455. hns 2006-02-09 13:03:03 +00:00
  • cd047f9371 * Move NodeHandle->Node conversion for internal calls into run() because it requires a Transactor thread. hns 2006-02-09 12:54:29 +00:00
  • 181b7286d2 * Minor fix in error message composition. hns 2006-02-06 20:11:23 +00:00
  • c06106ec8d * Remove unnecessary code from executeCronJobs(). * Log errors for session logout and timeout parsing. * Some minor code cleanups as advised by Intellij. hns 2006-02-06 13:57:29 +00:00
  • afcef645b9 * Use logError() to log exceptions for internal, external and XML-RPC requests instead of logEvent(). * Try to handle InterruptedException properly by exiting the main request transactor loop. * No more need to catch Exceptions from Transactor.abort(). hns 2006-02-06 13:55:26 +00:00
  • 2f3f7d665c * Do not throw Exception in abort(). * Add comments to empty catch blogs to peacify Intellij. hns 2006-02-06 13:53:16 +00:00
  • abf807e0ad * No need to rethrow RedirectException from onRequest(): This was introduced in revision 1.65 to fix bug 65, but obsoleted in revision 1.99 when the other catch statement was removed. hns 2006-02-06 11:05:23 +00:00
  • cf875fbf48 * Fix copy/paste error: trying to cast instance variable to NodeHandle instead of argument. hns 2006-02-06 10:35:43 +00:00
  • d1279f6d41 * Rhino 1.5R5 with patch for bug 309957 https://bugzilla.mozilla.org/show_bug.cgi?id=309957 hns 2006-02-03 12:11:18 +00:00
  • f9f99408ab * Add getter for the app classloader. hns 2006-02-03 11:45:55 +00:00
  • ad9da0be95 * Upgrade to commons-fileupload 1.1 * Move check for multipart content inside try statement hns 2006-01-30 16:16:34 +00:00
  • 66016004d1 * add commons-io.jar to classloader which is needed by commons-fileupload 1.1 * do not fail if we can't get helma install path from launcher.jar, but print a warning. hns 2006-01-30 16:15:24 +00:00