-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dont check locks grants #4464
Dont check locks grants #4464
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
this needs a test against the ocis testsuite. When we change the grants we do not change the actual file content. so our etag should not change. but we explicitly made grants change the etag so clients would pick up the metadata change in case a file becomes readonly ... hm ... in posix a file has an atime (access time), mtime (modification time which only changes when the file content changes), ctime (change time, which includes metadata) and the btime (birth time). a chmod / setfacl only changes the ctime, but not the mtime. Currently, we derive the etag from the tmtime (tree modification time), which uses the But then a grant change should not change the etag ... I need to run the code. |
The etag of a file does not change when we add or remove a grant. However, we do propagate an etag change: the containing folders tmtime is updated when the grants of a contained file change. So, IMO, we could omit the CheckLock() call to allow changing grantds when files are locked. Let me check the RFCs |
https://datatracker.ietf.org/doc/html/rfc4918#section-7
So, let's check what dead and live properties are: https://datatracker.ietf.org/doc/html/rfc4918#section-4.1
The
So, the question is what WebDAV property are we affecting by adding grants? Only I don't see a reason why we would need to allow locking the There is also Furthermore, the permission to change grants is limited by permission checks as well. If an edit wer over permissions occurs and someone asks to be able to lock the permissions we can add an api for it. Until then: grants cannot be locked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also remove the CheckLock()
call from RemoveGrant()
28dd985
to
81d7a48
Compare
No description provided.