nextcloud/apps/files_sharing/lib/Controller
Vincent Petry 377fdf3860
Skip null groups in group manager (#26871) (#26956)
* 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>
2017-03-17 00:07:03 -06:00
..
ExternalSharesController.php Move files_sharing Controllers => Controller 2016-10-24 11:46:25 +02:00
PublicPreviewController.php More tests 2016-11-03 14:00:33 +01:00
RemoteController.php Move remote_shares OCS endpoint to AppFramework 2016-09-09 07:40:33 +02:00
ShareAPIController.php Skip null groups in group manager (#26871) (#26956) 2017-03-17 00:07:03 -06:00
ShareController.php add brute force protection for public link authentication 2017-01-25 18:17:08 +01:00
ShareesAPIController.php use (int) instead of intval for performance reasons 2017-02-22 15:14:36 +01:00