Title: Resolution result is not consistent with RFC 3986 when the base has "rootless" path without authority · Issue #84 · python-hyper/rfc3986 · GitHub
Open Graph Title: Resolution result is not consistent with RFC 3986 when the base has "rootless" path without authority · Issue #84 · python-hyper/rfc3986
X Title: Resolution result is not consistent with RFC 3986 when the base has "rootless" path without authority · Issue #84 · python-hyper/rfc3986
Description: remove_dot_segments defined in RFC 3986 (section 5.2.4) sometimes add a leading slash when the base path is "rootless". STEP OUTPUT BUFFER INPUT BUFFER 1 : foo/../baz 2E: foo /../baz 2C: /baz 2E: /baz So, resolving ../baz against scheme:...
Open Graph Description: remove_dot_segments defined in RFC 3986 (section 5.2.4) sometimes add a leading slash when the base path is "rootless". STEP OUTPUT BUFFER INPUT BUFFER 1 : foo/../baz 2E: foo /../baz 2C: /baz 2E: /...
X Description: remove_dot_segments defined in RFC 3986 (section 5.2.4) sometimes add a leading slash when the base path is "rootless". STEP OUTPUT BUFFER INPUT BUFFER 1 : foo/../baz 2E: foo /../baz 2C: ...
Opengraph URL: https://github.com/python-hyper/rfc3986/issues/84
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Resolution result is not consistent with RFC 3986 when the base has \"rootless\" path without authority","articleBody":"`remove_dot_segments` defined in RFC 3986 ([section 5.2.4](https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.4)) sometimes add a leading slash when the base path is \"rootless\".\r\n\r\n```\r\nSTEP OUTPUT BUFFER INPUT BUFFER\r\n\r\n 1 : foo/../baz\r\n 2E: foo /../baz\r\n 2C: /baz\r\n 2E: /baz\r\n```\r\n\r\nSo, resolving `../baz` against `scheme:foo/bar` should result in `scheme:/baz`.\r\nHowever, output of this library differs from that.\r\n\r\n```\r\n$ python\r\nPython 3.9.9 (main, Jan 10 2022, 18:52:39)\r\n[GCC 11.2.1 20211127] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> from rfc3986 import uri_reference\r\n>>> b = uri_reference('scheme:foo/bar')\r\n>>> r = uri_reference('../baz')\r\n>>> t = r.resolve_with(b)\r\n>>> t\r\nURIReference(scheme='scheme', authority=None, path='baz', query=None, fragment=None)\r\n>>> t.unsplit()\r\n'scheme:baz'\r\n>>>\r\n```\r\n\r\nI think there should be special handling such as \"when `..` segment appears but `output` stack is empty, set `prepend_slash` flag\" or something like that.","author":{"url":"https://github.com/lo48576","@type":"Person","name":"lo48576"},"datePublished":"2022-01-10T12:00:12Z","url":"https://github.com/python-hyper/rfc3986/issues/84"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:e2871143-4421-6b8c-078b-405913161010 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7E4:552A0:453CC3:5A91A7:6B025BFF |
| html-safe-nonce | 2f4feda716f3144ba118b08e0218ebc5080abbfba79096e244a5a3d3944d9e29 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0U0OjU1MkEwOjQ1M0NDMzo1QTkxQTc6NkIwMjVCRkYiLCJ2aXNpdG9yX2lkIjoiNjQ0MjI2NDE3NDg0NzQ4Mjg3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cd865066197d8c08cac31f485ecb64f4fc2bf77a38fa75cd76d09b04f81277d7 |
| hovercard-subject-tag | issue:1097812451 |
| 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-hyper/rfc3986/84/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b6b85154244438381fd03e571f99c2e68d6f53c58c9db68754a9079c5f7ab5c/python-hyper/rfc3986/issues/84 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b6b85154244438381fd03e571f99c2e68d6f53c58c9db68754a9079c5f7ab5c/python-hyper/rfc3986/issues/84 |
| og:image:alt | remove_dot_segments defined in RFC 3986 (section 5.2.4) sometimes add a leading slash when the base path is "rootless". STEP OUTPUT BUFFER INPUT BUFFER 1 : foo/../baz 2E: foo /../baz 2C: /baz 2E: /... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lo48576 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-hyper/rfc3986 git https://github.com/python-hyper/rfc3986.git |
| octolytics-dimension-user_id | 13035907 |
| octolytics-dimension-user_login | python-hyper |
| octolytics-dimension-repository_id | 21205959 |
| octolytics-dimension-repository_nwo | python-hyper/rfc3986 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21205959 |
| octolytics-dimension-repository_network_root_nwo | python-hyper/rfc3986 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width