-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Enhance quota exceeded logging for admins #37581
Enhance quota exceeded logging for admins #37581
Conversation
For the record... Existing log entry for all quota issues:
New (where owner is applicable):
New (where owner is inapplicable but there's still a quota issue):
|
d536688
to
3ebd206
Compare
/rebase |
3ebd206
to
0111e55
Compare
tests failing... |
Head branch was pushed to by a user without write access
3d6e63f
to
3685013
Compare
Fixed (at least for me... we'll have to see what the tests say). In the quota plugin, depending on which That's current behavior so I'm leaving it be, but I added a check for non-chunked uploads in The main reason non-chunked uploads triggered this is because the PUT operation never finishes (since the quota is exceeded) so there's really no file to check ownership of - all we have is the intended folder. All my manual testing was apparently based on doing >10 MB uploads. And the way that chunking-v2 uploads work, the MOVE was giving us what we expected for |
Incidentally this also fixes a "cosmetic" bug as a side effect versus current master behavior where hitting quota with uploads in the root folder were being mishandled in the logging/notifications: I'd noted this during various bits of testing but hadn't gotten around to checking for prior reports of or root causes for - so that's a nice benefit to this change even if it wasn't the target of (or caused by) this PR. Woohoo! |
What's the status here @joshtrichards :) |
Summary
Enhances quota exceeded server-side logging for administrators by adding:
Context: The existing
Insufficient space
error logging doesn't indicate the folder owner (which is important since the sharee path is what's logged). In addition, quota issues are addressed differently than, say, disk space issues so administrators benefit from quickly noting the type ofInsufficient space
issue occurring.Applies to file/folder operations: uploads, moves, copies
Also:
Addresses backend portion of #37519
*Currently working on independent (but related) PRs to unify frontend messaging with same target folder owner inclusion (when applicable)
TODO
Checklist