-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix for when account not found during sync #30367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lib/private/User/SyncService.php
Outdated
| $this->mapper->update($a); | ||
| } catch(DoesNotExistException $ex) { | ||
| $this->createNewAccount($backendClass, $uid); | ||
| $a = $this->createNewAccount($backendClass, $uid); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this was not detected by the regular CI process - I assume this is missing unit tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The regression looks like it happened here:
https://github.com/owncloud/core/pull/29669/files#diff-37958be4e01e8baeb127a59409e1a593L114
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep - looking at tests for this
Codecov Report
@@ Coverage Diff @@
## master #30367 +/- ##
============================================
- Coverage 60.84% 60.67% -0.17%
Complexity 18549 18549
============================================
Files 1092 1092
Lines 61280 61280
============================================
- Hits 37286 37182 -104
- Misses 23994 24098 +104
Continue to review full report at Codecov.
|
|
Added a test to run through the sync service at least once. |
|
restarted drone, now passed |
|
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. |
Fixes https://jenkins.owncloud.org/job/upgrade-testing/CONFIG=8.2.11%3Bdaily-master-qa,DB=sqlite/285/console