fix(client): ensure encoded query params are never duplicated by nejch · Pull Request #2219 · python-gitlab/python-gitlab
Repository navigation
fix(client): ensure encoded query params are never duplicated - #2219
Merged
max-wittig merged 2 commits into main from fix/no-duplicate-params Aug 4, 2022
Merged
fix(client): ensure encoded query params are never duplicated #2219 max-wittig merged 2 commits into main from fix/no-duplicate-params
Conversation
nejch commented Aug 4, 2022 · edited Loading
Copy link Copy Markdown
Member
Closes #2218
This provides a small generic fix at the http_request level instead of messing even more with our own flows.
(I've always thought it was a bit weird that GitLab returns a lot of boilerplate query params in ther next header links, so I think this will also make other things more robust in the future).
test(unit): reproduce duplicate encoded query params
6f71c66
fix(client): ensure encoded query params are never duplicated
1398426
nejch
changed the title
test(unit): reproduce duplicate encoded query params
fix(client): ensure encoded query params are never duplicated
Aug 4, 2022
nejch
marked this pull request as ready for review
August 4, 2022 13:54
nejch
assigned
JohnVillalovos
Aug 4, 2022
nejch
mentioned this pull request
Aug 4, 2022
chore(ci): bump semantic-release for fixed commit parser
#2220
Merged
nejch
assigned
max-wittig
Aug 4, 2022
max-wittig
merged commit d263f57
into
main
Aug 4, 2022
max-wittig
deleted the
fix/no-duplicate-params
branch
August 4, 2022 14:36
JohnVillalovos
reviewed
Aug 4, 2022
View reviewed changes
Comment thread gitlab/client.py
| params = parse.parse_qs(parsed.query) | ||
| utils.copy_dict(src=query_data, dest=params) | ||
|
|
||
| url = raw_url.replace(parsed.query, "").strip("?") |
urlunparse instead of string replace
#2221
Merged
nejch
mentioned this pull request
Aug 23, 2022
gl.runner.all() causes tags to be repeated
#2250
Closed
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment