Code

Opened 7 years ago

Closed 7 years ago

#5312 closed (worksforme)

URLField does not validate .it URLs

Reported by: anonymous Owned by: jacob
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I get a 'A valid URL is required.' error when I try to enter .it domains.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by ubernostrum

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to worksforme
  • Status changed from new to closed

Django does not perform any check which would be affected by this; by default, two validation rules are applied:

  1. The URL must begin with "http://" or "https://"
  2. An HTTP request to the URL must result in an HTTP response status code of 200, 301, 302 or 401.

Also, I'm able to successfully submit URLs of .it domains in an app I have on trunk. Marking worksforme and suggesting that you're trying to post un-fetchable links (in which case look at the verify_exists argument to URLField).

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.