Hi all, I just discovered Django and i'm using GenericIPAddressField in my fisrt app. I currently use Django 1.6.11 and i'm facing a problem with ipv6 validator.
I ran the following test case: *********** from django.utils.ipv6 import is_valid_ipv6_address def check_ipv6_validator(ipv6): print '%s - length: %s - is_valid_ipv6_address: %s' % (ipv6, len(ipv6), is_valid_ipv6_address(ipv6), ) def test_ipv6_validator(): unvalid_ipv6 = "aaaa:bbbb:cccc:dddd:eeee:ffff:aaaa:255.255.255.255" valid_ipv6 = "aaaa:bbbb:cccc:dddd:eeee:ffff:255.255.255.255" check_ipv6_validator(unvalid_ipv6) check_ipv6_validator(valid_ipv6) test_ipv6_validator() *********** which returns : aaaa:bbbb:cccc:dddd:eeee:ffff:aaaa:255.255.255.255 - length: 50 - is_valid_ipv6_address: True aaaa:bbbb:cccc:dddd:eeee:ffff:255.255.255.255 - length: 45 - is_valid_ipv6_address: True There are two problems here : The 1st ipv6 is said valid whereas it's not... ( https://tools.ietf.org/html/rfc4291#section-2.2) The 2nd ipv6 is correctly said valid but its length is 45 while GenericIPAddressField max length is 39. I checked in the git master repository and django.utils.ipv6 doesn't seem to have changed on this matter. Thus the problem is propbably still there. Are these bugs that should be reported ? (incorrect max length and incorrect ipv6 validation ) Regards -- Christophe Collet -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2c633085-0eb2-49b2-92e6-ff8d6ef27516%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.