fix: use url-encoded ID in all paths (alternate method) by JohnVillalovos · Pull Request #1820 · python-gitlab/python-gitlab
Repository navigation
fix: use url-encoded ID in all paths (alternate method) - #1820
Closed
JohnVillalovos wants to merge 1 commit into main from jlvillal/encoded_id_alt
Closed
fix: use url-encoded ID in all paths (alternate method) #1820 JohnVillalovos wants to merge 1 commit into main from jlvillal/encoded_id_alt
Conversation
JohnVillalovos commented Jan 9, 2022
Copy link Copy Markdown
Member
An alternative to #1819
Make sure all usage of the ID in the URL path is encoded. Normally it
isn't an issue as most IDs are integers or strings which don't contain
a slash ('/'). But when the ID is a string with a slash character it
will break things.
Add a test case that shows this fixes wikis issue with subpages which
use the slash character.
Closes : #1079
JohnVillalovos force-pushed the jlvillal/encoded_id_alt branch from37dff7e to
fd8a747
Compare
January 9, 2022 07:20
codecov-commenter commented Jan 9, 2022 · edited Loading
Copy link Copy Markdown
Codecov Report
@@ Coverage Diff @@ ## main #1820 +/- ## ========================================== + Coverage 92.10% 92.18% +0.08% ========================================== Files 76 76 Lines 4801 4826 +25 ========================================== + Hits 4422 4449 +27 + Misses 379 377 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
fd8a747 to
1df929c
Compare
January 9, 2022 07:41 JohnVillalovos marked this pull request as draft January 9, 2022 07:51
fix: use url-encoded ID in all paths ALTERNATE METHOD
99e1f8b
An alternative to #1819 Make sure all usage of the ID in the URL path is encoded. Normally it isn't an issue as most IDs are integers or strings which don't contain a slash ('/'). But when the ID is a string with a slash character it will break things. Add a test case that shows this fixes wikis issue with subpages which use the slash character. Closes: #1079JohnVillalovos force-pushed the jlvillal/encoded_id_alt branch from
1df929c to
99e1f8b
Compare
January 9, 2022 08:53
JohnVillalovos commented Jan 9, 2022
Copy link Copy Markdown
Member
Author
|
The Interested to hear what you think @nejch |
nejch commented Jan 13, 2022
Copy link Copy Markdown
Member
|
I guess we can close this one @JohnVillalovos as the changes were essentially incorporated into the original one right? |
JohnVillalovos commented Jan 13, 2022
Copy link Copy Markdown
Member
Author
Yep! |