Sorry for reposting - but I cannot believe that I am the only one having
this problem!

What I have is a client that can "reconnect" to a locked resource! This
is interesting if the client or server crashes and the need to reconnect
afterward! I do not wish to store additional info about the lock on the
server or the client! 

Therefore I need to retrieve the locktoken and then try to see if I can
access the resource! The only way, that I could think of, is to try and
add/remove a property on the resource - and thereby verify that I have
write-access to the resource!

Is this the way all of you do this, or am I missing something?

Thanks
Jacob

-----Original Message-----
From: Jacob Lund [mailto:[EMAIL PROTECTED]] 
Sent: 4. oktober 2002 12:28
To: [EMAIL PROTECTED]
Subject: Verifying access


Hi,

How do I check if I have access to a given resource, in case it has a
lock on it?

I have a resource with an exclusive lock on it, and now I want to check
it I have access to this resource! 

What I do is retrieve the lock-token and now I need to check if the user
owns this lock! I then add this lock-token to a request header and then
test if I can operate on the resource by adding a new meta-tag and then
remove it again! 

But is there an easier way to verify if current user owns the lock on a
given resource?

/Jacob 


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to