[Bug]: The share settings of a folder are changed automatically
Nobody has claimed this yet.
- 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
I created a "Root Test" folder in the root directory of Nextcloud, which I own, and then I also created a "Level 1" sub-folder within "Root Test". I wanted to share the sub-folder with my colleague GS.
I noticed a bug when I tried to share a folder with my colleague GS. I selected "Custom permissions" so he could also share the "Level 1" folder with someone else: see "Screenshot... Test 1.png" and "Screenshot... Test 2.png". Then I browsed through the Nextcloud folders and finally returned to the "Level 1" sub-folder. I then realized that GS only had edit access to the "Level 1" folder instead of the "Custom permissions" I had initially granted him, as shown on "Screenshot... Test 3.png".
Is it a real bug or a misconfiguration on our Nextcloud server?
Steps to reproduce
- Create a folder A.
- Create a sub-folder B in the folder A.
- Share the sub-folder B with custom permissions including share permission.
- Go to other folder.
- Go back to the folder B and look at the share settings.
Expected behavior
I expected to have always the same settings for the shared folder.
Nextcloud Server version
32
Operating system
Debian/Ubuntu
PHP engine version
None
Web server
None
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 32.0.1 to 32.0.2)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
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
No source files or tests are named. Start by reproducing the folder-sharing flow: grant custom permissions including share permission to sub-folder B, navigate to another folder, and return to B. Trace where the share settings are loaded and persisted, then verify that the custom permission remains unchanged after navigation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, php
- Domain
- authorization, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100