[issue21103] Encoding str to IDNA with ellipsis decomposes to empty labels
Martin v. Löwis
report at bugs.python.org
Sun Mar 30 21:53:33 CEST 2014
Martin v. Löwis added the comment:
I believe this behavior is correct wrt. RFC 3490. In the input, the last label is "c…", which is not empty. It is passed to ToASCII, which normalizes the ellipsis to "...". If UseSTD3ASCIIRules was true, conversion would fail as it yields "." (\x2E). However, Python choses not to set UseSTD3ASCIIRules (and instead leaves it to the DNS server to decide whether the name is valid).
I believe this is actually a bug in the RFC, which should ban "." from the the set of conversion results regardless of UseSTD3ASCIIRules. However, since this RFC is superseded, you probably won't get anybody to confirm this view.
----------
nosy: +loewis
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21103>
_______________________________________
More information about the Python-bugs-list
mailing list