[issue34360] urllib.parse doesn't fully comply to RFC 3986

Ivan Pozdeev report at bugs.python.org
Fri Aug 10 05:28:00 EDT 2018


Ivan Pozdeev <ivan_pozdeev at mail.ru> added the comment:

I confirm violation of https://tools.ietf.org/html/rfc3986#section-3.2.2 . 

URLs are now covered by RFC 3986 which obsoletes RFC 1808 that `urllib's documentation refers to.

This new URL RFC adds [] to 'reserved' characters, so them being present unquoted anywhere where reserved characters are not allowed shall be a parsing error.

----------
nosy: +Ivan.Pozdeev
title: urllib.parse doesn't fail with multiple unmatching square brackets -> urllib.parse doesn't fully comply to RFC 3986
versions: +Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34360>
_______________________________________


More information about the Python-bugs-list mailing list