Initialize the user before transfer-ownership - #37038
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
|
@phil-davis could you check the failing test? It seems to be caused by https://github.com/owncloud/core/blob/master/tests/lib/UtilTest.php#L388 and https://github.com/owncloud/core/blob/master/tests/lib/UtilTest.php#L411 I think the |
Codecov Report
@@ Coverage Diff @@
## master #37038 +/- ##
=========================================
Coverage 64.75% 64.76%
+ Complexity 19138 19136 -2
=========================================
Files 1270 1270
Lines 74912 74913 +1
Branches 1329 1328 -1
=========================================
+ Hits 48513 48517 +4
+ Misses 26008 26006 -2
+ Partials 391 390 -1
Continue to review full report at Codecov.
|
|
@jvillafanez I pushed a commit that should fix that. Let's see how CI goes! I also put the fix into a separate PR #37041 because it would be good to fix that UtilTest straight away, rather than waiting until this PR gets finished. I wonder how many other places in the unit tests have "cleanup" code in a test case after an expected exception? Cleanup code should all go in the |
|
@jvillafanez If you pull this branch locally, rebase and force push, it should get rid of that 2nd commit - the |
the user initialization
bce30f8 to
29652e6
Compare
|
I'll add the changelog entry after the review. I have my doubts about including and using the |
|
Having the On the other hand, final admin's aim is to just transfer files so, yes, I do agree with @jvillafanez in that we could probably get rid of it. My2c. |
4696d88 to
da6ac38
Compare
|
@jvillafanez Please update the title and the top post with the new approach. Rest looks fine IMO |
|
Done |
Description
Initialize the user's FS if he hasn't logged in yet before transferring files to him.
Related Issue
https://github.com/owncloud/enterprise/issues/3819
Motivation and Context
Transfer was failing silently. The command output didn't show any error but the transfer failed
How Has This Been Tested?
occ files:transfer-ownership user1 user2Checked also with master-key encryption but not user-key encryption
Screenshots (if appropriate):
Types of changes
Checklist: