[issue33342] urllib IPv6 parsing fails with special characters in passwords

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: I modified my PR 16780 to also fix this issue, my PR was written for bpo-36338. -- ___ Python tracker ___

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2019-10-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2019-01-24 Thread Terrence Brannon
Terrence Brannon added the comment: Also note, if SQLAlchemy gives any guidance, then note that SA unquotes both the username and password of the URL: https://github.com/sqlalchemy/sqlalchemy/blob/master/lib/sqlalchemy/engine/url.py#L274 -- ___

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2019-01-24 Thread Terrence Brannon
Terrence Brannon added the comment: Regarding "RFC 2396 explicitly excludes the use of [ and ] in URLs. RFC 2732 defines the syntax for IPv6 URLs, and allows [ and ] ONLY in the host part. So I'd say that the behaviour is arguably correct (if somewhat

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2019-01-23 Thread Terrence Brannon
Terrence Brannon added the comment: I would like to add to this bug - the password field on the URL cannot contain a pound sign or question mark or the parser incorrectly parses the URL, as this gist demonstrates - https://gist.github.com/metaperl/fc6f43bf6b9a9f874b8f27e29695e68c

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2018-10-06 Thread Thomas Jollans
Thomas Jollans added the comment: RFC 2396 explicitly excludes the use of [ and ] in URLs. RFC 2732 defines the syntax for IPv6 URLs, and allows [ and ] ONLY in the host part. So I'd say that the behaviour is arguably correct (if somewhat unfortunate)

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2018-05-19 Thread Martin Panter
Martin Panter added the comment: I presume this is about parsing a URL like >>> urlsplit("//user:[@host") Traceback (most recent call last): File "", line 1, in File "/home/proj/python/cpython/Lib/urllib/parse.py", line 431, in urlsplit raise ValueError("Invalid

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2018-04-23 Thread benaryorg
Change by benaryorg : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2018-04-23 Thread benaryorg
New submission from benaryorg : The documentation specifies to follow RFC 2396 (https://tools.ietf.org/html/rfc2396.html) but fails to parse a user:password@host url in urllib.parse.urlsplit (https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlsplit) when