Skip to content

fix(download): accept native ZIP parent trailing slash - #47

Merged
opendev9 merged 2 commits into
devfrom
fix/zip-parent-trailing-slash
Oct 26, 2026
Merged

opendev9 merged 2 commits into
devfrom
fix/zip-parent-trailing-slash

Conversation

@opendev9

@opendev9 opendev9 commented Oct 26, 2026 •

Copy link
Copy Markdown

Etech always posts non-root ZIP parent directories with a trailing slash. The scoped ZIP issuer rejected that native directory form before object and ACL validation, causing both a selected folder and two selected files to return HTTP 500.

Remove one optional trailing parent separator before canonical validation and scope binding. Double separators, traversal, missing objects and ACL denial remain rejected. This changes only the ZIP issuer (8 added lines, 1 removed line).

Validation: reproduced the failure against the merged PR #46 source, then compiled/exercised the real token-manager functions with isolated native dependencies. Eight probe groups pass with explicit folder/multi trailing-slash cases and double-slash/traversal rejection. No full build, environment change or DEV deployment performed; real DEV acceptance remains pending deployment.

Review also verifies that a doubled root separator (//) remains rejected instead of being normalized to root.

@opendev9
opendev9 merged commit 5c99989 into dev Oct 26, 2026
1 check passed
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