#23481: Cannot view Trac tickets when logged in through GitHub
-------------------------------------+--------------------
Reporter: kevin-brown | Owner: nobody
Type: Bug | Status: new
Component: *.djangoproject.com | Version:
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+--------------------
==== 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'
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23481>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/054.bd14162b2c850eabac1a2a5ba7aea99c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.