You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Rolf Kulemann <ro...@apache.org> on 2004/04/10 15:15:34 UTC

Re: Locking a resource and act on it in a different (WebDAV) session

On Fri, 2004-04-09 at 23:12, Andreas Probst wrote:
> Hi Rolf,
> 
> to act on a locked resource it is necessary to give the lock 
> token in the request. If I remember correctly, the spec 
> recommends a client to send the lock token only if this client 
> issued the lock. This way no client can steal the lock of 
> another client of the same user. If you want to act on the 
> resource with another client, read the lock token and send it 
> with the request. So it should be possible the steal the lock of 
> the other session.

Thanks, but my problem was solved with rc1. There is now a new method on
the WebdavResource called discoverOwnLocks() which makes live much
easier.

Thanks for ur reply.

-- 
Regards,

    Rolf Kulemann


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


RE: Locking a resource and act on it in a different (WebDAV)session

Posted by Andreas Probst <an...@gmx.net>.
This is called stealing a thread, not stealing a lock.

On 10 Apr 2004 at 18:50, Uma Gajendragadkar wrote:

> Where can I download "rc1" from?
> 
> Thanks
> Uma
> 
> -----Original Message-----
> From: Rolf Kulemann [mailto:roku@apache.org] 
> Sent: Saturday, April 10, 2004 6:46 PM
> To: Slide Users Mailing List
> Subject: Re: Locking a resource and act on it in a different
> (WebDAV)session
> 
> On Fri, 2004-04-09 at 23:12, Andreas Probst wrote:
> > Hi Rolf,
> > 
> > to act on a locked resource it is necessary to give the lock 
> > token in the request. If I remember correctly, the spec 
> > recommends a client to send the lock token only if this client 
> > issued the lock. This way no client can steal the lock of 
> > another client of the same user. If you want to act on the 
> > resource with another client, read the lock token and send it 
> > with the request. So it should be possible the steal the lock of 
> > the other session.
> 
> Thanks, but my problem was solved with rc1. There is now a new method on
> the WebdavResource called discoverOwnLocks() which makes live much
> easier.
> 
> Thanks for ur reply.
> 
> -- 
> Regards,
> 
>     Rolf Kulemann
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Locking a resource and act on it in a different (WebDAV) session

Posted by Andreas Probst <an...@gmx.net>.
Hi Rolf,

I didn't know this, but I suppose this does exactly what I 
meant. Normally you must use the same instance of 
WebdavResource. This new method just steals the lock of another 
instance.

Andreas

On 10 Apr 2004 at 15:15, Rolf Kulemann wrote:

> On Fri, 2004-04-09 at 23:12, Andreas Probst wrote:
> > Hi Rolf,
> > 
> > to act on a locked resource it is necessary to give the lock 
> > token in the request. If I remember correctly, the spec 
> > recommends a client to send the lock token only if this client 
> > issued the lock. This way no client can steal the lock of 
> > another client of the same user. If you want to act on the 
> > resource with another client, read the lock token and send it 
> > with the request. So it should be possible the steal the lock of 
> > the other session.
> 
> Thanks, but my problem was solved with rc1. There is now a new method on
> the WebdavResource called discoverOwnLocks() which makes live much
> easier.
> 
> Thanks for ur reply.
> 
> -- 
> Regards,
> 
>     Rolf Kulemann
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


RE: Locking a resource and act on it in a different (WebDAV)session

Posted by Uma Gajendragadkar <um...@shakambhari.com>.
Where can I download "rc1" from?

Thanks
Uma

-----Original Message-----
From: Rolf Kulemann [mailto:roku@apache.org] 
Sent: Saturday, April 10, 2004 6:46 PM
To: Slide Users Mailing List
Subject: Re: Locking a resource and act on it in a different
(WebDAV)session

On Fri, 2004-04-09 at 23:12, Andreas Probst wrote:
> Hi Rolf,
> 
> to act on a locked resource it is necessary to give the lock 
> token in the request. If I remember correctly, the spec 
> recommends a client to send the lock token only if this client 
> issued the lock. This way no client can steal the lock of 
> another client of the same user. If you want to act on the 
> resource with another client, read the lock token and send it 
> with the request. So it should be possible the steal the lock of 
> the other session.

Thanks, but my problem was solved with rc1. There is now a new method on
the WebdavResource called discoverOwnLocks() which makes live much
easier.

Thanks for ur reply.

-- 
Regards,

    Rolf Kulemann


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org