René's URL Explorer Experiment


Title: `Path.from_uri()` doesn't work if the URI contains host component · Issue #123599 · python/cpython · GitHub

Open Graph Title: `Path.from_uri()` doesn't work if the URI contains host component · Issue #123599 · python/cpython

X Title: `Path.from_uri()` doesn't work if the URI contains host component · Issue #123599 · python/cpython

Description: Bug report Bug description: Path.from_uri() introduced in Python 3.13 doesn't work properly if the URI contains a host component other than localhost. Following examples are run with Python 3.13 rc 1 on Linux with a machine having host n...

Open Graph Description: Bug report Bug description: Path.from_uri() introduced in Python 3.13 doesn't work properly if the URI contains a host component other than localhost. Following examples are run with Python 3.13 rc...

X Description: Bug report Bug description: Path.from_uri() introduced in Python 3.13 doesn't work properly if the URI contains a host component other than localhost. Following examples are run with Python 3.1...

Opengraph URL: https://github.com/python/cpython/issues/123599

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Path.from_uri()` doesn't work if the URI contains host component","articleBody":"# Bug report\r\n\r\n### Bug description:\r\n\r\n`Path.from_uri()` introduced in Python 3.13 doesn't work properly if the URI contains a host component other than `localhost`. Following examples are run with Python 3.13 rc 1 on Linux with a machine having host name `kone`:\r\n\r\n```python\r\n>>> print(Path().from_uri('file:///home/peke/test'))\r\n/home/peke/test\r\n>>> print(Path().from_uri('file://localhost/home/peke/test'))\r\n/home/peke/test\r\n>>> print(Path().from_uri(f'file://{socket.getfqdn()}/home/peke/test'))\r\n//kone/home/peke/test\r\n```\r\nAccording to [RFC 8089](https://datatracker.ietf.org/doc/html/rfc8089) including the host component as a fully qualified name is fine so this looks like a bug to me.\r\n\r\n### CPython versions tested on:\r\n\r\n3.13\r\n\r\n### Operating systems tested on:\r\n\r\nLinux\r\n\r\n\u003c!-- gh-linked-prs -->\r\n### Linked PRs\r\n* gh-123650\r\n* gh-126844\r\n* gh-127237\r\n* gh-127380\n* gh-132523\n* gh-132610\n\u003c!-- /gh-linked-prs -->\r\n","author":{"url":"https://github.com/pekkaklarck","@type":"Person","name":"pekkaklarck"},"datePublished":"2024-09-02T10:46:42Z","url":"https://github.com/python/cpython/issues/123599"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:515f8cbc-5849-97eb-f881-de6e6371c3f6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE1A6:CC1A4:3EA4DB9:4F9F250:6B021102
html-safe-nonce75952a7c453f53bc0adabba126156b1bb28117ccbee2a9f44e9585163083a81e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUE2OkNDMUE0OjNFQTREQjk6NEY5RjI1MDo2QjAyMTEwMiIsInZpc2l0b3JfaWQiOiIzNDE2OTQ1MTc5MjYzODk3ODU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac12d5b2b7e2392f448fd00aabf32c13001609ebf4c2add029dc15fa843d9ec70a
hovercard-subject-tagissue:2500631135
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/123599/issue_layout
twitter:imagehttps://opengraph.githubassets.com/023278232f1744dbade8045077aa2c2f55e5999e71ebd68768209546dbbe49e1/python/cpython/issues/123599
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/023278232f1744dbade8045077aa2c2f55e5999e71ebd68768209546dbbe49e1/python/cpython/issues/123599
og:image:altBug report Bug description: Path.from_uri() introduced in Python 3.13 doesn't work properly if the URI contains a host component other than localhost. Following examples are run with Python 3.13 rc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepekkaklarck
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/123599#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F123599
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F123599
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/123599
Reloadhttps://github.com/python/cpython/issues/123599
Reloadhttps://github.com/python/cpython/issues/123599
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/123599
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/123599
Path.from_uri() doesn't work if the URI contains host componenthttps://github.com/python/cpython/issues/123599#top
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
topic-pathlibhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-pathlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/pekkaklarck
pekkaklarckhttps://github.com/pekkaklarck
on Sep 2, 2024https://github.com/python/cpython/issues/123599#issue-2500631135
RFC 8089https://datatracker.ietf.org/doc/html/rfc8089
GH-123599: Reject non-local authority in pathlib.Path.from_uri() on POSIX #123650https://github.com/python/cpython/pull/123650
GH-123599: url2pathname(): handle authority section in file URL #126844https://github.com/python/cpython/pull/126844
GH-123599: Remove duplicate url2pathname() implementation #127237https://github.com/python/cpython/pull/127237
GH-123599: Deprecate duplicate pathname2url() implementation #127380https://github.com/python/cpython/pull/127380
GH-123599: Match file: URL hostname against machine hostname in urllib #132523https://github.com/python/cpython/pull/132523
GH-123599: url2pathname(): don't call gethostbyname() by default #132610https://github.com/python/cpython/pull/132610
Nexthttps://github.com/python/cpython/issues/123599?timeline_page=1
pekkaklarckhttps://github.com/pekkaklarck
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Sep 2, 2024https://github.com/python/cpython/issues/123599#event-14101501176
picnixzhttps://github.com/picnixz
topic-pathlibhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-pathlib%22
on Sep 2, 2024https://github.com/python/cpython/issues/123599#event-14101506600
https://github.com/pekkaklarck
pekkaklarckhttps://github.com/pekkaklarck
on Sep 2, 2024https://github.com/python/cpython/issues/123599#issuecomment-2324480495
urilib.parse.urlparsehttps://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlparse
https://github.com/barneygale
barneygalehttps://github.com/barneygale
on Sep 2, 2024https://github.com/python/cpython/issues/123599#issuecomment-2324740141
https://github.com/pekkaklarck
pekkaklarckhttps://github.com/pekkaklarck
on Sep 2, 2024https://github.com/python/cpython/issues/123599#issuecomment-2324773170
https://github.com/pekkaklarck
pekkaklarckhttps://github.com/pekkaklarck
on Sep 2, 2024https://github.com/python/cpython/issues/123599#issuecomment-2324802998
https://github.com/barneygale
barneygalehttps://github.com/barneygale
on Sep 2, 2024https://github.com/python/cpython/issues/123599#issuecomment-2324907703
refhttps://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13
https://github.com/pekkaklarck
pekkaklarckhttps://github.com/pekkaklarck
on Sep 2, 2024https://github.com/python/cpython/issues/123599#issuecomment-2325040918
barneygalehttps://github.com/barneygale
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
on Sep 3, 2024https://github.com/python/cpython/issues/123599#event-14119377558
barneygalehttps://github.com/barneygale
on Sep 3, 2024https://github.com/python/cpython/issues/123599#event-14119553905
pythonGH-123599: Reject non-local authority in `pathlib.Path.from_uri…https://github.com/barneygale/cpython/commit/0cee0c4d94fe1b3fc86041416cd60170212ed108
pythonGH-123599https://github.com/python/cpython/issues/123599
0cee0c4https://github.com/barneygale/cpython/commit/0cee0c4d94fe1b3fc86041416cd60170212ed108
barneygalehttps://github.com/barneygale
on Oct 20, 2024https://github.com/python/cpython/issues/123599#event-14743359526
Merge branch 'main' into pythongh-123599-reject-non-localhttps://github.com/barneygale/cpython/commit/ac43afd72b02ebec07add5174531ccf739b9eae0
pythongh-123599https://github.com/python/cpython/issues/123599
ac43afdhttps://github.com/barneygale/cpython/commit/ac43afd72b02ebec07add5174531ccf739b9eae0
https://github.com/barneygale
barneygalehttps://github.com/barneygale
on Oct 21, 2024https://github.com/python/cpython/issues/123599#issuecomment-2426998351
barneygalehttps://github.com/barneygale
on Nov 24, 2024https://github.com/python/cpython/issues/123599#event-15411289598
pythonGH-123599: Remove duplicate `url2pathname()` implementationhttps://github.com/barneygale/cpython/commit/4c46ba3c3308ba1a6bc8092f7fac3d5318f75268
pythonGH-123599https://github.com/python/cpython/issues/123599
4c46ba3https://github.com/barneygale/cpython/commit/4c46ba3c3308ba1a6bc8092f7fac3d5318f75268
pythonGH-123599: Deprecate duplicate `pathname2url()` implementationhttps://github.com/barneygale/cpython/commit/e17fc75225e172507bb21eb9420400f27a067509
pythonGH-123599https://github.com/python/cpython/issues/123599
e17fc75https://github.com/barneygale/cpython/commit/e17fc75225e172507bb21eb9420400f27a067509
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Apr 14, 2025https://github.com/python/cpython/issues/123599#issuecomment-2800548520
barneygalehttps://github.com/barneygale
on Apr 14, 2025https://github.com/python/cpython/issues/123599#event-17252888016
pythonGH-123599: Match `file:` URL hostname against machine hostname …https://github.com/barneygale/cpython/commit/fc78d00e916b0f4e9c9d5efeb78d00bff97320af
pythonGH-123599https://github.com/python/cpython/issues/123599
fc78d00https://github.com/barneygale/cpython/commit/fc78d00e916b0f4e9c9d5efeb78d00bff97320af
GH-123599: Match `file:` URL hostname against machine hostname in url…https://github.com/python/cpython/commit/0879ebc953fa7372a4d99f3f79889093f04cac67
GH-123599https://github.com/python/cpython/issues/123599
0879ebchttps://github.com/python/cpython/commit/0879ebc953fa7372a4d99f3f79889093f04cac67
barneygalehttps://github.com/barneygale
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 15, 2025https://github.com/python/cpython/issues/123599#event-17277872097
https://github.com/barneygale
barneygalehttps://github.com/barneygale
on Apr 15, 2025https://github.com/python/cpython/issues/123599#issuecomment-2807688444
#132523https://github.com/python/cpython/pull/132523
https://github.com/barneygale
barneygalehttps://github.com/barneygale
on Apr 16, 2025https://github.com/python/cpython/issues/123599#issuecomment-2810300207
#126844https://github.com/python/cpython/pull/126844
barneygalehttps://github.com/barneygale
on Apr 16, 2025https://github.com/python/cpython/issues/123599#event-17293503516
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Apr 16, 2025https://github.com/python/cpython/issues/123599#issuecomment-2810397231
barneygalehttps://github.com/barneygale
on Apr 16, 2025https://github.com/python/cpython/issues/123599#event-17294529899
pythonGH-123599: `url2pathname()`: don't call `gethostbyname()` by de…https://github.com/barneygale/cpython/commit/0c06cfd2d669288af15882a96826c0f135a77347
pythonGH-123599https://github.com/python/cpython/issues/123599
0c06cfdhttps://github.com/barneygale/cpython/commit/0c06cfd2d669288af15882a96826c0f135a77347
pythonGH-123599: `url2pathname()`: don't call `gethostbyname()` by de…https://github.com/barneygale/cpython/commit/0630a2dfaa97591b11b897863824fa111c5ff172
pythonGH-123599https://github.com/python/cpython/issues/123599
0630a2dhttps://github.com/barneygale/cpython/commit/0630a2dfaa97591b11b897863824fa111c5ff172
https://github.com/zooba
zoobahttps://github.com/zooba
on Apr 16, 2025https://github.com/python/cpython/issues/123599#issuecomment-2810855724
barneygalehttps://github.com/barneygale
on May 5, 2025https://github.com/python/cpython/issues/123599#event-17522696302
Merge branch 'main' into pythongh-123599-resolve-netlochttps://github.com/barneygale/cpython/commit/e94ad6ae420a65208d6a49543a4307a7a2c1d3d7
pythongh-123599https://github.com/python/cpython/issues/123599
e94ad6ahttps://github.com/barneygale/cpython/commit/e94ad6ae420a65208d6a49543a4307a7a2c1d3d7
GH-123599: `url2pathname()`: don't call `gethostbyname()` by default (#…https://github.com/python/cpython/commit/8e08ac9f32d89bf387c75bb6d0710a7b59026b5b
GH-123599https://github.com/python/cpython/issues/123599
#…https://github.com/python/cpython/pull/132610
8e08ac9https://github.com/python/cpython/commit/8e08ac9f32d89bf387c75bb6d0710a7b59026b5b
barneygalehttps://github.com/barneygale
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 5, 2025https://github.com/python/cpython/issues/123599#event-17523764628
Pranjal095https://github.com/Pranjal095
on Jul 12, 2025https://github.com/python/cpython/issues/123599#event-18600169067
pythonGH-123599: `url2pathname()`: don't call `gethostbyname()` by de…https://github.com/Pranjal095/cpython/commit/4c979f4dc7899aadb01b36a1e2b3a9da926c37a9
pythonGH-123599https://github.com/python/cpython/issues/123599
4c979f4https://github.com/Pranjal095/cpython/commit/4c979f4dc7899aadb01b36a1e2b3a9da926c37a9
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/123599
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/123599
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
topic-pathlibhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-pathlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.