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

Improve artifactory response validations #52

Merged
merged 4 commits into from
Sep 15, 2023
Merged

Conversation

asmello
Copy link
Contributor

@asmello asmello commented Sep 14, 2023

Fixes #40

@asmello asmello added the bug Reports or fixes associated with bugs in this project label Sep 14, 2023
@asmello asmello added this to the Stabilzation milestone Sep 14, 2023
@asmello asmello self-assigned this Sep 14, 2023
@asmello asmello changed the title Do not accept redirect in ping check Do not accept redirects in artifactory requests Sep 14, 2023
@mara-schulke
Copy link
Contributor

This would need to check mime types aswell!! Otherwise the weird "invalid gzip" error wont go away, if anything else than binary is returned

@asmello asmello changed the title Do not accept redirects in artifactory requests Improve artifactory response validations Sep 14, 2023
@asmello
Copy link
Contributor Author

asmello commented Sep 14, 2023

Ack, for the common case described in #40 preventing a redirect is sufficient, but I added an extra check for the mime type as well in the download method implementation.

@asmello asmello merged commit 67b7a61 into main Sep 15, 2023
5 checks passed
@asmello asmello deleted the amello/auth-validation branch September 15, 2023 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reports or fixes associated with bugs in this project
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Decompression fails with invalid auth config
2 participants