Commit graph

  • d170d73565 Implement aggressive object reference loading for Oracle pre-9. See http://helma.org/bugs/show_bug.cgi?id=300 hns 2004-01-22 18:08:50 +00:00
  • bb9152d2d1 Rhino CompilerEnvirons doesn't need the ErrorReporter anymore. hns 2004-01-22 16:02:50 +00:00
  • 529a6e7e8c Updated to current CVS snapshot hns 2004-01-22 16:01:49 +00:00
  • d88c8c50d6 Updated version date hns 2004-01-22 16:01:21 +00:00
  • d62f95e941 * Implement ordered prototype updating in updatePrototypes(): global code is updated first, and parent prototypes are updated before their descendants. The purpose is to respect inter-prototype dependencies, i.e. HopObject code using global and parent prototype code. * Marked some private methods as private. * Use toString() rather than getMessage() on EcmaErrors, otherwise the error file/line number is missing from the message. hns 2004-01-21 16:56:04 +00:00
  • 67e4f11fdb Return an unmodifiable collection in getPrototypes() to prevent major damage hns 2004-01-21 16:53:06 +00:00
  • 609a8700c9 add two little comments. hns 2004-01-21 16:52:34 +00:00
  • e596a60f64 Improved error reporting: * Track and report errors in parent prototypes * Fix bug where global error was wrongly reset hns 2004-01-20 18:48:59 +00:00
  • 908f8134cb Added DynamicGlobalObject. Currently, this just falls back to the per-thread scope when a get() returns NOT_FOUND on the shared global scope, fixing http://helma.org/bugs/show_bug.cgi?id=322 (kind of hackish, but ok performance-wise). hns 2004-01-20 17:57:35 +00:00
  • 8236ff3e18 Use core.getScope() rather than using core.global directly. hns 2004-01-20 17:52:20 +00:00
  • df57e51235 Rhino doesn't like a null ErrorReporter so we implement a dummy one. hns 2004-01-16 17:40:11 +00:00
  • 1b08ced5c5 Adapt to new signature of TokenStream constructor again *sigh* hns 2004-01-16 15:50:39 +00:00
  • ebb39d0d9e Updating to Rhino snapshot from 2004/01/15. hns 2004-01-16 14:51:57 +00:00
  • 3e6f4392c7 Add a separate removeChild() function to remove a child object. Add safety check to remove() to prevent accidental use of the old version. hns 2004-01-15 18:20:09 +00:00
  • 6f39e2109c Use getChildElement() rather than getNode() to resolve Node based skins. hns 2004-01-14 16:59:33 +00:00
  • 6a1466b0bc - Rewrote remove() and removeNode(): removeNode() just releases the child node, but *never* deletes it from the database. remove() actually deletes the node from the database and also releases it from its parent. This affects HopObject.remove() and HopObject.remove(HopObject), which use these methods. From now on, the only way to delete a HopObject from db is to use the remove() function without arguments. HopObject.remove(HopObject) should be used to - remove a child object from an embedded db collection without deleting it - removing a hopobject from a relational db collection with cachemode = aggressive if the collection does not belong to the child object's parent. - Do not return on-demand nodes (groupby, accessname) in getProperty(). - Avoid creating loops in parent chain when creating cyclic references on transient objects before committing them to db - Removed unused links vector and code - Rename Enumerations because enum is a reserved word in Java 1.5 hns 2004-01-14 16:58:38 +00:00
  • 237b785fa9 Remove unregisterNode() because it is doing silly things, like deleting nodes when it shouldn't. hns 2004-01-14 16:52:54 +00:00
  • 5b9fe8fbfc Remove funny println() hns 2004-01-14 16:52:04 +00:00
  • 9e3d057aa8 Do not try to get JavaScript properties in jsFunction_get(). Renamed Enumeration because enum is a reserved word in Java 1.5 hns 2004-01-14 16:35:27 +00:00
  • a70cf2feaf Reformatting. hns 2004-01-14 16:34:03 +00:00
  • 68891eeb95 Fix typo in Javadoc hns 2004-01-14 16:30:38 +00:00
  • 8d9c6504b8 Throw EvaluatorException in hasFunction() when a prototype contains a syntax error. hns 2004-01-13 17:19:16 +00:00
  • fab69599fe replaced tar.gz with tgz as suffix for tar'ed and gzipped files p3k 2004-01-13 15:55:28 +00:00
  • 142f2872ef updated antclick version number and reflect antville's new global image location p3k 2004-01-13 15:52:43 +00:00
  • 7391f5e26b sync'ed with current db schema p3k 2004-01-06 17:39:48 +00:00
  • a5170ccd5b catch any exception from rhino parser stefanp 2004-01-06 16:28:01 +00:00
  • e8e2c7098a added function renderApi(appName) which can be used from commandline stefanp 2004-01-06 15:55:39 +00:00
  • 66e35b7704 supress security checks if accessed from commandline - setting via res.data.noWeb stefanp 2004-01-06 15:51:12 +00:00
  • 98ad7be09b added function renderApi() which renders the whole application docs into files. used via webinterface or commandline. stefanp 2004-01-06 15:50:29 +00:00
  • 08d3a94429 moved the actual rendering part in render_action into functions.js stefanp 2004-01-06 15:47:22 +00:00
  • 6a9b9acc86 always store server instance in static server field stefanp 2004-01-05 18:39:25 +00:00
  • a2c2fea280 rewrote the main method: now we first create an instance of Server (but don't start it) and run the application and through that class. config arguments are exactly the same as in the main Server class. stefanp 2004-01-05 17:34:46 +00:00
  • f19623564c print stacktrace when unable to load launcher.jar stefanp 2004-01-05 17:31:09 +00:00
  • 577938a1fa further refined server startup. stefanp 2004-01-05 17:15:44 +00:00
  • f9618455ac removed test line, stupid me stefanp 2004-01-05 13:35:49 +00:00
  • 4e36815f61 fixed possible NullPointerException when called without homedir-setting stefanp 2004-01-05 13:23:14 +00:00
  • 50be1bb115 added hasXX-methods stefanp 2004-01-05 13:20:11 +00:00
  • c18761625b Mail.setReplyTo() wasn't activated for rhino usage stefanp 2003-12-23 12:39:10 +00:00
  • ed6e4d1125 Overhauled server startup checks + initialization stefanp 2003-12-19 17:55:30 +00:00
  • b7a1f113b5 Do not prefetch children in zero-argument HopObject.list(). We leave it to the app writer to use loadmode=aggressive. hns 2003-12-19 16:30:59 +00:00
  • e57a939fa0 Make type handling case-insensitive, change default prototypes to first-letter-upper-case, do some heavily needed refactoring around helma.scripting.rhino.HopObject and helma.framework.core.TypeManager. hns 2003-12-18 17:34:13 +00:00
  • 3f284fa899 Rephrase javadoc class summary comment hns 2003-12-18 16:42:55 +00:00
  • 19975df982 Avoid deprecated version of ScriptableObject.setAttributes() hns 2003-12-18 09:51:29 +00:00
  • e1e09c943c Remove unused field hns 2003-12-18 09:31:30 +00:00
  • 03dd0ca1dc Fix imports, Javadocs hns 2003-12-18 09:31:12 +00:00
  • 7880764599 Fix Javadocs hns 2003-12-18 09:29:06 +00:00
  • 27ba52be0e Fix URLs in Javadoc hns 2003-12-18 09:28:49 +00:00
  • 7cf471b69b Change JavaScriptException to EvaluatorException, fix Javadoc. hns 2003-12-18 09:28:23 +00:00
  • 026d6e1429 Fix object precedence in parent prototype registration: If an object is already registered with a parent prototype's name, leave it as it is and don't overwrite it since it has higher precedence than we have. hns 2003-12-16 13:14:07 +00:00
  • 144dee55cd logdir must not be null. Use "log" as default value. hns 2003-12-16 12:38:16 +00:00
  • 2c7bbc011c Minor comment fixes. hns 2003-12-15 17:16:43 +00:00
  • c0076898b0 Added Helma Command line invoker contributed by Stefan Pollach hns 2003-12-15 17:08:06 +00:00
  • a4ba238530 Code cleanup in helma.main package. Made most methods in Server non-static for the sake of consistency. hns 2003-12-15 17:07:06 +00:00
  • 09d983bd29 Combine XMLRPC and EXTERNAL execution in RequestEvaluator.run() hns 2003-12-15 15:19:19 +00:00
  • f2802894fa additionalTables fix from Juerg hns 2003-12-12 19:01:58 +00:00
  • 0b399703b2 User Server.getLogger() to get the Logger. hns 2003-12-12 11:37:05 +00:00
  • fb7c48416d Always set helma.logdir when using helma logging, even when logdir is set to console. Disable checkRunning() because of connection timeout problems. hns 2003-12-12 11:36:26 +00:00
  • 01a7123cac Set application base uri to mountpoint in start() rather than in bind() so it is set when onStart() function is executed. hns 2003-12-12 11:10:12 +00:00
  • 0e6eca74ee Check property name in getFromNode() hns 2003-12-10 13:33:20 +00:00
  • 90d5961546 Make the log writer thread a daemon thread hns 2003-12-09 17:04:49 +00:00
  • f3a623cf95 * Adding invokeExternal() code from Stefan Pollach (should later be consolidated by merging it with invokeXmlRpc() - the only difference is in the XML-RPC access check, so we shouldn't have to duplicate all code.) * Make execution of global onStart() function synchronous in Application.start() * Fix bug where user.onLogout() is called on a released RequestEvaluator hns 2003-12-09 16:47:44 +00:00
  • ae1aa70fdf * If a script function returns an instance of org.mozilla.javascript.Wrapper always unwrap it before processing/returning. * If a script function returns null or undefined, return null even when invoke() was called in XML-RPC mode. hns 2003-12-09 16:34:05 +00:00
  • b85b9f206b Catch UnknownHostException in checkRunning() gracefully. hns 2003-12-04 09:57:49 +00:00
  • c833015c1b Do not set values to JavaScript undefined. Rather, treat these as deletes. hns 2003-12-03 15:19:17 +00:00
  • b622dbd039 Add support for setting HELMA_USER and run helma with sudo -u $HELMA_USER hns 2003-12-03 14:52:29 +00:00
  • 0f77c3461b Do not issue a getNodeByKey() if we get a node by relation, just because it's not a complex reference or create-one-demand relation! This was introduced because we assumed that the calling code would know what it was doing, i.e. only call this for objects contained in its subnode index, but as it seems to turn out it didn't, and this isn't really necessary after all. hns 2003-12-03 11:58:36 +00:00
  • 2a8a21f822 Use Relation.createOnDemand() to find out if we should do a NodeManager.getNode[ByRelation]() in Node.getProperty(). This was there in the old version of Node.getProperty() but was kicked out in the recent rewrite, which caused NodeManager.getNode() to be called when it shouldn't. hns 2003-12-03 11:56:04 +00:00
  • 9d6bd72355 Use getChildElement() rather than getSubnode() to get a child in HopObject.get() - otherwise, child objects are always accessible via id, even if accessname is specified. hns 2003-12-03 11:33:56 +00:00
  • 04fd6b05fe Minor cleanup. hns 2003-12-03 10:52:17 +00:00
  • f2938295ec Fix HopObject.list() which was broken after adding HopObject.list(start, length) yesterday. (ScriptableObject.defineClass does not support method overloading) hns 2003-12-03 10:45:57 +00:00
  • d155ee6b1a do checkNode() as first thing in HopObject.list() hns 2003-12-03 10:14:35 +00:00
  • 6b443f211c Fix bug where we forgot to check for NOT_FOUND in jsFunction_get() hns 2003-12-02 19:37:22 +00:00
  • bd499db5ab Clean up old code hns 2003-12-02 17:45:28 +00:00
  • 076b4f7a60 Always mark prototype as updated if a zip files contains some part of it, even if it's a skin file. hns 2003-12-02 17:44:53 +00:00
  • caf5bd02af Prevent Nullpointer Exception in toString() hns 2003-12-02 17:43:17 +00:00
  • 277d20ac2e Fix bug <http://helma.org/bugs/show_bug.cgi?id=304>, skins in zip files not present in skin map. hns 2003-12-02 16:57:25 +00:00
  • 42e2552fbe Implement HopObject.list(start, length) as proposed by Tobi in <http://helma.org/bugs/show_bug.cgi?id=303>. This is similar to HopObject.list(), except the array it returns only contains the child objects in the range specified by the start and length arguments. This also does a prefetchChildren() on the specified range to optimize database access. hns 2003-12-02 16:42:13 +00:00
  • a48bec8be4 Cleaned up creation of SELECT statement for filter.additionalTables option. hns 2003-12-02 16:26:32 +00:00
  • 415a6cbb27 Adding dispose() as suggested by Jürg Lehni on helma-dev. hns 2003-12-02 15:58:37 +00:00
  • 6170e10a5a Try getting a child object by ID if it isn't found as property. This is due to the change in helma.objectmodel.db.Node.getProperty() where child nodes are only returned as properties if either accessName or groupby is specified. http://helma.org/bugs/show_bug.cgi?id=315 hns 2003-12-02 15:49:39 +00:00
  • 0e76a161a1 Only try to get child node as property if either accessName or groupby is specified. This fixes http://helma.org/bugs/show_bug.cgi?id=315 hns 2003-12-02 15:48:18 +00:00
  • 224085c159 Upgrade to Rhino snapshot from 2003/12/01 hns 2003-12-02 15:18:28 +00:00
  • 1a090a7ad8 Increase version to 1.3.2-pre2 hns 2003-12-01 15:27:00 +00:00
  • 3ca0424f38 Include scripts directory in package build, update version to 1.3.2-pre2 hns 2003-12-01 15:26:08 +00:00
  • 98386829cf Adding Linux start script from Andreas Bolka hns 2003-12-01 15:18:45 +00:00
  • 18922d4e37 Applied fix from Juerg Lehni for parents defined as COMPLEX_REFERENCE that was posted on September 19 and somehow fell through the gutter. hns 2003-12-01 13:42:11 +00:00
  • 0c9ecfd10d Set application classloader on the Rhino context to our app classloader. hns 2003-12-01 13:28:20 +00:00
  • 275d882f92 Sorry Stefan, I was completely exhausted ;-) hns 2003-11-29 11:37:08 +00:00
  • bbc63c289b add commons-logging.jar to classpath hns 2003-11-28 22:17:54 +00:00
  • c4f51228fe make sure logdir is not null in getLogger() hns 2003-11-28 22:17:10 +00:00
  • 811410599a Checking in Commons Logging support from Daniel, plus a major rewrite of the Helma logging framework. hns 2003-11-28 20:15:28 +00:00
  • d8b1f178ad Various minor enhancements and cleanups: * Implemented rootId property to set the id of the app's root object * Do not call invokeFunction with a null argument array * Implement toString() method * Plus some more minor stuff hns 2003-11-28 18:27:35 +00:00
  • 874d9fcf97 Changed logging in CacheMap to be Logging framework independent (just use the application's logEvent() method) hns 2003-11-28 18:08:06 +00:00
  • 1d73c147d0 Added HopObject constructor, improved variable naming in jsConstructor hns 2003-11-28 18:06:01 +00:00
  • 8da0efb7c0 Adding Jakarta Commons Logging 1.0.3 jar hns 2003-11-28 18:04:09 +00:00
  • b1fc070efc Avoid unnecessary log messages. hns 2003-11-28 18:00:59 +00:00
  • 48ed72b6b4 * Make check for _prototype and _name column case insensitive when inserting relational objects * Implemented feature to evict certain prototypes from cache when they are received via replication. To activate this, add the line _evictOnReplication = true to the type.property file hns 2003-11-28 13:53:43 +00:00
  • d0c7012318 Slightly improved error message when DBSource could not be loaded (include possibility that driver couldn't be loaded) hns 2003-11-28 13:09:05 +00:00
  • a79dfbde18 Rename pushStringBuffer() and popStringBuffer() to push() and pop(). Keeping old versions for backwards-compatibility for the time being. hns 2003-11-26 13:45:30 +00:00
  • 5647d2bfdc Unwrap arguments to Java objects in addPart(). Also, if the part is a java.io.File, set the part's file name if no explicit file name is given. hns 2003-11-26 11:57:56 +00:00