fix: file quota was not applied in all cases#21894
Merged
nickvergessen merged 1 commit intomasterfrom Aug 24, 2020
Merged
Conversation
icewind1991
approved these changes
Jul 20, 2020
Member
|
I guess this needs backporting to 19, 18 and 17? @korelstar |
Member
|
Also, do you mind rebasing to show green CI? |
d741f8f to
0bc5c25
Compare
Member
Author
|
@nickvergessen I've rebased the branch, but since there are CI errors on all commits on master, I don't think this will make this PR green ...
Yes! :-) |
Member
Author
|
Ping @rullzer |
0bc5c25 to
d8a80cd
Compare
Member
|
Rebased to trigger CI again. |
|
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 32099: failureacceptance-app-files
Show full log |
Member
Author
|
Drone error seems to be unrelated since it's in all current PRs. Can this be merged, now? |
Member
|
Backports to be triggered after the maintenance round on thursday |
Member
|
/backport to stable19 |
Member
|
/backport to stable18 |
Member
|
/backport to stable17 |
This was referenced Sep 17, 2020
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.
Since 70906a3, the file quota was not applied in all cases (see discussion with @nickvergessen on Talk). You can see the problem in the test case for the notes app's API tests: https://github.com/nextcloud/notes/runs/881221664
It looks like the problem is that by calling
$homeMount->getStorageRootId(), the storage cache is created before the mount was actually added. Movingself::getMountManager()->addMount($homeMount)before that call fixes this issue. However, I don't know if this has any side-effects./cc @icewind1991 @rullzer
Since the original PR #21489 was backported to stable19, stable18 and stable17, this PR should also be backported to those branches.