jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trueb...@sachsendv.de
Subject unlock file
Date Wed, 22 Oct 2008 09:48:35 GMT
Hi there,

I played around with Novell Netdrive to connect my repository through 
webdav.
In Netdrive is an option to lock files, but unlocking gives me an error.
"Can't unlock file, error=File is not currently locked"

The file is definitely locked and I don't find a way to unlock.
Trying to unlock the file through the Jackrabbit API, gives me an 
"javax.jcr.lock.LockException: Node not locked by session:" error.

How can I unlock this file?
Is there a way to define a lock-superuser (JCR 1.0 Spec 8.4.5)?

Here are some test values:

Node lockedNode = rootNode.getNode("data/image.jpg");
System.out.println("[LOCKEDNODES] " + session.getLockTokens().length);
System.out.println("[LOCKED] " + lockedNode.isLocked());
System.out.println("[LOCKHOLDER] " + lockedNode.holdsLock());
System.out.println("[SESSIONSCOPED] " + 
lockedNode.getLock().isSessionScoped());
System.out.println("[LIVE] " + lockedNode.getLock().isLive());
System.out.println("[DEEP] " + lockedNode.getLock().isDeep());
System.out.println("[TOKEN] " + lockedNode.getLock().getLockToken());
lockedNode.unlock();


[LOCKEDNODES] 0
[LOCKED] true
[LOCKHOLDER] true
[SESSIONSCOPED] false
[LIVE] true
[DEEP] true
[TOKEN] null
javax.jcr.lock.LockException: Node not locked by session: /data/image.jpg


_________________________________________________________________

Sachsen DV Betriebs- und Servicegesellschaft mbH
Täubchenweg 26
04317 Leipzig
Amtsgericht Leipzig, HRB 18545

Geschäftsführer: Herbert Roller Brandão, Dr. Jean-Michael Pfitzner

Aufsichtsratsvorsitzender: Andreas Benninger
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message