Edgewall Software

Ticket #951 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

[patch] - unsubscriptable object error from trac/login

Reported by: ivanoe at ivanoe net Owned by: jonas
Priority: normal Milestone: 0.8
Component: general Version: devel
Severity: normal Keywords:
Cc:

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

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

Change History

Changed 4 years ago by ivanoe at ivanoe net

the check if the referer is None added

Changed 4 years ago by ivanoe at ivanoe net

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

Changed 4 years ago by jonas

  • status changed from new to assigned

Changed 4 years ago by jonas

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in [1082], thanks!

Add/Change #951 ([patch] - unsubscriptable object error from trac/login)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.