You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
urllib.request.url2pathname() mishandles a UNC URI variant #127078
On Windows, urllib.request.url2pathname() mishandles an uncommon file URI variant encoding a UNC path. Specifically, a URI with five leading slashes should be converted to a UNC path with two leading slashes, but url2pathname() returns a path with three leading slashes. Such URIs are created by software that simply prepends file:/// to a Windows path. See RFC 8089 E.3.2, final example.
Activity
barneygale commentedon Nov 20, 2024
I think we should wait for #126367 to be fixed before tackling this bug
barneygale commentedon Nov 22, 2024
On second thought, it's better to solve this issue first to avoid backport conflicts.
pythonGH-127078: `url2pathname()`: handle extra slash before UNC driv…
GH-127078: `url2pathname()`: handle extra slash before UNC drive in U…
pythonGH-127078: `url2pathname()`: handle extra slash before UNC driv…
pythonGH-127078: `url2pathname()`: handle extra slash before UNC driv…
[3.13] GH-127078: `url2pathname()`: handle extra slash before UNC dri…
[3.12] GH-127078: `url2pathname()`: handle extra slash before UNC dri…
pythonGH-127078: `url2pathname()`: handle extra slash before UNC driv…