same-name-sibling compaction

2006-09-26 Thread David Kennedy
I'd like to bring up the issue of compaction of indices with regard to same-name-siblings again. Compaction pretty much renders same-name-siblings useless if you refer to nodes via path. In a muti-user environment, and any point one user can move a node, thus changing the path of any

Re: Litmus setup to run against jackrabbit

2006-08-15 Thread David Kennedy
Angela Schreiber [EMAIL PROTECTED] wrote on 08/15/2006 09:37:19 AM: David Kennedy wrote: I'm trying to run litmus against my jackrabbit webdav install, but am getting a Forbidden response when the litmus begin test attempts to run delete and/or mkcol for 'litmus'. Is there something I

Re: Litmus setup to run against jackrabbit

2006-08-15 Thread David Kennedy
Angela Schreiber [EMAIL PROTECTED] wrote on 08/15/2006 10:21:46 AM: David Kennedy wrote: I'm running JCRWebdavServerServlet (not the simple server). hm. this doesn't make sense from my point of view. I guess you're saying it doesn't make sense that I'd be running litmus against

Re: WebDAV testcases

2006-08-10 Thread David Kennedy
Angela Schreiber [EMAIL PROTECTED] wrote on 08/09/2006 02:47:43 AM: David Kennedy wrote: Is there a set of testcases to drive the WebDAV contrib component of jackrabbit? litmus http://www.webdav.org/neon/litmus/ in order to be able to run the test with default configuration (which

restore without persistence

2006-07-26 Thread David Kennedy
Is there a way to retrieve the versions of a node without actually persisting them? Here, by versions I mean the actual instance of the primaryNodeType and not the Version object. I'd like to be able to show the differences between 2 versions of a node without having to restore the one out

Date comparison queries

2006-06-30 Thread David Kennedy
Is the = operator working correctly for dates in query? The following testcase compares 2 dates and I'd expect = to succeed, but it fails. The = succeeds though. Am I misinterpreting the query? Anybody else seen this? String nodeName = testDateQuery; Node root =

[jira] Created: (JCR-472) Wrap IllegalArgumentException from UUID when bad ID passed to Session.getNodeByUUID

2006-06-30 Thread David Kennedy (JIRA)
: Improvement Components: core Versions: 1.0, 1.0.1, 1.1, 0.9 Environment: WinXP Reporter: David Kennedy Hi, On 6/30/06, David Kennedy [EMAIL PROTECTED] wrote: When invoking session.getNodeByUUID and passing an invalid ID, an IllegalArgumentException is thrown. Should this be wrapped

Node locked LockException

2006-06-28 Thread David Kennedy
I believe there is a bug in the LockManagerImpl class with regard to LockToken management. The problem is that the LockInfo listener of the Session is lost. I believe the LockManagerImpl::lockTokenAdded method sets the lockHolder to the session, but doesn't add the LockInfo as a listener of

Logging into a repository multiple times

2006-06-27 Thread David Kennedy
Is a user permitted to login to the same repository/same workspace multiple times? So they'll have multiple sessions.If so, why are lockTokens restricted to a single session? They are ineffective when applied to a second session. What's the reason for this restriction? David

Finding copies of nodes

2006-06-22 Thread David Kennedy
I have a parent node of a nodetype with a childNodeDefinition that allows same-name siblings. I want to copy one of the children of the parent node to the same parent (with the same name...just different index). The copy method does not return the copied node. Is there a better way to get

Multivalue or single?

2006-06-19 Thread David Kennedy
If I have a node, the name of a property and a single value, how can I determine if I need to add the value to an array and use the multivalue setter or not? Using getProperty(propertyName).getDefinition().isMultiple() won't work since the property may not exist (it was set to

Re: Dynamic creation of workspaces

2006-06-12 Thread David Kennedy
all you have to do is casting your Workspace instance to JackrabbitWorkspace. cheers stefan On 6/12/06, David Kennedy [EMAIL PROTECTED] wrote: I'd like to create a workspace dynamically. It appears the only way I can currently do this is to subclass RepositoryImpl and write my own

Re: Client/Server question

2006-05-31 Thread David Kennedy
What happened to the idea of backing up to a PesistenceManager and restoing from one as well? As long as you add an interface and the PersistenceManager implements the backup/restore interface, it's still feasible, but was there a problem with this strategy? David Nicolas Toper [EMAIL

Re: Google Summer of Code project for Jackrabbit

2006-05-24 Thread David Kennedy
to give requestors the ability to REPLACE or IGNORE existing nodes or properties. Is this approach correct? Nicolas On 5/24/06, David Kennedy [EMAIL PROTECTED] wrote: Is the intent to lock out the entire workspace while backup or restore is occurring..no writes?! Can

Version comment

2006-05-19 Thread David Kennedy
Is there any way to hook into the versioning to add a comment for a version along with the label? Obviously I can create another non-versionable node, say (VersionComment), to correspond to the versions, but I was hoping to avoid the additional reads and writes and conserve a little space

multiple nodetypes in element function

2006-05-10 Thread David Kennedy
Is it possible to specify multiple nodeTypes in the type constraint of the element(*, nodetype) function of an xpath query? Obvious alternatives would be to check the primaryType and mixinType properties, but I'd lose inheritance with those. Another alternative is to create a special

Re: Restore of node with child node having onParentVersion=VERSION fails

2006-05-02 Thread David Kennedy
, David Kennedy [EMAIL PROTECTED] wrote: I have a node whose definition has properties and child nodes. The definitions of the nodetypes for the node and the child include mix:versionable. The properties definitions have onParentVersion=COPY and the child nodes have onParentVersion

Is the xpath 'union' operator supported in jackrabbit?

2006-04-27 Thread David Kennedy
Is the xpath 'union' operator supported in jackrabbit? For example, /jcr:root/a/b/[EMAIL PROTECTED]bar] union /jcr:root/a/c/[EMAIL PROTECTED]bar].or must this be done using 2 separate queries and merged by the user? It appears I can use SQL with the jcr:path and the or conjunction to get