Publishing signed extension fails if file name contains special character #1059
Labels
author-verification-requested
bug
Issue identified by VS Code Team member as probable bug
verified
Verification succeeded
Milestone
If either file name in a signed extension publish contains a special character, publish will fail with "Invalid part headers." This is because the
Content-Disposition
header for each file part contains the original file name, and itsfilename
property has rules which aren't being followed.Repro steps
vsce publish --packagePath <FileNameWith@Character> --sigzipPath <FileNameWith@Character>
Expected result
Publish will succeed.
Actual result
Publish fails with "Invalid part headers."
https://developer.mozilla.org/docs/Web/HTTP/Headers/Content-Disposition#as_a_response_header_for_the_main_body says:
More thorough guidance is in https://www.rfc-editor.org/rfc/rfc6266#section-4.3
CC @sandy081, @sbanni
The text was updated successfully, but these errors were encountered: