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 SCM by making user and password url-encoded #8355

Merged
merged 3 commits into from Jan 19, 2021

Conversation

danimtb
Copy link
Member

@danimtb danimtb commented Jan 18, 2021

Changelog: BugFix: Fix SCM user and password by making them url-encoded
Docs: omit

Note: By default this PR will skip the slower tests and will use a limited set of python versions. Check here how to increase the testing level by writing some tags in the current PR body text.

@danimtb danimtb added this to the 1.34 milestone Jan 18, 2021
@danimtb danimtb changed the base branch from develop to release/1.33 January 19, 2021 11:46
@danimtb danimtb modified the milestones: 1.34, 1.33 Jan 19, 2021
Copy link
Contributor

@jgsogo jgsogo left a comment

Choose a reason for hiding this comment

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

Only one question

return "{scheme}://{user}:{password}@{url}".format(scheme=scheme,
user=quote_plus(the_user),
password=quote_plus(the_password),
url=url)
Copy link
Contributor

Choose a reason for hiding this comment

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

other schemes like file or git should execute quote_plus too?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

@danimtb danimtb Jan 19, 2021

Choose a reason for hiding this comment

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

Apparently it is not supported in the URL https://stackoverflow.com/questions/31801271/what-are-the-supported-git-url-formats and git protocol has no authentication support https://stackoverflow.com/a/33846897/9585455

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.

[bug] passwords with special characters not properly encoded when checking out sources from SCM
3 participants