summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/MountProvider.php
Commit message (Collapse)AuthorAgeFilesLines
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #3884 from nextcloud/downstream-26956Joas Schilling2017-03-201-1/+17
|\ | | | | Skip null groups in group manager
| * Use DIJoas Schilling2017-03-171-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Skip null groups in group manager (#26871) (#26956)Vincent Petry2017-03-171-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Skip null groups in group manager (#26871) * Skip null groups in group manager * Also skip null groups in group manager's search function * Add more group null checks in sharing code * Add unit tests for null group safety in group manager * Add unit tests for sharing code null group checks * Added tests for null groups handling in sharing code * Ignore moveShare optional repair in mount provider In some cases, data is inconsistent in the oc_share table due to legacy data. The mount provider might attempt to make it consistent but if the target group does not exist any more it cannot work. In such case we simply ignore the exception as it is not critical. Keeping the exception would break user accounts as they would be unable to use their filesystem. * Adjust null group handing + tests * Fix new group manager tests Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | shares-circlesMaxence Lange2017-03-171-0/+3
|/ | | Signed-off-by: Maxence Lange <maxence@nextcloud.com>
* When grouping shares, sort by stime then id (#26777)Vincent Petry2016-12-191-1/+1
| | | | | | | If share times are equal, the first share should still win instead of having the shares swapped. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* let the share backend get the node cacheentry to save queriesRobin Appelman2016-11-171-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move OC\Files\Storage\Shared to the right namespaceJoas Schilling2016-10-201-1/+1
|
* Make share target consistent when grouping group share with user shareVincent Petry2016-08-031-8/+19
| | | | | | | | | | | | | | | | 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.
* Improved share grouping readability + fixed testVincent Petry2016-08-031-8/+17
|
* Group shares with same source and targetRoeland Jago Douma2016-08-031-3/+67
| | | | | | | Fixes #24575 Note that this is a very limited solution and eventually we want smarter merging!
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-211-2/+4
|
* Filter out group shares for owner where owner is included (#25190)Vincent Petry2016-06-211-2/+3
|
* Catch exceptions while creating shared mounts (#25077)Robin Appelman2016-06-201-10/+23
|
* Update license headersLukas Reschke2016-05-261-0/+1
|
* Move lib/ to PSR-4Joas Schilling2016-05-251-0/+83