Skip to content

Conversation

@PVince81
Copy link
Contributor

Forward port of #26871 to master

@jvillafanez please review

* 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
@PVince81 PVince81 added this to the 10.0 milestone Jan 17, 2017
@jvillafanez
Copy link
Member

👍

@PVince81
Copy link
Contributor Author

Test\Group\ManagerTest::testGetUserGroupsWithDeletedGroup
Error: Class 'Test\Group\User' not found

/var/lib/jenkins/workspace/owncloud-core_core_PR-26956-R5A4GUH52M2MRKZEN27YQLJMLUMML6JOZK7J4NNF6OVXWFFD36CA/tests/lib/Group/ManagerTest.php:437

@PVince81 PVince81 merged commit 58d43f1 into master Jan 19, 2017
@PVince81 PVince81 deleted the skipnullgroups branch January 19, 2017 14:02
@lock
Copy link

lock bot commented Aug 4, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants