On 9 March 2012 21:10, Tom Evans <tevans...@googlemail.com> wrote: > 2012/3/9 Łukasz Rekucki <lreku...@gmail.com>: >> On 9 March 2012 17:46, Tom Evans <tevans...@googlemail.com> wrote: >>> >>> Lets look at one isolated aspect. The User email field in d.c.auth is >>> too short. Emails can be up to 248 characters long, and d.c.auth only >>> allows 75. >> >> The latest RFC[1] actually specifies this as 256 *octets* with max of >> 64 octets for the local part and 255 octets for the domain name. So >> 248 *characters* would actually be incorrect and all the tedious and >> error prone fixing of every Django instance would just get wasted. >> > > Sorry, 248 was a typo. If you look at my earlier reply in this thread, > I had correctly stated the maximum length of an email address as 254 > *characters*. > > If you check two paragraphs later in the RFC that you linked to, you > would see confirmation of this: > > http://tools.ietf.org/html/rfc5321#section-4.5.3.1.3 > > You may also need to remind yourself what the definition of a path is.
And RFC 3696 originally claimed it's 320. Even after errata it still says 256, but you are right that 254 is probably more correct. > > As all email headers are either 7 or 8 bit encodings, describing 254 > octets as 254 characters is perfectly valid. UTF-8 is an 8-bit encoding that doesn't map octets to characters, so no. But that's not really the point I wanted to make. My point is that this kind of things change and we should have tools to deal with that. We already have the exact same problem with IPv6 and contrib.comments, it's just people didn't noticed it yet as much. Doing this by hand every time isn't very effective. Django needs schema migrations. As for the "design page" that Joe mentioned, the GSOC description is a good start: https://code.djangoproject.com/wiki/SummerOfCode2012#Enhancedauth.user -- Łukasz Rekucki -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.