Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 18 years ago

#951 closed defect (fixed)

[patch] - unsubscriptable object error from trac/login

Reported by: ivanoe at ivanoe net Owned by: Jonas Borgström
Priority: normal Milestone: 0.8
Component: general Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When in the browser the address is entered directly to the login screen: as http://xxx.yyy.com/trac/login, after logging in, the following page error is displayed:

Traceback (most recent call last):
  File "D:\tools\Python23\Lib\site-packages\trac\core.py", line 525, in cgi_start
    real_cgi_start()
  File "D:\tools\Python23\Lib\site-packages\trac\core.py", line 520, in real_cgi_start
    dispatch_request(path_info, args, req, env)
  File "D:\tools\Python23\Lib\site-packages\trac\core.py", line 417, in dispatch_request
    if referer[0:len(req.base_url)] != req.base_url:
TypeError: unsubscriptable object

since the referer is None

Attachments (2)

login.patch.diff (552 bytes ) - added by ivanoe at ivanoe net 20 years ago.
the check if the referer is None added
login.patch2.diff (552 bytes ) - added by ivanoe at ivanoe net 20 years ago.
includes the login.patch.diff and adds the check for /logout as well

Download all attachments as: .zip

Change History (4)

by ivanoe at ivanoe net, 20 years ago

Attachment: login.patch.diff added

the check if the referer is None added

by ivanoe at ivanoe net, 20 years ago

Attachment: login.patch2.diff added

includes the login.patch.diff and adds the check for /logout as well

comment:1 by Jonas Borgström, 20 years ago

Status: newassigned

comment:2 by Jonas Borgström, 20 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [1082], thanks!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.