Skip to content

BuildManager: Correctly handle builds with quoting in their name#477

Merged
allburov merged 2 commits intodevopshq:masterfrom
flichtenheld:build_name_with_spaces
Mar 18, 2025
Merged

BuildManager: Correctly handle builds with quoting in their name#477
allburov merged 2 commits intodevopshq:masterfrom
flichtenheld:build_name_with_spaces

Conversation

@flichtenheld
Copy link
Contributor

Since we quote the build names when using them in
a URL we need to make sure they are unquoted to
begin with to avoid double quoting.

Happens e.g. with builds containing spaces.

quote is not officially part of requests.utils API, it
is just imported from requests.compat which imports it
from urllib.parse. So just use it directly. Much less
confusing.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Since we quote the build names when using them in
a URL we need to make sure they are unquoted to
begin with to avoid double quoting.

Happens e.g. with builds containing spaces.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
@allburov allburov merged commit 3125f6d into devopshq:master Mar 18, 2025
5 checks passed
@allburov
Copy link
Member

Danke!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments