Sharing and permissions
Steps to reproduce
- User A creates folder and share it with User B without deleting permissions
- User B uploads file to sharing folder
Expected behaviour
User A should be able to delete uploaded file in folder which he owns and shares with User B
Actual behaviour
User A cannot delete uploaded file, like sharing permissions on User B also affects User A. In filecache table I can see limited permissions column parameters. This behavior could be "fixed" with occ files:scan User A command - after that User A can delete file, User B can't, permissions in filecache table transfers to expected.
Server configuration
Operating system: Linux Web server: nginx 1.10.2 Database: Mariadb 10.1.19 PHP version: 7.0.14 Nextcloud version: (see Nextcloud admin page) 11.0.0, previous 10.something was affected too Updated from an older Nextcloud/ownCloud or fresh install: from Nextcloud 10.something, from owncloud 9.something Where did you install Nextcloud from: AUR Signing status:
Signing status
No errors have been found.List of activated apps:
App list
Enabled: - activity: 2.4.1 - admin_audit: 1.1.0 - bookmarks: 0.9.1 - calendar: 1.4.1 - comments: 1.1.0 - contacts: 1.5.2 - dav: 1.1.1 - direct_menu: 0.9.3 - encryption: 1.4.1 - federatedfilesharing: 1.1.1 - federation: 1.1.1 - files: 1.6.1 - files_automatedtagging: 1.1.1 - files_external: 1.1.2 - files_pdfviewer: 1.0.1 - files_sharing: 1.1.1 - files_texteditor: 2.2 - files_trashbin: 1.1.0 - files_versions: 1.4.0 - files_videoplayer: 1.0.0 - gallery: 16.0.0 - logreader: 2.0.0 - lookup_server_connector: 1.0.0 - mail: 0.6.2 - nextcloud_announcements: 1.0 - notes: 2.1.0 - notifications: 1.0.1 - password_policy: 1.1.0 - provisioning_api: 1.1.0 - serverinfo: 1.1.1 - sharebymail: 1.0.1 - survey_client: 0.1.5 - systemtags: 1.1.3 - theming: 1.1.1 - twofactor_backupcodes: 1.0.0 - updatenotification: 1.1.1 - workflowengine: 1.1.1 Disabled: - external - files_accesscontrol - files_retention - firstrunwizard - tasks - templateeditor - user_external - user_ldap - user_samlAre 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
Logs
Web server error log
Web server error log
no logsNextcloud log (data/nextcloud.log)
Nextcloud log
no logs
cc @nextcloud/sharing
I can verify this. It is because we mask the storage. @icewind1991 please take a look
Also an integration test won't hurt here. 😉