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

2019-08-14 Thread Sanyam Khurana


Sanyam Khurana  added the comment:

Duplicate of Issue 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!

--
nosy: +CuriousLearner
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-08-14 Thread Fatih Sarhan


New submission from Fatih Sarhan :

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')
```

--
components: Library (Lib)
messages: 349721
nosy: f9n
priority: normal
severity: normal
status: open
title: [urllib.parse.urlparse] It does not correctly parse the URL with basic 
authentication.
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com