nextcloud/apps/files_sharing/tests
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
..
Controller Skip null groups in group manager (#26871) (#26956) 2017-03-17 00:07:03 -06:00
External Add a single public api for resolving a cloud id to a user and remote and back 2017-02-08 15:17:02 +01:00
Middleware allow to access mail shares even if public links are disabled 2017-01-04 21:23:26 +01:00
js Add tests 2016-11-07 21:02:23 +01:00
ApiTest.php unit tests updated and new added 2016-11-01 19:54:41 +01:00
BackendTest.php Move Share backends to PSR-4 instead of using class path (#24941) 2016-08-05 14:13:41 +02:00
CacheTest.php Move OC\Files\Storage\Shared to the right namespace 2016-10-20 20:27:44 +02:00
CapabilitiesTest.php remove 'send mail notification' option from sharing, replaced by send-by-mail feature 2016-11-02 18:30:38 +01:00
DeleteOrphanedSharesJobTest.php Fix apps/ 2016-07-21 18:13:57 +02:00
EncryptedSizePropagationTest.php Update with robin 2016-07-21 18:13:58 +02:00
EtagPropagationTest.php Generate coverage for quick DB tests 2016-10-05 13:55:44 +02:00
ExpireSharesJobTest.php Fix apps/ 2016-07-21 18:13:57 +02:00
ExternalStorageTest.php Add a single public api for resolving a cloud id to a user and remote and back 2017-02-08 15:17:02 +01:00
GroupEtagPropagationTest.php Fix post_unshareFromSelf hook parameter format 2016-10-20 16:09:08 +02:00
HelperTest.php Fix apps/ 2016-07-21 18:13:57 +02:00
LockingTest.php Update with robin 2016-07-21 18:13:58 +02:00
MigrationTest.php remove the 'shareapi_allow_mail_notification' setting 2016-11-02 21:17:05 +01:00
MountProviderTest.php Skip null groups in group manager (#26871) (#26956) 2017-03-17 00:07:03 -06:00
PermissionsTest.php Update with robin 2016-07-21 18:13:58 +02:00
PropagationTestCase.php Update with robin 2016-07-21 18:13:58 +02:00
ShareTest.php Cleanup OC_Group usage a bit 2016-11-04 20:55:47 +01:00
SharedMountTest.php Cleanup OC_Group usage a bit 2016-11-04 20:55:47 +01:00
SharedStorageTest.php use unmasked permissions in shared scanner 2016-12-14 14:37:51 +01:00
SizePropagationTest.php only query substorages to calculate the final mtime/size/etag lazily 2016-11-10 13:59:22 +01:00
TestCase.php Remove legacy class OC_Group and OC_User 2017-03-09 17:35:09 -06:00
UnshareChildrenTest.php Update with robin 2016-07-21 18:13:58 +02:00
UpdaterTest.php Fix tests 2016-10-31 17:17:45 +01:00
WatcherTest.php Update with robin 2016-07-21 18:13:58 +02:00