-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Shared files are duplicated when moved to subdir #8301
Comments
By default, a user only sees the folder or file shared with him. The above structure is not shown! So a single file is always shown directly without the folder containing it. In your case you'd unshare the fiile and then share the folder |
Ok, I understand logic this case, but should be option to auto share directory structure, when user share file. For me, bigger problem is that, when owner move shared file to subdir other people sees two files. Most of people will be think that these files are not the same file. I modified one file and file in subdir was modified too. What if it will be important file. User lost data, because will be think that is different file. It should be fixed. |
Imagine we avoid the same file to be shared with you twice. It can still happen, that there is a overlap between shares (especially with resharing, server-to-server-sharing etc.). If someone already share a file with you, and someone different wants to share a folder that contains the same file, what do you want to happen (the sharing is not possible, only the file is missing, what if the permissions are different-> e.g. in general you can only read a folder and a specific file is shared with editing permission)? |
Current behavior makes sense and we will keep it like that for now. Thanks for the report anyways. |
Steps to reproduce
Create empty file (e.g testowy.txt) in root dir and enter some text
Share this file with group (I added group "users" - all users are members of this group)
Create empty dir (e.g "Katalog testowy") in root dir
Move shared file (testowy.txt) to dir "Katalog testowy". You have to be logged in as owner this file and dir
File is still visible in root dir for other users. "Katalog testowy" is not visible for other users.
Expected: I think, subdir should be visible for others users, but files inside dir not, if are not shared.
Share dir "Katalog testowy" with other users
Expected: Subdir should be visible for other users when shared (OK)
Shared file should be visible only in "Katalog testowy". At the moment, file is visible in subdir (Katalog testowy) only for owner. Other users can see this file in root dir and subdir. When modify this file in root dir (non owner "File" app), file in subdir is modified too.
Create and share file inside subdir as owner. File is visible for owner and other users in subdir
Server configuration
Operating system: Debian9
Web server: Apache 2.4.25
Database: sqlite 3.16.2
PHP version: 5.6.30
Nextcloud version: (see Nextcloud admin page): NextCloud 13 (stable)
Updated from an older Nextcloud/ownCloud or fresh install: fresh instalation
No errors have been found.
List of activated apps:
Enabled:
Disabled:
Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No
Client configuration
Browser:
Firefox 58.0.2 (64 bity)
Operating system:
Kubuntu
The text was updated successfully, but these errors were encountered: