Hi Angela,
actually I don't think this is a webdav issue, it's more a question about
unlocking files,
locked by a previous session.
AFAIK I need the lock token for unlocking a file.
This token is hold by the session created this file.
What if the session has ended?
So my question should be: How can I get the lock token from another (maybe
allready ended) session?
By the way, how can I trace the http conversion of a windows network
drive?
Tobias
From:
Angela Schreiber <anchela@day.com>
To:
users@jackrabbit.apache.org
Date:
22.10.2008 12:28
Subject:
Re: unlock file **SPAM Verdacht**
hi tobias
actually this should work (and i worked for me before).
but i never tried it with Novell Netdrive.
could you provide details about the http conversation?
normally that helps understanding what goes wrong.
thanks in advance
angela
truebner@sachsendv.de wrote:
> 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
_________________________________________________________________
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
|