Opened 6 years ago

Closed 6 years ago

#7493 closed (duplicate)

build_absolute_url method of the HttpRequest class fails with urls with : in their path

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


When build_absolute_url is called for a location that should contain a ":" character in it's path it fails to add the "" part.

This is because off line 76 of django/http/ where "if not ':' in location:" is used to check if the location is already absolute.

According to it is perfectly valid to have a ":" in the path part of a HTTP url.

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by anonymous

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

Sorry, created this ticket twice by mistake. Must have hit the submit button to early here.

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.