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

downloader: log message on unexpected bundle content type #4432

Conversation

anderseknert
Copy link
Member

Fixes #4278

Signed-off-by: Anders Eknert anders@eknert.com

@anderseknert
Copy link
Member Author

Not sure if debug is the right log level, but since a wrong content-type header could be used to serve a valid bundle, it would likely be noisy to log this at higher levels.

srenatus
srenatus previously approved these changes Mar 14, 2022
Copy link
Contributor

@srenatus srenatus left a comment

Choose a reason for hiding this comment

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

Some nitpicks and questions but this look OK otherwise 👍

download/download.go Outdated Show resolved Hide resolved
download/download_test.go Show resolved Hide resolved
download/download_test.go Outdated Show resolved Hide resolved
srenatus
srenatus previously approved these changes Mar 15, 2022
@anderseknert
Copy link
Member Author

I feel stuck on the race condition. Any help would be appreciated, @srenatus 🙂

@srenatus
Copy link
Contributor

a6698f7 maybe something along those lines?

@anderseknert anderseknert force-pushed the bundle-dl-warn-on-funky-content-type branch 3 times, most recently from fc3a14a to b86e61a Compare March 22, 2022 09:43
srenatus
srenatus previously approved these changes Mar 22, 2022
Fixes open-policy-agent#4278

Signed-off-by: Anders Eknert <anders@eknert.com>
@anderseknert anderseknert merged commit 821e638 into open-policy-agent:main Mar 22, 2022
@anderseknert anderseknert deleted the bundle-dl-warn-on-funky-content-type branch March 22, 2022 10:02
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.

Improve error message when bundle server doesn't serve a bundle
3 participants