[Bug]: Can not move shared file without download permission
Open
Nobody has claimed this yet.
1. to develop
31-feedback
bug
feature: sharing
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
When a user receives a file share without download-sync permission they cannot move that file.
Trying to do so results in:
Access to this shared resource has been denied because its download permission is disabled.
Still the action is shown to the user in the files list.
Steps to reproduce
- user1 create a file
- user1 shares the file to user2 with "view only" and remove download-sync permission
- user2 tries to move the file to a directory
Expected behavior
- Either do not offer the move action.
- Or moving should be allowed as it does not increase any permissions
Nextcloud Server version
master (32)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the shared-file scenario with download-sync permission disabled, then inspect the files-list move action and the permission check that rejects the move. Confirm the behavior against both expected options: hide the move action or allow the move without granting additional access.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- authorization, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100