Title: Bug with encoded characters in a URL · Issue #485 · python-openapi/openapi-core · GitHub
Open Graph Title: Bug with encoded characters in a URL · Issue #485 · python-openapi/openapi-core
X Title: Bug with encoded characters in a URL · Issue #485 · python-openapi/openapi-core
Description: I have a test copied below that fiales with dealing with URL "fragments", or encoded characters in a URL. However in https://github.com/p1c2u/openapi-core/blob/c24f046957fb1dc822cdb6dac0ca7fa3439723e1/openapi_core/contrib/requests/reques...
Open Graph Description: I have a test copied below that fiales with dealing with URL "fragments", or encoded characters in a URL. However in https://github.com/p1c2u/openapi-core/blob/c24f046957fb1dc822cdb6dac0ca7fa343972...
X Description: I have a test copied below that fiales with dealing with URL "fragments", or encoded characters in a URL. However in https://github.com/p1c2u/openapi-core/blob/c24f046957fb1dc822cdb6dac0c...
Opengraph URL: https://github.com/python-openapi/openapi-core/issues/485
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug with encoded characters in a URL","articleBody":"I have a test copied below that fiales with dealing with URL \"fragments\", or encoded characters in a URL. However in https://github.com/p1c2u/openapi-core/blob/c24f046957fb1dc822cdb6dac0ca7fa3439723e1/openapi_core/contrib/requests/requests.py#L54\r\n\r\nThe library itself yields only the path, and not the path AND the resulting fragment from the urlparse result in \r\nhttps://github.com/p1c2u/openapi-core/blob/c24f046957fb1dc822cdb6dac0ca7fa3439723e1/openapi_core/contrib/requests/requests.py#L32\r\n\r\n.yml file\r\n`EncodedPathVal:`\r\n` in: path`\r\n` name: encoded_path_val`\r\n` required: true`\r\n` schema:`\r\n` type: string`\r\n` pattern: \"^#[0-9a-zA-Z][0-9a-zA-Z_.]+$\"`\r\n\r\nTest case \r\n`import urllib.parse`\r\n`import pytest`\r\n`TEST_EVENT_ENCODED = {`\r\n` **TEST_EVENT,`\r\n` \"path\": urllib.parse.quote(\"/encoded/#test_encoded\"),`\r\n`}`\r\n","author":{"url":"https://github.com/kmhoover","@type":"Person","name":"kmhoover"},"datePublished":"2023-01-24T17:11:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/485/openapi-core/issues/485"}
| 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:bd076246-4281-1ef6-c629-965c8870454d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C364:11EDE:1486A1:1D6FA1:697883E0 |
| html-safe-nonce | 0e6e54da85a4f1275180d575fe1e3bf9e918d7353dd65d64ba46fcfcd31133b6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzY0OjExRURFOjE0ODZBMToxRDZGQTE6Njk3ODgzRTAiLCJ2aXNpdG9yX2lkIjoiNDY1NjA3OTU4Mzg1MjM5NzUzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ca97901d652c818f56918041f04be730f6f262bad62a876eb11fcfbf29aea13c |
| hovercard-subject-tag | issue:1555355087 |
| 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-openapi/openapi-core/485/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6c3e50af3d26f0ab1a899b6c11a1ef1728ad4021358d5c6aceed18be85b413a0/python-openapi/openapi-core/issues/485 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c3e50af3d26f0ab1a899b6c11a1ef1728ad4021358d5c6aceed18be85b413a0/python-openapi/openapi-core/issues/485 |
| og:image:alt | I have a test copied below that fiales with dealing with URL "fragments", or encoded characters in a URL. However in https://github.com/p1c2u/openapi-core/blob/c24f046957fb1dc822cdb6dac0ca7fa343972... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kmhoover |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-openapi/openapi-core git https://github.com/python-openapi/openapi-core.git |
| octolytics-dimension-user_id | 126442889 |
| octolytics-dimension-user_login | python-openapi |
| octolytics-dimension-repository_id | 104200746 |
| octolytics-dimension-repository_nwo | python-openapi/openapi-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 104200746 |
| octolytics-dimension-repository_network_root_nwo | python-openapi/openapi-core |
| 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 | 520b65a872113b919c1bbdb03834a50af15859fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width