Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 52969 invoked from network); 25 Nov 2008 17:14:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Nov 2008 17:14:20 -0000 Received: (qmail 52009 invoked by uid 500); 25 Nov 2008 17:14:30 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 51662 invoked by uid 500); 25 Nov 2008 17:14:29 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 51651 invoked by uid 99); 25 Nov 2008 17:14:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 09:14:29 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [145.253.246.200] (HELO mail.sachsendv.de) (145.253.246.200) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 17:13:04 +0000 In-Reply-To: References: To: users@jackrabbit.apache.org MIME-Version: 1.0 Subject: Re: unlock file X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008 From: truebner@sachsendv.de Message-ID: Date: Tue, 25 Nov 2008 18:13:45 +0100 X-MIMETrack: Serialize by Router on SDV-HB1/SRV/SachsenDV-EXT(Release 7.0.2FP1|January 10, 2007) at 25.11.2008 18:14:09, Serialize complete at 25.11.2008 18:14:09 Content-Type: multipart/alternative; boundary="=_alternative 005EA509C125750C_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 005EA509C125750C_= Content-Type: text/plain; charset="utf-8" content-transfer-encoding: quoted-printable Hi, I'm still locking for a way to unlock previously locked files. I want to implement a lock-superuser. How can I do that? I allready have written a LoginModule to authenticate my users. Do I now have to implement a new AccessManager? Thanks in advance Tobias > 22.10.2008 11:49 >=20 > Please respond to users >=20 > Hi there, >=20 > I played around with Novell Netdrive to connect my repository through=20 > webdav. > In Netdrive is an option to lock files, but unlocking gives me an error. > "Can't unlock file, error=3DFile is not currently locked" >=20 > 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=20 > "javax.jcr.lock.LockException: Node not locked by session:" error. >=20 > How can I unlock this file? > Is there a way to define a lock-superuser (JCR 1.0 Spec 8.4.5)? >=20 > Here are some test values: >=20 > Node lockedNode =3D 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] " +=20 > 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(); >=20 >=20 > [LOCKEDNODES] 0 > [LOCKED] true > [LOCKHOLDER] true > [SESSIONSCOPED] false > [LIVE] true > [DEEP] true > [TOKEN] null > javax.jcr.lock.LockException: Node not locked by session:=20 /data/image.jpg _________________________________________________________________ Sachsen DV Betriebs- und Servicegesellschaft mbH T=C3=A4ubchenweg 26 04317 Leipzig Amtsgericht Leipzig, HRB 18545 Gesch=C3=A4ftsf=C3=BChrer: Herbert Roller Brand=C3=A3o, Dr. Jean-Michael Pf= itzner Aufsichtsratsvorsitzender: Andreas Benninger --=_alternative 005EA509C125750C_=--