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

Bug 1828428 - Return false from GetDisableSSL if the S3 url is empty #515

Merged
merged 2 commits into from Apr 29, 2020

Conversation

mansam
Copy link
Contributor

@mansam mansam commented Apr 27, 2020

GetDisableSSL() should return false for empty strings, but since url.Parse doesn't throw an error for a empty string the URL falls through to the "no scheme" case and returns true. This patch causes GetDisableSSL() to return false when GetURL() is empty, matching the expected behavior described in the comment.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1828428

@mansam mansam added the kind/bug Categorizes issue or PR as related to a bug. label Apr 27, 2020
@mansam mansam changed the title Return false from DisableSSL if the S3 url is empty Return false from GetDisableSSL if the S3 url is empty Apr 27, 2020
@eriknelson eriknelson changed the title Return false from GetDisableSSL if the S3 url is empty Bug 1821276 - Return false from GetDisableSSL if the S3 url is empty Apr 28, 2020
@eriknelson eriknelson changed the title Bug 1821276 - Return false from GetDisableSSL if the S3 url is empty Bug 1828428 - Return false from GetDisableSSL if the S3 url is empty Apr 28, 2020
Copy link
Contributor

@jortel jortel left a comment

Choose a reason for hiding this comment

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

LGTM

@mansam mansam merged commit 245199b into migtools:master Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants