-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTSPS scheme support in urllib.parse #104554
Comments
All 3 are premanent schemes; RTSPS is RTSP over TLS, while RTSPU is same over unreliable datagram. Can you make a PR? |
Sorry, but I did not get you. Who you're asking about a PR? Me or @orsenthil ? |
@zentarim thanks for the report. You could submit PR, if you prefer. I guess, my mention was a cc. |
zentarim, I actually meant you. I was not sure if Senthil was currently available. I should have been clearer. Senthil, since you are available, do you agree that this should be added? Do the suggested additions look right? (I would assume that RTSPS should appear wherever RTSPU does.) New feature or bugfix? |
RTSPS is the permanent scheme defined in https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml alongside RTSP and RTSPU schemes.
RTSPS is the permanent scheme defined in https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml alongside RTSP and RTSPU schemes.
RTSPS is the permanent scheme defined in https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml alongside RTSP and RTSPU schemes.
RTSPS is the permanent scheme defined in https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml alongside RTSP and RTSPU schemes.
@terryjreedy - yes. I agree. In previous additions similar to this, we considered this a feature and didn't backport it. I think, it is safer to consider it as feature as changes the behavior. Although, someone who really needed rtsps protocol parsing without this change, I assume, would have patched the module locally in their code and worked around it. |
This looks right to me. Thinking as bug-fix seems alright here. |
* GH-104554: Add RTSPS support to `urllib/parse.py` RTSPS is the permanent scheme defined in https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml alongside RTSP and RTSPU schemes. * 📜🤖 Added by blurb_it. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
) * pythonGH-104554: Add RTSPS support to `urllib/parse.py` RTSPS is the permanent scheme defined in https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml alongside RTSP and RTSPU schemes. * 📜🤖 Added by blurb_it. --------- (cherry picked from commit f3266c0) Co-authored-by: zentarim <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
) * pythonGH-104554: Add RTSPS support to `urllib/parse.py` RTSPS is the permanent scheme defined in https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml alongside RTSP and RTSPU schemes. * 📜🤖 Added by blurb_it. --------- (cherry picked from commit f3266c0) Co-authored-by: zentarim <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
…105759) RTSPS is the permanent scheme defined in https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml alongside RTSP and RTSPU schemes. (cherry picked from commit f3266c0) Co-authored-by: zentarim <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
…105760) RTSPS is the permanent scheme defined in https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml alongside RTSP and RTSPU schemes. --------- (cherry picked from commit f3266c0) Co-authored-by: zentarim <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Looks like this was implemented, thanks all! |
In accordance with
https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml
There are three valid RTSP schemes:
But in
urllib/parse.py
only two of them are defined:What make impossible to use functions like
urllib.parse.urljoin()
uponrtsps://*
URLs:Expected result is:
I was able to get the expected behavior by patching
urllib/parsing.py
:The issue presents in Python versions:
Linked PRs
urllib/parse.py
#104605urllib/parse.py
(GH-104605) #105759urllib/parse.py
(GH-104605) #105760The text was updated successfully, but these errors were encountered: