﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23481	Cannot view Trac tickets when logged in through GitHub	Kevin Brown	nobody	"==== How to Reproduce ====

1. Remove the email from your Trac settings.
2. Log out.
3. Log in using the GitHub login.
4. View any ticket.
5. Trac gives an Internal Server Error.

If you set an email in your settings, this error disappears and tickets can be viewed. If you remove the email from your settings, and do not go through the login cycle again, this error will not appear. This error only occurs when you log into Trac and the email was not previously set.

==== Python Traceback ====
{{{
Traceback (most recent call last):
  File ""/home/www/trac/venv/local/lib/python2.7/site-packages/trac/web/main.py"", line 497, in _dispatch_request
    dispatcher.dispatch(req)
  File ""/home/www/trac/venv/local/lib/python2.7/site-packages/trac/web/main.py"", line 214, in dispatch
    resp = chosen_handler.process_request(req)
  File ""/home/www/trac/venv/local/lib/python2.7/site-packages/trac/ticket/web_ui.py"", line 179, in process_request
    return self._process_ticket_request(req)
  File ""/home/www/trac/venv/local/lib/python2.7/site-packages/trac/ticket/web_ui.py"", line 642, in _process_ticket_request
    get_reporter_id(req, 'author'), field_changes)
  File ""/home/www/trac/venv/local/lib/python2.7/site-packages/trac/ticket/web_ui.py"", line 1558, in _insert_ticket_data
    fields = self._prepare_fields(req, ticket, field_changes)
  File ""/home/www/trac/venv/local/lib/python2.7/site-packages/trac/ticket/web_ui.py"", line 1478, in _prepare_fields
    cc_action, cc_entry, cc_list = self._toggle_cc(req, cc)
  File ""/home/www/trac/venv/local/lib/python2.7/site-packages/trac/ticket/web_ui.py"", line 737, in _toggle_cc
    email = req.session.get('email', '').strip()
AttributeError: 'NoneType' object has no attribute 'strip'
}}}"	Bug	closed	*.djangoproject.com		Normal	fixed			Unreviewed	0	0	0	0	0	0
