Warwick Burrows wrote:

Can any user unlock another user's locks? I didn't think that was valid.
What I'm seeing in 2.1B1 is that any user (the default for the CLI being
called "Slide") can unlock a lock owned by another user. I worked my way
through the client piece of the puzzle and I see that it is setting the
locktoken in the header of the unlock request. But I don't see where its
setting the owner?  eg.



...

Is it supposed to set the owner information in the request header so that
the server knows who is trying to do the unlock and can compare it to the
lock owner? I've still to look into the server side. I'm running my
configuration with security disabled but locks enabled in slide.properties.



Isn't it because security is disabled? There is a permission for unlocking other user's locks. If security is disabled, no checks are done, which means anybody can unlock any lock.
Also, my understanding is that the owner element in the lockMethod request is only informational. (The spec says it may contain phone number or home page of owner). A lock is identified only by the lock token and the principal owner of the token is determined by the current user (the user that was authenticated on login). Similarly, unlock uses the current session user as the principal requesting the unlock.


Carlos


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



Reply via email to