Commit graph

1597 commits

Author SHA1 Message Date
hns
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
2003-12-09 16:47:44 +00:00
hns
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.
2003-12-09 16:34:05 +00:00
hns
b85b9f206b Catch UnknownHostException in checkRunning() gracefully. 2003-12-04 09:57:49 +00:00
hns
c833015c1b Do not set values to JavaScript undefined. Rather, treat these as deletes. 2003-12-03 15:19:17 +00:00
hns
b622dbd039 Add support for setting HELMA_USER and run helma with sudo -u $HELMA_USER 2003-12-03 14:52:29 +00:00
hns
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.
2003-12-03 11:58:36 +00:00
hns
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.
2003-12-03 11:56:04 +00:00
hns
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.
2003-12-03 11:33:56 +00:00
hns
04fd6b05fe Minor cleanup. 2003-12-03 10:52:17 +00:00
hns
f2938295ec Fix HopObject.list() which was broken after adding HopObject.list(start, length) yesterday.
(ScriptableObject.defineClass does not support method overloading)
2003-12-03 10:45:57 +00:00
hns
d155ee6b1a do checkNode() as first thing in HopObject.list() 2003-12-03 10:14:35 +00:00
hns
6b443f211c Fix bug where we forgot to check for NOT_FOUND in jsFunction_get() 2003-12-02 19:37:22 +00:00
hns
bd499db5ab Clean up old code 2003-12-02 17:45:28 +00:00
hns
076b4f7a60 Always mark prototype as updated if a zip files contains some part of it,
even if it's a skin file.
2003-12-02 17:44:53 +00:00
hns
caf5bd02af Prevent Nullpointer Exception in toString() 2003-12-02 17:43:17 +00:00
hns
277d20ac2e Fix bug <http://helma.org/bugs/show_bug.cgi?id=304>, skins in zip files not present in skin map. 2003-12-02 16:57:25 +00:00
hns
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.
2003-12-02 16:42:13 +00:00
hns
a48bec8be4 Cleaned up creation of SELECT statement for filter.additionalTables option. 2003-12-02 16:26:32 +00:00
hns
415a6cbb27 Adding dispose() as suggested by Jürg Lehni on helma-dev. 2003-12-02 15:58:37 +00:00
hns
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
2003-12-02 15:49:39 +00:00
hns
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
2003-12-02 15:48:18 +00:00
hns
224085c159 Upgrade to Rhino snapshot from 2003/12/01 2003-12-02 15:18:28 +00:00
hns
1a090a7ad8 Increase version to 1.3.2-pre2 2003-12-01 15:27:00 +00:00
hns
3ca0424f38 Include scripts directory in package build,
update version to 1.3.2-pre2
2003-12-01 15:26:08 +00:00
hns
98386829cf Adding Linux start script from Andreas Bolka 2003-12-01 15:18:45 +00:00
hns
18922d4e37 Applied fix from Juerg Lehni for parents defined as COMPLEX_REFERENCE that
was posted on September 19 and somehow fell through the gutter.
2003-12-01 13:42:11 +00:00
hns
0c9ecfd10d Set application classloader on the Rhino context to our app classloader. 2003-12-01 13:28:20 +00:00
hns
275d882f92 Sorry Stefan, I was completely exhausted ;-) 2003-11-29 11:37:08 +00:00
hns
bbc63c289b add commons-logging.jar to classpath 2003-11-28 22:17:54 +00:00
hns
c4f51228fe make sure logdir is not null in getLogger() 2003-11-28 22:17:10 +00:00
hns
811410599a Checking in Commons Logging support from Daniel, plus a major rewrite
of the Helma logging framework.
2003-11-28 20:15:28 +00:00
hns
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
2003-11-28 18:27:35 +00:00
hns
874d9fcf97 Changed logging in CacheMap to be Logging framework independent
(just use the application's logEvent() method)
2003-11-28 18:08:06 +00:00
hns
1d73c147d0 Added HopObject constructor, improved variable naming in jsConstructor 2003-11-28 18:06:01 +00:00
hns
8da0efb7c0 Adding Jakarta Commons Logging 1.0.3 jar 2003-11-28 18:04:09 +00:00
hns
b1fc070efc Avoid unnecessary log messages. 2003-11-28 18:00:59 +00:00
hns
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
2003-11-28 13:53:43 +00:00
hns
d0c7012318 Slightly improved error message when DBSource could not be loaded
(include possibility that driver couldn't be loaded)
2003-11-28 13:09:05 +00:00
hns
a79dfbde18 Rename pushStringBuffer() and popStringBuffer() to push() and pop().
Keeping old versions for backwards-compatibility for the time being.
2003-11-26 13:45:30 +00:00
hns
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.
2003-11-26 11:57:56 +00:00
hns
6da249a73d Rethrow wrapped ConcurrencyExceptions. Also updated code to
rethrow wrapped TimeoutExceptions.
2003-11-26 11:38:36 +00:00
hns
846ff46e1e Add leading space in " WHERE " when composing select statements.
Fixes bug http://www.helma.org/bugs/show_bug.cgi?id=313
2003-11-21 16:13:19 +00:00
hns
babe14b16f Reverse sequence of <get-from-nodemgr> and <get-from-propmap> in
getProperty(). This may return old cached properties from the propmap when it
shouldn't, but it fixes the much worse bug where embedded-db-collections are
created from scratch again and again.
2003-11-21 10:59:10 +00:00
hns
76abbbdddc minor formatting fix 2003-11-21 10:56:27 +00:00
hns
88b2d41536 Remove code that was commented out and isn't coming back 2003-11-19 15:10:11 +00:00
hns
a8da2b48bd Re-add check if Relation is PRIMITIVE or REFERENCE when creating properties in createNode
(was removed yesterday, not sure it's really needed)
Remove code that was commented out and isn't coming back
2003-11-19 15:09:54 +00:00
hns
615c9c65d1 Set initial TypeInfo.lastUpdate to -1 so a Prototype with no files (lastUpdate == 0)
will be evaluated at least once. This fixes a bug with empty prototypes not having their
prototype set (i.e. get(), list(), href() etc were unavailable).
2003-11-19 14:43:22 +00:00
hns
37436236df Add an intermediate step when fetching properties from result sets in createNode() so that
we can be sure to use the proper DbMapping for column-to-property mappings (which may change
according to the object's prototype column)
This should fix bug 310. http://helma.org/bugs/show_bug.cgi?id=310
2003-11-18 17:39:22 +00:00
hns
c37d1670d5 Implement protected setName() method to set the property's name 2003-11-18 17:36:46 +00:00
hns
6453f53bd9 Always return our own DbColumns[]. This is needed in order to add/change mappings
in extended prototypes.
2003-11-18 17:36:13 +00:00