Modify ↓
#12978 closed defect (worksforme)
Plugin fails to function with missing name in session
| Reported by: | Owned by: | Tetsuya Morimoto | |
|---|---|---|---|
| Priority: | normal | Component: | AutocompleteUsersPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Ryan J Ollos, Jun Omae | Trac Release: |
Description
I have an instance where the plugin does not function. There is a user in the session table that does not have a display "name". While the entry is in the session table, I will only see the spinning gif; once I remove the session entry, the plugin begins to function
trac-admin . session list:
SID Auth Last Visit Name Email ---------------------------------- doej 1 2016-12-02
Debug Log
Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
File "[...]\trac-1.0.5-py2.7-win32.egg\trac\web\main.py", line 513, in _dispatch_request
dispatcher.dispatch(req)
File "[...]\trac-1.0.5-py2.7-win32.egg\trac\web\main.py", line 222, in dispatch
resp = chosen_handler.process_request(req)
File "[...]\tracautocompleteusersplugin-0.4.3dev-py2.7.egg\autocompleteusers\autocompleteusers.py", line 52, in process_request
users = self._get_users(req)
File "[...]\tracautocompleteusersplugin-0.4.3dev-py2.7.egg\autocompleteusers\autocompleteusers.py", line 156, in _get_users
value = user_data[field].lower()
AttributeError: 'NoneType' object has no attribute 'lower'
Attachments (0)
Change History (2)
comment:1 Changed 9 years ago by
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
comment:2 Changed 9 years ago by
I did no think I was utilizing a modified version of the plugin. I will re-install version 0.4.3 and report any findings
Note: See
TracTickets for help on using
tickets.



Wired. The issue couldn't be reproduced to me with missing name.
It's not a possibility that the
user_datalist includesNone. IfChrome(self.env).format_author(req, user)in the following code could returnNone, the evaluated value would be an empty string.I consider you are using modified AutocompleteUsersPlugin. Please reinstall the latest.