Commit graph

2451 commits

Author SHA1 Message Date
hns
f122e203b3 * Add IPv6 localhost to default allowAdmin addresses, remove 192.168.0.1. Enhance comment. 2006-05-26 12:48:24 +00:00
hns
412ba832d2 * Unify check for JAVA_HOME and JAVACMD executable. The latter didn't work on Mac OS X. 2006-05-26 10:34:44 +00:00
hns
e7a7969e9d * Bring default path names a bit up to date. 2006-05-25 19:46:34 +00:00
hns
63fc1fda7e * Use ScriptingEngine.serialize()/deserialize() to save and restore sessions.
Fixes bug 461.
2006-05-24 12:29:09 +00:00
zumbrunn
22678cc604 Added a "# logDir = console" entry along with a suggestion of when to use it 2006-05-24 11:33:18 +00:00
zumbrunn
9d6d477e4e Updated readme file to reflect the changed requirement for a JRE 1.4 or higher 2006-05-23 14:18:39 +00:00
hns
3204eb14a6 * Helma 1.5 de facto requires Java 1.4 or greater. 2006-05-23 10:47:22 +00:00
hns
b203fcc43e * Switch build version to 1.5.0 2006-05-22 09:54:37 +00:00
hns
836ef1bb04 * Delete obsolete helma.objectmodel.db.Server class. 2006-05-22 09:52:54 +00:00
hns
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().
2006-05-18 20:54:08 +00:00
hns
c8a3c3d702 * Implement conditional GET based on file last modified date in sendForward(). 2006-05-18 18:25:14 +00:00
hns
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.
2006-05-12 13:30:47 +00:00
hns
676f4a06f0 * Make usage of deprecated Thread.stop() dependent on setting of
requestTimeoutStop = true|false app property
2006-05-11 19:22:07 +00:00
hns
5c1714d855 * Implement getRepositories() method that returns an array containing the
prototype's repositories
* Some minor and/or cosmetic changes
2006-05-11 19:20:31 +00:00
hns
16046c5e71 * Add test if SQL connections are alive before returning them in getConnection().
* Add some javadoc comments and rename sqlCon to sqlConnections.
2006-05-11 18:36:56 +00:00
hns
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.
2006-04-28 22:24:54 +00:00
hns
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.
2006-04-28 21:39:22 +00:00
hns
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)
2006-04-28 13:58:01 +00:00
hns
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().
2006-04-26 15:52:25 +00:00
hns
ae6d3738d2 * Make markAs(), setState() and getState() unsynchronized again,
and make state field volatile instead, in order to prevent deadlocks.
2006-04-26 13:23:36 +00:00
zumbrunn
1611d75c3c changed apps.properties and the build script to include "modules" instead of helmaLib 2006-04-24 08:44:13 +00:00
zumbrunn
7b82ff2e81 changed version string to indicate CVS as the source for a build by default instead of an old date 2006-04-24 08:42:00 +00:00
zumbrunn
8edbd4e2bd changed license copyright date range to include 2006 2006-04-24 08:40:17 +00:00
hns
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).

  This means we do dynamic lookup in both the shared and the thread scopes, which
  means we can use the same class for both cases and dump DynamicGlobalObject.
  In return, dynamic lookup should be somewhat optimized, so we don't do double
  lookups for both thread and shared scope.
2006-04-19 13:52:50 +00:00
hns
1186a277ae * Fix list index checks in list() and prefetch(). 2006-04-18 11:08:58 +00:00
hns
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
2006-04-12 14:55:04 +00:00
hns
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.
2006-04-10 11:25:22 +00:00
hns
0aed9bbdc5 * minor fixes and beautification. 2006-04-10 10:07:42 +00:00
hns
0cb7650e6a * Add support for SingleFileRepository. 2006-04-07 14:40:20 +00:00
hns
d4d13f5adc * Add support for SingleFileRepository.
* Fix support for ZipRepository.
2006-04-07 14:39:54 +00:00
hns
e431e18d45 * Add SimpleFileRepository for adding single global JavaScript files as repositories. 2006-04-07 14:39:08 +00:00
hns
65a11b1b08 * Add static emptyRepositories array to AbstractRepository.
*
2006-04-07 14:37:11 +00:00
hns
820342fc6e * Use new WeakCacheMap class for wrapper cache. 2006-04-03 13:27:46 +00:00
hns
a90c2e6615 * Introduce createTable() method in CacheMap to make internal table implementation
overrideable for subclasses.
* Add new WeakCacheMap class that uses java.util.WeakHashMap internally.
2006-04-03 13:27:04 +00:00
hns
f759dbfa91 * Allow prototype name as HopObject constructor function. 2006-04-03 12:32:35 +00:00
hns
edfdfd5a79 * Make sure global reference is always available, even if there is no per-thread scope
(e.g. when compiling scripts)
2006-03-30 10:19:25 +00:00
hns
e6824fe0ee * Remove unused import statement. 2006-03-30 10:17:53 +00:00
hns
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()
2006-03-21 16:52:46 +00:00
hns
91a92b6072 * Minor code cleanup: remove code that's been commented out since ages. 2006-03-20 15:11:11 +00:00
hns
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.
2006-03-09 13:07:54 +00:00
hns
f6fe185e30 * Log error instead of throwing exception when more than one result is returned
by accessname lookup.
2006-02-09 16:47:23 +00:00
hns
852543386c * Merging updateable_collections branch (with a few changes along the way) 2006-02-09 16:35:32 +00:00
hns
d4ac3d2726 * Only log runnable cron jobs if debug = true 2006-02-09 14:17:32 +00:00
hns
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.
2006-02-09 14:11:08 +00:00
hns
e41f6c02f1 * Do not open file in constructor, we can do this lazily. 2006-02-09 14:09:48 +00:00
hns
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.
2006-02-09 13:39:27 +00:00
hns
c3cd2be291 * Check if property is set before trying to set its attribute in dontEnum().
Fixes bug 455.
2006-02-09 13:03:03 +00:00
hns
cd047f9371 * Move NodeHandle->Node conversion for internal calls into run()
because it requires a Transactor thread.
2006-02-09 12:54:29 +00:00
hns
181b7286d2 * Minor fix in error message composition. 2006-02-06 20:11:23 +00:00
hns
c06106ec8d * Remove unnecessary code from executeCronJobs().
* Log errors for session logout and timeout parsing.
* Some minor code cleanups as advised by Intellij.
2006-02-06 13:57:29 +00:00