Repository navigation
fix(deployments): require ownership on chunked upload resume - #13118
Merged
Merged
Conversation
Reject createDeployment resume via content-range + x-appwrite-id when the deployment belongs to another function/site or resource type. Adds Functions and Sites e2e coverage. Co-authored-by: Chirag Aggarwal <[email protected]>
Contributor
Greptile SummaryThe PR prevents chunked deployment uploads from being resumed or short-circuited through a different Function or Site.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Reviews (2): Last reviewed commit: "test(functions): cover partial chunked u..." | Re-trigger Greptile |
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Exercise a foreign-function resume against an incomplete multi-chunk deployment so the ownership guard is not only covered via the completed short-circuit path. Co-authored-by: Chirag Aggarwal <[email protected]>
ChiragAgg5k
approved these changes
Aug 6, 2026
ChiragAgg5k
added a commit
that referenced
this pull request
Aug 6, 2026
Keep the partial-resume ownership test landed via #13118. Co-authored-by: Cursor <[email protected]>
4 of 5 tasks
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.
What does this PR do?
POST .../deploymentswithcontent-range+x-appwrite-idloads an existing deployment to resume a chunked upload (or short-circuit when already complete) without checking that it belongs to the function/site in the URL.Adds
resourceId+resourceTypeguards in both Functions and SitesDeployments/Create(both lock callbacks). E2E coverage usescontent-rangesox-appwrite-idis honored.Replaces #13117 (CI stuck on that branch after intermediate commits; Greptile was already 5/5).
Test Plan
content-range+x-appwrite-id→ 404deployment_not_foundRelated PRs and Issues
Checklist