Filter unavailable users and remove unavailable shares on polling#35010
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #35010 +/- ##
============================================
+ Coverage 65.37% 65.37% +<.01%
- Complexity 18622 18626 +4
============================================
Files 1215 1215
Lines 70510 70532 +22
Branches 1295 1295
============================================
+ Hits 46095 46111 +16
- Misses 24041 24047 +6
Partials 374 374
Continue to review full report at Codecov.
|
VicDeo
force-pushed
the
improve-polling
branch
2 times, most recently
from
April 17, 2019 20:04
3519d5c to
bc8902f
Compare
PVince81
suggested changes
Apr 18, 2019
Contributor
|
@VicDeo please backport to release-10.2.0 branch |
10 tasks
Contributor
Author
|
release-10.2.0: #35073 |
Contributor
|
This was backported into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Protect polling from exploding on unavailable users
Motivation and Context
An unhandled exception has been thrown: TypeError: Argument 1 passed to OCA\Files_Sharing\External\MountProvider::getMountsForUser() must implement interface OCP\IUser, null given,when UserManager knows nothing about a userIdHow Has This Been Tested?
update oc_share_external set user="Iwouldliketobreakthepolling" limit 1;Expected
Polling goes through all entries with no termination
Actual
Polling terminates with
TypeError: Argument 1 passed to OCA\Files_Sharing\External\MountProvider::getMountsForUser() must implement interface OCP\IUser, null givenTypes of changes
Checklist:
Open tasks: