Repository navigation
Enforce storage limits for Local Share uploads and ZIPs - #46
Open
compnew2006 wants to merge 1 commit into
Open
compnew2006 wants to merge 1 commit into
compnew2006 wants to merge 1 commit into
Conversation
Owner
|
Thanks a lot for these. We're shipping the Netrex rename (0.5.11) first and will review them right after it, starting with the smaller fixes. The repository is now |
This branch has not been deployed
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.
Problem and impact
Local Share wrote incoming payloads to the gateway filesystem without per-file or cache-wide limits. The ordinary upload, folder archives, and temporary download bundles write to the same cache. Concurrent transfers could consume available disk space and disrupt the gateway or its database.
Changes
User impact
Uploads within the limits keep their existing response and download behavior. Oversized transfers or a full cache now produce a 413 response. If a folder upload is rejected, users can start a new folder upload. The limits apply to disk-backed Local Share.
Verification
pyflakes api core quota tests run.pyandgit diff --checkpassed.tests/test_updater.py::test_auto_install_fires_after_check, reproduced on the base commit. One full run also hit an intermittent DHCP fallback assertion intests/test_run_wiring.py. That test passed in isolation on both the base and the PR branch.