Title: Get rid of all custom URL encoding · Issue #1356 · python-gitlab/python-gitlab · GitHub
Open Graph Title: Get rid of all custom URL encoding · Issue #1356 · python-gitlab/python-gitlab
X Title: Get rid of all custom URL encoding · Issue #1356 · python-gitlab/python-gitlab
Description: See also #1336, #1080, #1079. On the other hand, need to check #1006 and the current state of python-gitlab/gitlab/client.py Lines 513 to 524 in 96d2805 # Requests assumes that `.` should not be encoded as . and will make # changes to ...
Open Graph Description: See also #1336, #1080, #1079. On the other hand, need to check #1006 and the current state of python-gitlab/gitlab/client.py Lines 513 to 524 in 96d2805 # Requests assumes that `.` should not be en...
X Description: See also #1336, #1080, #1079. On the other hand, need to check #1006 and the current state of python-gitlab/gitlab/client.py Lines 513 to 524 in 96d2805 # Requests assumes that `.` should not be en...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/1356
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get rid of all custom URL encoding","articleBody":"See also https://github.com/python-gitlab/python-gitlab/pull/1336, https://github.com/python-gitlab/python-gitlab/pull/1080, https://github.com/python-gitlab/python-gitlab/issues/1079.\r\n\r\nOn the other hand, need to check https://github.com/python-gitlab/python-gitlab/issues/1006 and the current state of https://github.com/python-gitlab/python-gitlab/blob/96d2805b5bf372cb79c2b7db5c1e499c41e477c1/gitlab/client.py#L513-L524\r\nIf proxies handle it differently maybe an additional arg for e.g. `encode_xyz=True` might help.\r\n\r\n---\r\n\r\n```\r\ngitlab/utils.py: return id.replace(\"/\", \"%2F\").replace(\"#\", \"%23\")\r\ngitlab/utils.py: return value.replace(\"/\", \"%2F\")\r\ngitlab/utils.py: new_path = parsed.path.replace(\".\", \"%2E\")\r\ngitlab/v4/objects/branches.py: id = self.get_id().replace(\"/\", \"%2F\")\r\ngitlab/v4/objects/branches.py: id = self.get_id().replace(\"/\", \"%2F\")\r\ngitlab/v4/objects/features.py: path = \"%s/%s\" % (self.path, name.replace(\"/\", \"%2F\"))\r\ngitlab/v4/objects/files.py: self.file_path = self.file_path.replace(\"/\", \"%2F\")\r\ngitlab/v4/objects/files.py: file_path = self.get_id().replace(\"/\", \"%2F\")\r\ngitlab/v4/objects/files.py: file_path = file_path.replace(\"/\", \"%2F\")\r\ngitlab/v4/objects/files.py: file_path = new_data.pop(\"file_path\").replace(\"/\", \"%2F\")\r\ngitlab/v4/objects/files.py: file_path = file_path.replace(\"/\", \"%2F\")\r\ngitlab/v4/objects/files.py: path = \"%s/%s\" % (self.path, file_path.replace(\"/\", \"%2F\"))\r\ngitlab/v4/objects/files.py: file_path = file_path.replace(\"/\", \"%2F\").replace(\".\", \"%2E\")\r\ngitlab/v4/objects/files.py: file_path = file_path.replace(\"/\", \"%2F\").replace(\".\", \"%2E\")\r\ngitlab/v4/objects/repositories.py: submodule = submodule.replace(\"/\", \"%2F\") # .replace('.', '%2E')\r\ngitlab/v4/objects/tags.py: id = self.get_id().replace(\"/\", \"%2F\")\r\n```","author":{"url":"https://github.com/nejch","@type":"Person","name":"nejch"},"datePublished":"2021-03-02T23:52:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1356/python-gitlab/issues/1356"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c2e2d3df-07aa-c7dd-1ef8-be533b63a46f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 848C:19085F:1EB044:2AF8DF:69720228 |
| html-safe-nonce | da057354890462319f11a1877c50050fbc7dc66cc4751c026d3babebc9386b25 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDhDOjE5MDg1RjoxRUIwNDQ6MkFGOERGOjY5NzIwMjI4IiwidmlzaXRvcl9pZCI6Ijc4MzEzNzEwNTkyMjYwODM4ODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | efb0bcca2530b3cbceef501ff0789e5aff7a3b943818b304dee34dfa3786fb89 |
| hovercard-subject-tag | issue:820487624 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-gitlab/python-gitlab/1356/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a9d1822b45b8a3f84f4114b2fe0a7bf3ba17871876f226ae44f2a3099886a3fc/python-gitlab/python-gitlab/issues/1356 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a9d1822b45b8a3f84f4114b2fe0a7bf3ba17871876f226ae44f2a3099886a3fc/python-gitlab/python-gitlab/issues/1356 |
| og:image:alt | See also #1336, #1080, #1079. On the other hand, need to check #1006 and the current state of python-gitlab/gitlab/client.py Lines 513 to 524 in 96d2805 # Requests assumes that `.` should not be en... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nejch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5d01a3551afdd1a0e12e78acaf3ba43a9a1f7dcb518695d6ed59db76a9290f13 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-gitlab/python-gitlab git https://github.com/python-gitlab/python-gitlab.git |
| octolytics-dimension-user_id | 28886265 |
| octolytics-dimension-user_login | python-gitlab |
| octolytics-dimension-repository_id | 8077625 |
| octolytics-dimension-repository_nwo | python-gitlab/python-gitlab |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8077625 |
| octolytics-dimension-repository_network_root_nwo | python-gitlab/python-gitlab |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 062b05dcdf64ee7a3dad7acabb746494ae0982cc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width