Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: use url-encoded ID in all paths (alternate method)#1820

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
JohnVillalovos wants to merge1 commit intomainfromjlvillal/encoded_id_alt

Conversation

JohnVillalovos
Copy link
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

@codecov-commenter
Copy link

codecov-commenter commentedJan 9, 2022
edited
Loading

Codecov Report

Merging#1820 (99e1f8b) intomain (ac81272) willincrease coverage by0.08%.
The diff coverage is66.66%.

@@            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
FlagCoverage Δ
cli_func_v481.37% <26.35%> (+0.01%)⬆️
py_func_v480.16% <58.91%> (-0.01%)⬇️
unit83.23% <34.10%> (+0.19%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

Impacted FilesCoverage Δ
gitlab/v4/objects/epics.py74.41% <0.00%> (ø)
gitlab/v4/objects/features.py72.22% <0.00%> (+3.80%)⬆️
gitlab/v4/objects/geo_nodes.py68.57% <0.00%> (ø)
gitlab/v4/objects/groups.py87.78% <33.33%> (ø)
gitlab/v4/objects/jobs.py77.27% <33.33%> (ø)
gitlab/v4/objects/projects.py87.19% <33.33%> (ø)
gitlab/v4/objects/repositories.py83.07% <55.55%> (ø)
gitlab/v4/objects/merge_requests.py84.78% <62.50%> (ø)
gitlab/mixins.py91.45% <63.15%> (-0.09%)⬇️
gitlab/v4/objects/issues.py89.02% <66.66%> (ø)
... and10 more

@JohnVillalovosJohnVillalovos marked this pull request as draftJanuary 9, 2022 07:51
An alternative to#1819Make sure all usage of the ID in the URL path is encoded. Normally itisn't an issue as most IDs are integers or strings which don't containa slash ('/'). But when the ID is a string with a slash character itwill break things.Add a test case that shows this fixes wikis issue with subpages whichuse the slash character.Closes:#1079
@JohnVillalovos
Copy link
MemberAuthor

TheEncodedId class is kind of cool 😎 in my opinion... But also kind of complicated. It was really interesting figuring this out.

Interested to hear what you think@nejch

nejch reacted with hooray emoji

@nejchnejch changed the titlefix: use url-encoded ID in all paths ALTERNATE METHODfix: use url-encoded ID in all paths (alternate method)Jan 9, 2022
@nejch
Copy link
Member

I guess we can close this one@JohnVillalovos as the changes were essentially incorporated into the original one right?

@JohnVillalovos
Copy link
MemberAuthor

I guess we can close this one@JohnVillalovos as the changes were essentially incorporated into the original one right?

Yep!

@nejchnejch deleted the jlvillal/encoded_id_alt branchMay 9, 2022 19:51
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nejchnejchAwaiting requested review from nejch

Copilot code reviewCopilotAwaiting requested review from CopilotCopilot will automatically review once the pull request is marked ready for review

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

project.wikis.create with subpages results in 404 Wiki Page Not Found
3 participants
@JohnVillalovos@codecov-commenter@nejch

[8]ページ先頭

©2009-2025 Movatter.jp