Code

Opened 7 years ago

Closed 7 years ago

#3603 closed (wontfix)

Email validation error on ip literal mail routes

Reported by: Richard Smith <richard@…> Owned by: adrian
Component: Forms Version: 0.95
Severity: Keywords: ip literal email validator
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Django doesn't validate IP literal email addresses.

May be a pointless patch, but then again, someone may find it useful.

Attachments (1)

emailpatch.patch (910 bytes) - added by Richard Smith <richard@…> 7 years ago.
Email patch

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by Richard Smith <richard@…>

Email patch

comment:1 Changed 7 years ago by ubernostrum

  • Component changed from Core framework to django.newforms
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

I think before we go down this route we need to determine just how much of the insanely-complex RFC822 address spec we want to support; it's definitely a diminishing-returns problem...

Also, if this is to be dealt with it needs to be dealt with in newforms, so I'm going to change the component.

comment:2 Changed 7 years ago by Richard Smith <richard@…>

Erm? Come again?

No offence, but email is KINDA core to alot of applications these days. I've not submitted and tested this patch because I thought it might be nice. It is a bug. Django does not support RFC2822 Addresses. It *should*. That's why RFCs exist. Domain literals, while weird and not really accepted, are a part of industry today, and as such are specified as part of the standard.

e.g. In my case, I am sending email to a network device that does not understand properly (read: it's buggy as hell) the emails it should be receiving.

comment:3 Changed 7 years ago by Richard Smith <richard@…>

Incidentally, this is nothing to do with "forms" per se.

It's a model that's actually executing this validator.

comment:4 Changed 7 years ago by richard@…

  • Resolution set to wontfix
  • Status changed from new to closed

Superceded by #3989

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.