-
-
Notifications
You must be signed in to change notification settings - Fork 77
albums: check copy source owner is the current user and throw #1718
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
Conversation
artonge
left a comment
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.
Indeed, much cleaner.
One small nitpick though
I don't remember why the limitation exists, but it was probably to reduce the complexity of the first version. |
|
/backport to stable26 |
|
/backport to stable25 |
|
/rebase |
Signed-off-by: Varun Patil <[email protected]>
4f14cab to
79c8c4a
Compare
The current behavior when trying to copy a shared file to an album is meaningless. Since the
copyIntocall returnsfalse, DAV falls back to trying to create the file again with the same content (see this fallback). As a result,If we throw while copying, the user can't add shared files to albums anymore with a proper error message, and files don't get copied unnecessarily.
One thing to note here, I do think ideally there should be some way to add shared files to albums, as long as the file as resharing permissions. Of course then we might need to check later if the file is unshared and remove it from the album. Thoughts?