nextcloud / nextcloud/groupfolders
"Error updating the share: You are not allowed to share [folder name]" when editing shared folder permissions.
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 343
- Forks
- 106
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 34
Description
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Create a Group Folder with a sub-folder inside.
- Share the sub-folder with a user not in the group.
- Attempt to edit the permissions of the share.
Expected behaviour
I should be able to edit the permissions (Allow editing, Allow creating, etc.).
Actual behaviour
I receive an error message notification that reads: "Error updating the share: You are not allowed to share [folder name]". The permissions remain unchanged.
Server configuration
Operating system: Linux 5.4.0-131-generic x86_64
Web server: Apache
Database: mysql 8.0.30
PHP version: 8.0.24
Nextcloud version: (see Nextcloud admin page) 24.0.6
Group folders version: 12.0.2
Updated from an older Nextcloud/ownCloud or fresh install: Installed as a Snap originally, so it has updated versions a few times.
Where did you install Nextcloud from: Snap
Are you using external storage, if yes which one: No
Are you using encryption: No
Are you using an external user-backend, if yes which one: LDAP
Client configuration
Browser: Brave Web Browser
Operating system: Debian 11 bullseye
Logs
Nextcloud log (data/nextcloud.log)
Nextcloud log
There is nothing in the Logging page related to this issue.
Browser log
Browser log
PUT https://site.name.com/ocs/v2.php/apps/files_sharing/api/v1/shares/2578 404 (Not Found)
ShareRequests.js:111 Error while updating share Error: Request failed with status code 404
at t.exports (createError.js:16:15)
at t.exports (settle.js:17:12)
at XMLHttpRequest.y (xhr.js:66:7)
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
Start with the PUT request to /ocs/v2.php/apps/files_sharing/api/v1/shares/2578 and the failing call at ShareRequests.js:111, then trace how shared-folder permission updates are authorized. Reproduce the Group Folder and sub-folder steps, and confirm that editing permissions succeeds without the 404 or error notification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- api, authorization, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100