Commit graph

  • 54f60eecef rewrote the method for parsing function files so that it handles the various ways of declaring functions in rhino stefanp 2004-04-13 08:33:40 +00:00
  • eee11438d7 Removed/unified semi-redundant else-if branch hns 2004-04-02 12:17:33 +00:00
  • 750f209035 Try ScriptRuntime.toString() in get() to work around unimplemented toString() in some Rhino native types. helma_1_4_0 hns 2004-04-01 15:39:06 +00:00
  • fbf6dfe693 Update version to 1.4.0 hns 2004-04-01 15:05:01 +00:00
  • cf1b70d48a Update to Rhino 1.5R5 final hns 2004-04-01 15:02:35 +00:00
  • 1e80a31348 Update to Jetty 4.2.19 (fixes DOS attack problem) hns 2004-04-01 15:02:15 +00:00
  • e7e5467d8f Handle case gracefully where a node has a prototype set that does not exist anymore. When reading from relational table, set _prototype to the name of the prototype we actually use. When JS-wrapping the object, also check its DbMapping to find out the prototype. hns 2004-03-30 15:13:04 +00:00
  • 06685adbec Re-add a simple getDefaultValue implementation to prevent runtime errors. hns 2004-03-29 14:53:23 +00:00
  • 4239bb201b Do not call markAs(CLEAN) in Node.init() because we don't know for sure if we are going to use it. If the node is loaded already and is infact dirty, calling markAs(CLEAN) will drop it from the transactor's dirty list. So what we do instead is to directly set the status flag to CLEAN. Fixes bug 352. hns 2004-03-29 13:04:04 +00:00
  • 7991f133d5 Make createNode smarter about the prototype for the new child node it is about to create. Otherwise, if called on a persistent node, the new child node will be persisted with a possibly bogus id. hns 2004-03-23 14:32:28 +00:00
  • 1271379eda Use Node constructor rather than createNode() in registerUser(). createNode() is currently not prototype-aware, so if it is called on a persistent Node, the new child node may be persisted with a bogus id (!). hns 2004-03-23 14:11:06 +00:00
  • 68c69d7ba1 * Use getChildElement rather than getSubnode to look up a potential group node in getParent() * Register newly created group nodes as clean nodes with the transactor thread, in addition to throwing them into the cache. This seems to be necessary somehow, although I don't understand why. hns 2004-03-19 17:04:10 +00:00
  • 3670bafb9f Fixes in Relation.java: * Make renderConstraints() do the right thing in regard to logicalOperator, extracting the code from buildQuery() * Make checkConstraints() do the right thing in regard to logicalOperator. * Make setConstraints() do the right thin in regard to logicalOperator, i.e. don't touch if logicalOperator is OR or XOR. hns 2004-03-19 17:02:18 +00:00
  • dd4be4b6b6 Make form parsing aware of multiple values per key for file upload forms (enctype="multipart/form-data") hns 2004-03-15 12:10:26 +00:00
  • b31871fdfb Do a isStrorageCompatible() rather than isRelational() to handle checks for non-relational child nodes in isParentOf(). http://helma.org/bugs/show_bug.cgi?id=339#c17 hns 2004-03-12 13:20:59 +00:00
  • 5e13b2c99e Make prototype and name handling case insensitive in insertRelationalNode() hns 2004-03-12 13:13:03 +00:00
  • 4d5e555051 Upgrade to official Rhino 1.5R5 release candidate 1. helma_1_4_0_rc3 hns 2004-03-11 11:36:15 +00:00
  • 5f327ae473 Upgrade to servlet jar from Jetty 4.2.18 hns 2004-03-11 11:33:26 +00:00
  • fd7b12c906 Upgrade to Jetty 4.2.18 (JDK 1.2 compatible). Fixes bug with Java 1.3 java.util.Calendar in Jetty 4.2.17 hns 2004-03-11 11:33:04 +00:00
  • 945c18b4ba Revert from change in revision 1.132 to only check name in getElementName() for relational nodes: We actually need to do this for embedded nodes. hns 2004-03-10 17:39:21 +00:00
  • 460fe9c892 Print a better error message hns 2004-03-10 15:39:31 +00:00
  • aa9cc97c07 Update version to 1.4.0-rc3 hns 2004-03-10 15:35:23 +00:00
  • 997e01da64 Implementing res.meta container. hns 2004-03-10 15:05:04 +00:00
  • 11b45fe9c4 Use static final fields RequestTrans.GET and RequestTrans.POST for storing HTTP method. hns 2004-03-10 15:00:10 +00:00
  • 092070bb73 * Make setParent() access public * Revert back to only check _parent for relational nodes in getParent() hns 2004-03-10 13:53:50 +00:00
  • bebeecfa77 Check against dbmap NullPointerException in getParent() hns 2004-03-10 13:00:47 +00:00
  • cdba357096 * Always set parent to null if _parent is set and didn't turn up a result * Enable _parent resolution for non-relational objects if it is set hns 2004-03-10 12:55:30 +00:00
  • 304c08f8a3 Fix bug where infinite recursion isn't detected in getNodeHref() hns 2004-03-09 17:21:10 +00:00
  • a21e6464f6 * Actually set parent to null if _parent is set but couldn't be resolved in getParent(). * Use <= rather than < to test if we should recompute in getElementName() and getParent(). hns 2004-03-09 16:36:21 +00:00
  • 7a727927a9 Revert back to revision 1.133 (except for improved comments and removed obsolete code) hns 2004-03-09 16:20:58 +00:00
  • b173eb0200 * Make setParent() return boolean true if the argument was accepted as new parent * Use setParentHandle() wherever we don't need the new parent to be checked * Backpedal from change in previous commit to only set parent for non-relational nodes in addNode() and setNode(). hns 2004-03-09 15:01:49 +00:00
  • b565d6a166 Add a check to prevent cyclic parent chains in setParent(). Only set parent for non-relational nodes in addNode() and setNode(). http://helma.org/bugs/show_bug.cgi?id=344 hns 2004-03-09 14:25:29 +00:00
  • 2f51ace37c * Allow parent info in getParent() to be computed for transient nodes * Fix getNonVirtualParent() for transient nodes. YAY! hns 2004-03-09 11:39:43 +00:00
  • 9b70db7a0e Fix NullPointerException when saving a relational object that doesn't have a property map (i.e. has no properties set). hns 2004-03-09 11:31:18 +00:00
  • 12dea26028 Improve error message in getURL(): send it to the application's event log and include the URL which caused the exception. hns 2004-03-03 15:28:31 +00:00
  • 83d29f6a60 Only do anonymous/named check in getElementName() for relational objects. Also check if child is relational before doing Relation.checkConstraints in isParentOf(). hns 2004-03-02 15:03:05 +00:00
  • 08c443ce6a Only call Relation.checkConstraints() in isParentOf() if the subnode relation does not have a filter set, because checkConstraints() always returns false in that case. hns 2004-02-27 14:45:49 +00:00
  • 38c9d74be6 Improved documentation for checkConstraints(), adding info about its shortcomings. Slightly improved method body by only calling getNonVirtualParent() once. hns 2004-02-27 14:44:34 +00:00
  • 5c8d774f47 Implementing path.contains(obj) hns 2004-02-27 13:24:03 +00:00
  • e6da507d85 Fix HopObject cach property getter to do a Context.toObject(). Remove bogus getDefaultValue() implementation. hns 2004-02-27 13:19:17 +00:00
  • 75b2dea067 Implement isParentOf() method that is similar to contains() but returns boolean true instead of the index position of the child node. The advantage is that we don't need to load the subnode index for relational nodes. We're using isParentOf() in getElementName() and getParent(). hns 2004-02-25 13:11:13 +00:00
  • 99ba7d3e3c Increasing version to 1.4.0-rc2 helma_1_4_0_rc2 hns 2004-02-20 15:31:26 +00:00
  • b972bee305 Fix minor typo in comment hns 2004-02-20 15:29:02 +00:00
  • b703465f8e Only write log message if cache size is other than default. hns 2004-02-20 15:28:27 +00:00
  • 40a3b57be3 Don't make getNode throw XML-specific Exceptions. hns 2004-02-20 15:27:43 +00:00
  • 3a4877f84b Set implicit baseURI in bind() in addition to start() so that Hrefs are correct after an application was remounted. hns 2004-02-20 13:42:34 +00:00
  • 53a34d861a fixed http://helma.org/bugs/show_bug.cgi?id=333 lastModified() now returns a double value added toString() so that filename is printed as default value stefanp 2004-02-19 18:12:16 +00:00
  • df1c131648 cleanup in Application: * make init(), start() and stop() synchronized * suppress some logging messages if using default values (cache size, preallocated evaluators) * do not null out freeThreads stack in stop() so we don't have to worry about calling releaseEvaluator() in stopped applications * replace boolean stopped field with boolean running and add public synchronized isRunning() accessor * if preallocating multiple evaluators only init scripting engine on the first one * move invocation of onStart() from start() to scheduler thread hns 2004-02-19 14:12:39 +00:00
  • 7bfb70430e * Work around Java/Windows quirk where File can't be renamed if a file with the target name exists by deleting the existing file. http://helma.org/bugs/show_bug.cgi?id=338 * Catch all Exceptions when reading XML in getNode, and rethrow as IOException rather then ObjectNotFoundException (which is only thrown if the file in question doesn't exist). hns 2004-02-19 10:47:43 +00:00
  • c1ef213150 Make class JDK 1.3 compatible by implementing our own stack trace to string method hns 2004-02-19 10:40:14 +00:00
  • 82ed2fccd5 JDK 1.2 compatible jar from Jetty 4.2.17 hns 2004-02-19 09:55:43 +00:00
  • f15dea4217 Adapt global seal() function from Rhino 1.5R5 from global shell object in Rhino 1.5R5 to allow sealing of JavaScript objects. hns 2004-02-18 14:46:25 +00:00
  • a68eb60c94 Update to official 1.5R5pre snapshot from 2004/02/17. hns 2004-02-18 14:41:02 +00:00
  • 53e006b9da Add Javadoc class comments hns 2004-02-18 13:12:40 +00:00
  • 21c33be366 Fix previous commit: do recursively invoke processXmlRpcResponse() on contents of Maps. hns 2004-02-18 12:53:54 +00:00
  • 37d086d5f3 Add a branch in processXmlRpcResponse() to convert a Map to a Hashtable. Use ...else if... rather then separate if statements for mutually exclusive conditions in processXmlRpcResponse(). hns 2004-02-18 11:42:47 +00:00
  • 4245d6d08f MapWrapper now implements org.mozilla.javascript.Wrapper so there's no more need for special treatment (unwrapping). hns 2004-02-18 11:40:27 +00:00
  • b735055492 Make MapWrapper implement org.mozilla.javascript.Wrapper so that the map is autimatically unwrapped when passing it outside the scripting engine. Added/enhanced some comments. hns 2004-02-18 11:39:33 +00:00
  • d9ee5757fe Added Javadoc class comments. hns 2004-02-18 11:20:09 +00:00
  • 5d03b49b07 Do not try to read the main properties file unless it exists. There are usage scenarios where there is no main properties file, so no error msg should be shown. hns 2004-02-18 10:57:39 +00:00
  • 209bfb1c35 Add additional permission checks in order to find potential problems before commit() Add some comments, remove debug logging output hns 2004-02-17 15:27:50 +00:00
  • 6f3d080b34 Rewrote embedded XML database to make it more dependable: New records are first written to temporary files and only renamed to their actual names when the transaction is committed. hns 2004-02-17 15:13:40 +00:00
  • e512386e9a Adding logError() methods. hns 2004-02-17 15:08:08 +00:00
  • 2185848e6c Use getChildElement() rather than getNode() to check for an already existing user item in registerUser(). hns 2004-02-17 10:07:19 +00:00
  • 2ec37bda9c Set Content-Type header when forwarding to a local resource. hns 2004-02-13 20:51:02 +00:00
  • 5cf2dbc927 No more need to cache a new group node, Node.getGroupbySubnode() does this now if called with create == true. hns 2004-02-12 14:32:50 +00:00
  • 6b631e0f0e * Fix bug where fresh groupnode was not registered with nodemanager when created from addNode() * Fix bug where named child node wasn't evicted when the name property was changed because we tried getNode() rather than getChildElement() hns 2004-02-12 14:32:01 +00:00
  • 311ddd0732 Remove horrendously outdated document hns 2004-02-11 17:25:12 +00:00
  • d280a029e9 Going back to .tar.gz as file extension for gzipped tar files helma_1_4_0_rc1 hns 2004-02-11 16:58:35 +00:00
  • b64d52a118 Updating to current CVS snapshot to fix bug #233274 http://bugzilla.mozilla.org/show_bug.cgi?id=233274 hns 2004-02-11 16:45:36 +00:00
  • a49b59190c Updated version to 1.4.0-rc1 hns 2004-02-11 16:20:55 +00:00
  • e1b65bdc8b Implement/fix aggressive property loading for Oracle when loading through manually set subnodeRelation. hns 2004-02-11 16:13:44 +00:00
  • cecd13f7d2 Adjust @throws clause (but be careful not to add any information ;-) hns 2004-02-11 15:07:14 +00:00
  • f6b9841947 Print out a warning if a collection specified in a _parent descriptor does not exist. hns 2004-02-11 15:06:23 +00:00
  • 82c0524e00 Update to Jetty 4.2.17 hns 2004-02-10 23:01:15 +00:00
  • 8bccddd447 Register skin file map with lower case prototype name in addition to the ordinary name in app.skinfiles. hns 2004-02-10 15:27:32 +00:00
  • 5a58a5ba8a Use "Root" rather than "root" as prototype when creating a root object in the embedded database. hns 2004-02-10 15:13:51 +00:00
  • a556621554 - Fully reload properties whenever one of its ingredients is changed (main file or additional props from zip file). - Remove deprecated constructor hns 2004-02-10 14:43:55 +00:00
  • 0def62ee5a fixed script to support JAVA_HOME with spaces p3k 2004-02-10 13:48:45 +00:00
  • 736df12ef5 Make GlobalObject extend Rhino's ImporterTopLevel so we have the importClass() and importPackage() functions. hns 2004-02-10 12:46:17 +00:00
  • 81d0a86897 Committing Stefan's patch for getUser() http://helma.org/bugs/show_bug.cgi?id=331 hns 2004-02-09 19:25:49 +00:00
  • f6cf3b758a Fixes and improvements for formatting, especially for paragraph formatting mode and when entering a "semiblock" (e.g. table) in normal mode. hns 2004-02-07 12:30:18 +00:00
  • 67f3ccea47 Make property name from which skin text is taken settable. hns 2004-02-05 18:32:57 +00:00
  • 229236b25c Do not treat hop:parent element as property when reading XML-encoded HopObject. Fixes bug 281: http://helma.org/bugs/show_bug.cgi?id=281 hns 2004-02-05 10:37:23 +00:00
  • b9646ab20d Set DbMapping on group nodes stored in embedded DB. Otherwise, child nodes are not reachable by name after the application is restarted. hns 2004-02-04 17:34:58 +00:00
  • c6e5dcbc95 Node.getNonVirtualParent doesn't work correctly for transient nodes, so add a try-catch when setting the back-reference in Relation.setConstraints() since it may fail. hns 2004-02-04 16:32:04 +00:00
  • 3101e32ad3 * Do not try to get child nodes from NodeManager if self is transient * Throw an exception when trying to get a group-subnode from a transient node (it doesn't work, so better be clear about it) * Do not set "name" property in groupby nodes, just stick with "groupname" * Always set node properties in propMap if self is transient hns 2004-02-04 16:30:31 +00:00
  • e3cbb5a732 Implement caching of string buffers. Throw a runtime exception if res.pop() is called in an invalid state (no buffer or no stack). hns 2004-02-04 16:25:22 +00:00
  • e64aa2780e Allow properties to start with underscores, apart from internal HopObject props. hns 2004-02-03 16:51:15 +00:00
  • d8e86948db Committing Daniel's proposed fix for bug 295: http://helma.org/bugs/show_bug.cgi?id=295 hns 2004-02-02 17:34:18 +00:00
  • f2ad5ea065 Fix bug in getExactPropertyMapping() where we returned the type of the collection contents rather than the type of the collection itself. Fixes bug 330. http://helma.org/bugs/show_bug.cgi?id=330 hns 2004-01-30 12:35:43 +00:00
  • b379b9050e Updating to new CVS snapshot which fixes bug 245: http://www.helma.org/bugs/show_bug.cgi?id=245 hns 2004-01-29 17:54:24 +00:00
  • 13a9f914be Re-establish old behaviour in addNode() that if an existing child element is present with the given name it is deleted. Do not wrap addGroupbyNode-code in try/catch. hns 2004-01-28 15:56:53 +00:00
  • 2f2b0ae051 More fixes for groupby-support in embedded db. hns 2004-01-28 15:05:10 +00:00
  • 969ef70c93 Several smallish fixes: * Check for group-by option in parent's child relation in getElementName(). This is necessary for embedded group nodes to operate as named objects. * Use specialized get code in getChildElement() if child relation is group-by. This is necessary to get group nodes after the change above. * Fix NullPointerException when name is null in setName() * Use the groupname as node name and also set an explicit "name" property in getGroupbySubnode(). hns 2004-01-27 14:54:59 +00:00
  • 4ec134c41f Check for null child objects in HopObject.list() hns 2004-01-27 14:22:14 +00:00
  • c17acaf3a8 Do not consult prototype when getting a JS property via Scritable.get(). This isn't necessary anymore since property and child object getters have been separated, and we're no more risking to trigger a db select with the get. hns 2004-01-26 15:01:41 +00:00
  • bb0bc89fee Add a comment hns 2004-01-26 14:58:04 +00:00
  • b0d1f7f5fa Add linebreaks to long comments hns 2004-01-26 14:57:08 +00:00
  • f36e390caa Make log level in helma.util.Logging configurable, and make it derault to INFO. hns 2004-01-23 16:33:45 +00:00