Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
gh-67693: Fix urlunparse() and urlunsplit() for URIs with path starting with multiple slashes and no authority#113563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
It fixes also more serious security issue#67693. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The code changes and tests look good to me.
Uh oh!
There was an error while loading.Please reload this page.
('//path/to/file', | ||
('', 'path', '/to/file', '', '', ''), | ||
('', 'path', '/to/file', '', '')), | ||
('////path/to/file', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This case was broken.
('scheme://path/to/file', | ||
('scheme', 'path', '/to/file', '', '', ''), | ||
('scheme', 'path', '/to/file', '', '')), | ||
('scheme:////path/to/file', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This case was broken.
('file:///tmp/junk.txt', | ||
('file', '', '/tmp/junk.txt', '', '', ''), | ||
('file', '', '/tmp/junk.txt', '', '')), | ||
('file:////tmp/junk.txt', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This case was broken.
('file:////tmp/junk.txt', | ||
('file', '', '//tmp/junk.txt', '', '', ''), | ||
('file', '', '//tmp/junk.txt', '', '')), | ||
('file://///tmp/junk.txt', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This case was broken.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM!
Thanks@serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9, 3.10, 3.11, 3.12, 3.13. |
GH-119025 is a backport of this pull request to the3.11 branch. |
GH-119026 is a backport of this pull request to the3.10 branch. |
…h path starting with multiple slashes and no authority (pythonGH-113563)(cherry picked from commite237b25)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-119027 is a backport of this pull request to the3.9 branch. |
… path starting with multiple slashes and no authority (pythonGH-113563)(cherry picked from commite237b25)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-119028 is a backport of this pull request to the3.8 branch. |
…h path starting with multiple slashes and no authority (pythonGH-113563)(cherry picked from commite237b25)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
There was a behavioural change to `urllib.parse.urlunparse`[1] thataffects some of our tests on Windows. With the understanding that thenew behaviour is indeed desired, split up some tests relying on thisbehaviour depending on the version of Python.This currently affects only 3.12 and 3.13 but there are other backportsfor that change in review upstream, so we'll likely need to update thisin the future.[1]python/cpython#113563
There was a behavioural change to `urllib.parse.urlunparse`[1] thataffects some of our tests on Windows. With the understanding that thenew behaviour is indeed desired, split up some tests relying on thisbehaviour depending on the version of Python.This currently affects only 3.12 and 3.13 but there are other backportsfor that change in review upstream, so we'll likely need to update thisin the future.[1]python/cpython#113563
There was a behavioural change to `urllib.parse.urlunparse`[1] thataffects some of our tests on Windows. With the understanding that thenew behaviour is indeed desired, split up some tests relying on thisbehaviour depending on the version of Python.This currently affects only 3.12 and 3.13 but there are other backportsfor that change in review upstream, so we'll likely need to update thisin the future.[1]python/cpython#113563
There was a behavioural change to `urllib.parse.urlunparse`[1] thataffects some of our tests on Windows. With the understanding that thenew behaviour is indeed desired, split up some tests relying on thisbehaviour depending on the version of Python.This currently affects only 3.12 and 3.13 but there are other backportsfor that change in review upstream, so we'll likely need to update thisin the future.[1]python/cpython#113563
There was a behavioural change to `urllib.parse.urlunparse`[1] thataffects some of our tests on Windows. With the understanding that thenew behaviour is indeed desired, split up some tests relying on thisbehaviour depending on the version of Python.The sample URL used to check this behaviour was taken from a test in theupstream change (with the new behaviour this URL will round-tripparsing)[1]python/cpython#113563
There was a behavioural change to `urllib.parse.urlunparse`[1] thataffects some of our tests on Windows. With the understanding that thenew behaviour is indeed desired, split up some tests relying on thisbehaviour depending on the version of Python.The sample URL used to check this behaviour was taken from a test in theupstream change (with the new behaviour this URL will round-tripparsing)[1]python/cpython#113563
…starting with multiple slashes and no authority (pythonGH-113563)
Uh oh!
There was an error while loading.Please reload this page.
Based on#15297.
Co-authored-by: Ashwin Ramaswamiaramaswamis@gmail.com