-
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
Block overwriting mountpoints through COPY #4785
Conversation
3d5f8b1
to
fb07fe7
Compare
Should you prevent the overwriting via the MOVE? |
return nil | ||
} | ||
|
||
// we must not allow to override mountpoints - so we check if we have write access to the parent. If not this is a mountpoint |
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.
hm, what if we are in a readonly space where we were granted write permissions on a subfolder?
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.
the comment is wrong - I only stat it, so view permissions is enough.
EDIT: updated the comment
I don't think so. Cross-storage MOVEs are not supported as far as I know. |
Signed-off-by: jkoberg <jkoberg@owncloud.com>
reva part of owncloud/ocis#6999