fix: urlencode id part of path by Pro · Pull Request #1606 · python-gitlab/python-gitlab
Repository navigation
fix: urlencode id part of path - #1606
Closed
Pro wants to merge 1 commit into python-gitlab:main from Pro:feat-urlencode
Closed
fix: urlencode id part of path #1606 Pro wants to merge 1 commit into python-gitlab:main from Pro:feat-urlencode
Conversation
Pro commented Sep 22, 2021
Copy link Copy Markdown
The tag_name part of the path must be urlencoded.
Found this issue when trying to update a release which has a slash in its title, e.g., "1.2.3/testing"
See also:
https://docs.gitlab.com/ee/api/releases/index.html#update-a-release
codecov-commenter commented Sep 29, 2021 · edited Loading
Copy link Copy Markdown
Codecov Report
@@ Coverage Diff @@ ## master #1606 +/- ## ========================================== + Coverage 91.59% 91.85% +0.25% ========================================== Files 74 74 Lines 4272 4295 +23 ========================================== + Hits 3913 3945 +32 + Misses 359 350 -9
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Pro commented Oct 8, 2021
Copy link Copy Markdown
Author
|
@nejch this PR should be ready for review/merge |
nejch commented Oct 8, 2021
Copy link Copy Markdown
Member
|
Hi @Pro , thanks for this PR. Just a few notes on this:
|
fix: urlencode id part of path
2eb8754
Pro
force-pushed
the
feat-urlencode
branch
from
6944bc7 to
2eb8754
Compare
October 8, 2021 19:26
Pro commented Oct 8, 2021
Copy link Copy Markdown
Author
|
I squashed all the commits. Currently I cannot invest more time into writing tests, maybe in a few weeks when there is more time, sorry. |
nejch commented Nov 7, 2021
Copy link Copy Markdown
Member
|
@Pro this might need a rebase now as we've switched to f-strings. |
nejch commented Jan 13, 2022
Copy link Copy Markdown
Member
|
Hi @Pro ! This was part of a much larger URL-encoding issue and this PR provides a specific solution in I believe we have now solved the underlying issue in a more general way that solves it for all endpoints and ensures a string is only ever URL-encoded once: #1819 . So I'll close this PR as I think the issue is fixed and we have tests for this now. But thanks again for your contribution, it showed us how widespread the URL-encoding problem was. Feel free to report any more issues or PRs if you find anything else :) |