Skip to content
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

[urllib.parse.urlparse] It does not correctly parse the URL with basic authentication. #82034

Closed
f9n mannequin opened this issue Aug 14, 2019 · 2 comments
Closed

[urllib.parse.urlparse] It does not correctly parse the URL with basic authentication. #82034

f9n mannequin opened this issue Aug 14, 2019 · 2 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@f9n
Copy link
Mannequin

f9n mannequin commented Aug 14, 2019

BPO 37853
Nosy @CuriousLearner, @f9n

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2019-08-14.18:00:17.988>
created_at = <Date 2019-08-14.17:37:25.294>
labels = ['3.7', '3.8', 'type-bug', 'library', '3.9']
title = '[urllib.parse.urlparse] It does not correctly parse the URL with basic authentication.'
updated_at = <Date 2019-08-14.18:00:17.986>
user = 'https://github.com/f9n'

bugs.python.org fields:

activity = <Date 2019-08-14.18:00:17.986>
actor = 'CuriousLearner'
assignee = 'none'
closed = True
closed_date = <Date 2019-08-14.18:00:17.988>
closer = 'CuriousLearner'
components = ['Library (Lib)']
creation = <Date 2019-08-14.17:37:25.294>
creator = 'f9n'
dependencies = []
files = []
hgrepos = []
issue_num = 37853
keywords = []
message_count = 2.0
messages = ['349721', '349729']
nosy_count = 2.0
nosy_names = ['CuriousLearner', 'f9n']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue37853'
versions = ['Python 3.5', 'Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9']

@f9n
Copy link
Mannequin Author

f9n mannequin commented Aug 14, 2019

No problem for these:
"http://localhost:9100"
"http://user:password@localhost:9100"

But, these are problematic:
"http://use#r:password@localhost:9100"
"http://user:pass#word@localhost:9100"

from urllib.parse import urlparse

url = "http://us#er:123@localhost:9001/RPC2"
u = urlparse(url)
print(u)
# ParseResult(scheme='http', netloc='us', path='', params='', query='', fragment='er:123@localhost:9001/RPC2')

@f9n f9n mannequin added 3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Aug 14, 2019
@CuriousLearner
Copy link
Member

Duplicate of bpo-37854

Fatih,

Thank you for your report. I'm marking this one as a duplicate of another. Request you to not create multiple issues at once for the same thing.

Thank you!

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant