nextcloud/apps/files_sharing/lib
Vincent Petry 2404f6a5a7
Make share target consistent when grouping group share with user share
In some situations, a group share is created before a user share, and
the recipient renamed the received share before the latter is created.
In this situation, the "file_target" was already modified and the second
created share must align to the already renamed share.

To achieve this, the MountProvider now groups only by "item_source"
value and sorts by share time. This makes it so that the least recent
share is selected as super-share and its "file_target" value is then
adjusted in all grouped shares.

This fixes the issue where this situation would have different
"file_target" values resulting in two shared folders appearing instead
of one.
2016-08-03 10:16:28 +02:00
..
API Do not allow to delete/update group shares as a group member 2016-08-02 10:50:35 +02:00
AppInfo Update with robin 2016-07-21 18:13:58 +02:00
Controllers Update with robin 2016-07-21 18:13:58 +02:00
Exceptions Fix apps/ 2016-07-21 18:13:57 +02:00
External Update with robin 2016-07-21 18:13:58 +02:00
Middleware Fix apps/ 2016-07-21 18:13:57 +02:00
share Update with robin 2016-07-21 18:13:58 +02:00
Activity.php Fix apps/ 2016-07-21 18:13:57 +02:00
Cache.php Update with robin 2016-07-21 18:13:58 +02:00
Capabilities.php Fix apps/ 2016-07-21 18:13:57 +02:00
DeleteOrphanedSharesJob.php Fix apps/ 2016-07-21 18:13:57 +02:00
ExpireSharesJob.php Fix apps/ 2016-07-21 18:13:57 +02:00
Helper.php Update with robin 2016-07-21 18:13:58 +02:00
Hooks.php Update with robin 2016-07-21 18:13:58 +02:00
ISharedStorage.php Update with robin 2016-07-21 18:13:58 +02:00
Maintainer.php Fix apps/ 2016-07-21 18:13:57 +02:00
Migration.php Update with robin 2016-07-21 18:13:58 +02:00
MountProvider.php Make share target consistent when grouping group share with user share 2016-08-03 10:16:28 +02:00
Scanner.php Update with robin 2016-07-21 18:13:58 +02:00
SharedMount.php Group shares with same source and target 2016-08-03 10:16:28 +02:00
SharedPropagator.php Update with robin 2016-07-21 18:13:58 +02:00
Updater.php Fix apps/ 2016-07-21 18:13:57 +02:00
sharedstorage.php Group shares with same source and target 2016-08-03 10:16:28 +02:00