nextcloud/apps/files_sharing/lib
Vincent Petry e75a0a44c6
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-04 19:50:16 +02:00
..
API Do not allow to delete/update group shares as a group member 2016-08-03 09:17:50 +02:00
AppInfo Run the license script 2016-07-22 11:40:41 +02:00
Controllers Run the license script 2016-07-22 11:40:41 +02:00
Exceptions Run the license script 2016-07-22 11:40:41 +02:00
External Run the license script 2016-07-22 11:40:41 +02:00
Middleware Run the license script 2016-07-22 11:40:41 +02:00
share Run the license script 2016-07-22 11:40:41 +02:00
Activity.php Run the license script 2016-07-22 11:40:41 +02:00
Cache.php Run the license script 2016-07-22 11:40:41 +02:00
Capabilities.php Run the license script 2016-07-22 11:40:41 +02:00
DeleteOrphanedSharesJob.php Run the license script 2016-07-22 11:40:41 +02:00
ExpireSharesJob.php Run the license script 2016-07-22 11:40:41 +02:00
Helper.php Run the license script 2016-07-22 11:40:41 +02:00
Hooks.php Run the license script 2016-07-22 11:40:41 +02:00
ISharedStorage.php Run the license script 2016-07-22 11:40:41 +02:00
Maintainer.php Run the license script 2016-07-22 11:40:41 +02:00
Migration.php Run the license script 2016-07-22 11:40:41 +02:00
MountProvider.php Make share target consistent when grouping group share with user share 2016-08-04 19:50:16 +02:00
Scanner.php Run the license script 2016-07-22 11:40:41 +02:00
SharedMount.php Group shares with same source and target 2016-08-04 19:49:27 +02:00
SharedPropagator.php Run the license script 2016-07-22 11:40:41 +02:00
Updater.php Run the license script 2016-07-22 11:40:41 +02:00
sharedstorage.php Group shares with same source and target 2016-08-04 19:49:27 +02:00