Skip to content

fix(sourcemaps): ignore non-string sourcemap headers - #129436

Draft
joshuarli wants to merge 2 commits into
masterfrom
fix/sourcemap-non-string-headers
Draft

joshuarli wants to merge 2 commits into
masterfrom
fix/sourcemap-non-string-headers

Conversation

@joshuarli

Copy link
Copy Markdown
Member

Behavioral split from #129431 (cast audit).

Artifact headers come from uploaded manifests and are typed as object. A non-string sourcemap or x-sourcemap value was passed into force_bytes, which assumes a string. Treat non-string values as absent at the accessor and cover it directly.

This also removes the trust-boundary casts from the source map debug endpoint.

Artifact headers come from uploaded manifests. Treat a non-string
sourcemap or x-sourcemap value as absent instead of passing it into
force_bytes, and cover the accessor directly.
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 31, 2026
The helper returns the raw string header; convert it to bytes in a
separate variable so the variable keeps one type through the archive
lookup paths.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant