Title: project.wikis.create with subpages results in 404 Wiki Page Not Found · Issue #1079 · python-gitlab/python-gitlab · GitHub
Open Graph Title: project.wikis.create with subpages results in 404 Wiki Page Not Found · Issue #1079 · python-gitlab/python-gitlab
X Title: project.wikis.create with subpages results in 404 Wiki Page Not Found · Issue #1079 · python-gitlab/python-gitlab
Description: Description of the problem, including code/CLI snippet page = project.wikis.create({'title': "title/subtitle", 'content': "test content"}) does create a wiki subtitle in the directory title well. If I try to edit this page with: page.con...
Open Graph Description: Description of the problem, including code/CLI snippet page = project.wikis.create({'title': "title/subtitle", 'content': "test content"}) does create a wiki subtitle in the directory title well. I...
X Description: Description of the problem, including code/CLI snippet page = project.wikis.create({'title': "title/subtitle", 'content': "test content"}) does create a wiki sub...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/1079
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"project.wikis.create with subpages results in 404 Wiki Page Not Found","articleBody":"## Description of the problem, including code/CLI snippet\r\npage = project.wikis.create({'title': \"title/subtitle\", 'content': \"test content\"}) \r\ndoes create a wiki subtitle in the directory title well. \r\nIf I try to edit this page with: \r\npage.content = \"update content\"\r\npage.title = \"subtitle\" # Attention: during update the page we have to set the title without the directory name\r\npage.save() \r\nI get gitlab.exceptions.GitlabUpdateError: 404: 404 Wiki Page Not Found \r\n\r\nI can reproduce this by using curl: \r\n\r\n`curl --request PUT --data \"content=update content\" --header \"PRIVATE-TOKEN: XXX\" https://gitlab.kernelport.com/api/v4/projects/231/wikis/title/subtitle `\r\n\r\nBut when I encode the slug URL it does work with curl. \r\n\r\n`curl --request PUT --data \"content=update content\" --header \"PRIVATE-TOKEN: XXX\" https://gitlab.kernelport.com/api/v4/projects/231/wikis/title%2Fsubtitle`\r\n\r\nHow can I handle this URL Encoding for slug in python-gitlab correct?\r\n\r\n## Expected Behavior\r\n\r\n\r\n## Actual Behavior\r\n\r\n\r\n## Specifications\r\n\r\n - python-gitlab version: 2.0.1\r\n - API version you are using (v3/v4): V4\r\n - Gitlab server version (or gitlab.com): '12.8.1', 'd18b43a5f5a'\r\n","author":{"url":"https://github.com/kernelport","@type":"Person","name":"kernelport"},"datePublished":"2020-04-22T11:09:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1079/python-gitlab/issues/1079"}
| 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:e619ec80-adc5-b3c0-df2e-27ddc46c9853 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1A2:2D454F:3618694:48C4149:6971EAFE |
| html-safe-nonce | 6dbf56c0a28dcfd45935d46429da5e09438904346de0d3bbf122825727f2f15b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUEyOjJENDU0RjozNjE4Njk0OjQ4QzQxNDk6Njk3MUVBRkUiLCJ2aXNpdG9yX2lkIjoiNDQxMTI1NDE0Mjg5ODY2MjE0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 26132029071050e82c68948bb7cb1210b8fdd306dda5795c68bd49fb257331ea |
| hovercard-subject-tag | issue:604668906 |
| 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/1079/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d11a7d3793a4ceb8ff48d2823f9103f5efc1850be6312b2890b1b34d00595032/python-gitlab/python-gitlab/issues/1079 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d11a7d3793a4ceb8ff48d2823f9103f5efc1850be6312b2890b1b34d00595032/python-gitlab/python-gitlab/issues/1079 |
| og:image:alt | Description of the problem, including code/CLI snippet page = project.wikis.create({'title': "title/subtitle", 'content': "test content"}) does create a wiki subtitle in the directory title well. I... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kernelport |
| hostname | github.com |
| expected-hostname | github.com |
| None | 683712716975b3393656edf09255a1d488d0e68ab7b9ac97e40ecf40036f696c |
| 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 | ed99da4e2de688dd1056894c1eccd4c82c6bbbfe |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width