]> source.dussan.org Git - nextcloud-server.git/commit
Fix share key finding algorithm in various cases
authorVincent Petry <pvince81@owncloud.com>
Wed, 17 Sep 2014 16:50:29 +0000 (18:50 +0200)
committerVincent Petry <pvince81@owncloud.com>
Tue, 23 Sep 2014 10:33:07 +0000 (12:33 +0200)
commit1e631754d78e98d74ba0d3fb477d5eb815e9dfb3
tree05baebac1ea899e06571dce381c124f9fdbed37b
parent4669ea38357f3f33caaf056d859e6318b75b72e1
Fix share key finding algorithm in various cases

Instead of inaccurate pattern matching, use the list of users who we
know have access to the file to build the list of share keys.

This covers the following cases:

- Move/copy files into a subfolder within a share
- Unsharing from a user
- Deleting files directlry / moving share keys to trashbin
apps/files_encryption/hooks/hooks.php
apps/files_encryption/lib/helper.php
apps/files_encryption/lib/keymanager.php
apps/files_encryption/tests/helper.php
apps/files_encryption/tests/hooks.php
apps/files_encryption/tests/keymanager.php
apps/files_encryption/tests/share.php
apps/files_encryption/tests/trashbin.php
apps/files_encryption/tests/util.php
apps/files_trashbin/lib/trashbin.php