Skip to content

test: cover scoped upload root path regression - #26

Closed
opendev9 wants to merge 1 commit into
devfrom
fix/root-upload-path
Closed

opendev9 wants to merge 1 commit into
devfrom
fix/root-upload-path

Conversation

@opendev9

Copy link
Copy Markdown

Root-directory uploads previously failed because scoped upload tickets reused a file-download path validator that rejects /. The production fix is already on dev in f4f984b; this PR adds the missing regression coverage without duplicating or changing that fix.

The test compiles the actual C upload/download validators and checks 21 path cases: upload root acceptance, download root rejection, normal and Unicode paths, traversal, separators, control characters, invalid UTF-8 and length boundaries. It also checks that each RPC calls its intended validator. The testing guide includes the command.

Validation: python3 tests/test_scoped_upload_paths.py and git diff --check passed. No full Server build, live authorization/upload test or deployment was performed. Root-level files such as /file.pdf remain valid download targets; / itself is a directory, not a single-file download target.

@opendev9

Copy link
Copy Markdown
Author

Closed per owner decision: the fix itself (f4f984b) is already on dev; this PR only carried the regression test de9cc5a, which is not being merged.

@opendev9 opendev9 closed this Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant