Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix role parsing in golang 1.17+ #1635

Merged
merged 1 commit into from
May 31, 2022

Conversation

kylewuolle
Copy link
Contributor

In golang 1.17 a change was made to remove anything preceding a slash from the filename field of the Content-Disposition header. This causes a problem with notary since it's using the filename field for the role value. This fix changes the parsing of the header value so it grabs the raw filename value instead of using the method that removes the base part of the filename.

This is also outlined in this issue:
#1630

@kylewuolle
Copy link
Contributor Author

Ping @thaJeztah @marcofranssen

Copy link
Contributor

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (but not a maintainer 😅)

@thaJeztah
Copy link
Contributor

ping @justincormack @HuKeping PTAL (also looks like CI is no longer running, including codecov, which was marked as "required"; probably need to rewrite CI to use GitHub actions, or re-enable CircleCI

…ader to support later versions of golang which will remove anything prior to a slash in the filename field.

Signed-off-by: Kyle Wuolle <[email protected]>
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.

4 participants