Modify ↓
#176 closed defect (fixed)
AttributeError: 'AccountChangeNotification' object has no attribute 'smtp_server'
Reported by: | Owned by: | István Váradi | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | other | Keywords: | registry fail on trac |
Cc: |
Description
Wanted to register to avoid typing my address often and better manage the tracker, however it seems to be that smtp is not properly configured.
How to Reproduce
While doing a POST operation on /register
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'__FORM_TOKEN': u'19c4cacbbf9ec5dd4c6613be', 'action': u'create', 'email': u'szebenyib@gmail.com', 'name': u'Szebenyi B\xe1lint', 'password': u'XXXXXX', 'password_confirm': u'XXXXXX', 'user': u'szebenyib'}
User agent: Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.12
System Information
System information not available
Enabled Plugins
Plugin information not available
Python Traceback
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 511, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 237, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/pymodules/python2.7/acct_mgr/web_ui.py", line 352, in process_request _create_user(req, self.env) File "/usr/lib/pymodules/python2.7/acct_mgr/web_ui.py", line 71, in _create_user mgr.set_password(user, password) File "/usr/lib/pymodules/python2.7/acct_mgr/api.py", line 144, in set_password self._notify('created', user, password) File "/usr/lib/pymodules/python2.7/acct_mgr/api.py", line 253, in _notify getattr(l, func)(*args) File "/usr/lib/pymodules/python2.7/acct_mgr/notification.py", line 41, in user_created notifier.notify(username, 'New user registration') File "/usr/lib/pymodules/python2.7/acct_mgr/notification.py", line 90, in notify NotifyEmail.notify(self, username, subject) File "/usr/lib/python2.7/dist-packages/trac/notification.py", line 324, in notify Notify.notify(self, resid) File "/usr/lib/python2.7/dist-packages/trac/notification.py", line 226, in notify self.send(torcpts, ccrcpts) File "/usr/lib/pymodules/python2.7/acct_mgr/notification.py", line 160, in send % (self.smtp_server, self.smtp_port, recipients)) AttributeError: 'AccountChangeNotification' object has no attribute 'smtp_server'
Attachments (0)
Change History (2)
comment:1 by , 12 years ago
Status: | new → accepted |
---|
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.
Actually, the account manager plugin is buggy. Fortunately other people have also encountered this issue, and provided a patch for it: http://trac-hacks.org/ticket/4895, which I applied.
Please, try to create the account again.