hns
eee11438d7
Removed/unified semi-redundant else-if branch
2004-04-02 12:17:33 +00:00
hns
750f209035
Try ScriptRuntime.toString() in get() to work around unimplemented toString()
...
in some Rhino native types.
2004-04-01 15:39:06 +00:00
hns
fbf6dfe693
Update version to 1.4.0
2004-04-01 15:05:01 +00:00
hns
cf1b70d48a
Update to Rhino 1.5R5 final
2004-04-01 15:02:35 +00:00
hns
1e80a31348
Update to Jetty 4.2.19 (fixes DOS attack problem)
2004-04-01 15:02:15 +00:00
hns
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.
2004-03-30 15:13:04 +00:00
hns
06685adbec
Re-add a simple getDefaultValue implementation to prevent runtime errors.
2004-03-29 14:53:23 +00:00
hns
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.
2004-03-29 13:04:04 +00:00
hns
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.
2004-03-23 14:32:28 +00:00
hns
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 (!).
2004-03-23 14:11:06 +00:00
hns
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.
2004-03-19 17:04:10 +00:00
hns
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.
2004-03-19 17:02:18 +00:00
hns
dd4be4b6b6
Make form parsing aware of multiple values per key for file upload forms (enctype="multipart/form-data")
2004-03-15 12:10:26 +00:00
hns
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
2004-03-12 13:20:59 +00:00
hns
5e13b2c99e
Make prototype and name handling case insensitive in insertRelationalNode()
2004-03-12 13:13:03 +00:00
hns
4d5e555051
Upgrade to official Rhino 1.5R5 release candidate 1.
2004-03-11 11:36:15 +00:00
hns
5f327ae473
Upgrade to servlet jar from Jetty 4.2.18
2004-03-11 11:33:26 +00:00
hns
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
2004-03-11 11:33:04 +00:00
hns
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.
2004-03-10 17:39:21 +00:00
hns
460fe9c892
Print a better error message
2004-03-10 15:39:31 +00:00
hns
aa9cc97c07
Update version to 1.4.0-rc3
2004-03-10 15:35:23 +00:00
hns
997e01da64
Implementing res.meta container.
2004-03-10 15:05:04 +00:00
hns
11b45fe9c4
Use static final fields RequestTrans.GET and RequestTrans.POST for storing HTTP method.
2004-03-10 15:00:10 +00:00
hns
092070bb73
* Make setParent() access public
...
* Revert back to only check _parent for relational nodes in getParent()
2004-03-10 13:53:50 +00:00
hns
bebeecfa77
Check against dbmap NullPointerException in getParent()
2004-03-10 13:00:47 +00:00
hns
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
2004-03-10 12:55:30 +00:00
hns
304c08f8a3
Fix bug where infinite recursion isn't detected in getNodeHref()
2004-03-09 17:21:10 +00:00
hns
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().
2004-03-09 16:36:21 +00:00
hns
7a727927a9
Revert back to revision 1.133 (except for improved comments and removed obsolete code)
2004-03-09 16:20:58 +00:00
hns
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().
2004-03-09 15:01:49 +00:00
hns
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
2004-03-09 14:25:29 +00:00
hns
2f51ace37c
* Allow parent info in getParent() to be computed for transient nodes
...
* Fix getNonVirtualParent() for transient nodes. YAY!
2004-03-09 11:39:43 +00:00
hns
9b70db7a0e
Fix NullPointerException when saving a relational object that doesn't have a
...
property map (i.e. has no properties set).
2004-03-09 11:31:18 +00:00
hns
12dea26028
Improve error message in getURL(): send it to the application's event log and
...
include the URL which caused the exception.
2004-03-03 15:28:31 +00:00
hns
83d29f6a60
Only do anonymous/named check in getElementName() for relational objects.
...
Also check if child is relational before doing Relation.checkConstraints in isParentOf().
2004-03-02 15:03:05 +00:00
hns
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.
2004-02-27 14:45:49 +00:00
hns
38c9d74be6
Improved documentation for checkConstraints(), adding info about its shortcomings.
...
Slightly improved method body by only calling getNonVirtualParent() once.
2004-02-27 14:44:34 +00:00
hns
5c8d774f47
Implementing path.contains(obj)
2004-02-27 13:24:03 +00:00
hns
e6da507d85
Fix HopObject cach property getter to do a Context.toObject().
...
Remove bogus getDefaultValue() implementation.
2004-02-27 13:19:17 +00:00
hns
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().
2004-02-25 13:11:13 +00:00
hns
99ba7d3e3c
Increasing version to 1.4.0-rc2
2004-02-20 15:31:26 +00:00
hns
b972bee305
Fix minor typo in comment
2004-02-20 15:29:02 +00:00
hns
b703465f8e
Only write log message if cache size is other than default.
2004-02-20 15:28:27 +00:00
hns
40a3b57be3
Don't make getNode throw XML-specific Exceptions.
2004-02-20 15:27:43 +00:00
hns
3a4877f84b
Set implicit baseURI in bind() in addition to start() so that Hrefs are correct
...
after an application was remounted.
2004-02-20 13:42:34 +00:00
stefanp
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
2004-02-19 18:12:16 +00:00
hns
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
2004-02-19 14:12:39 +00:00
hns
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).
2004-02-19 10:47:43 +00:00
hns
c1ef213150
Make class JDK 1.3 compatible by implementing our own stack trace to string method
2004-02-19 10:40:14 +00:00
hns
82ed2fccd5
JDK 1.2 compatible jar from Jetty 4.2.17
2004-02-19 09:55:43 +00:00