Opened 19 years ago
Closed 19 years ago
#1884 closed defect (fixed)
[patch] Notify has a subtle bug when users don't enter an email in settings.
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | 0.9 |
Component: | ticket system | Version: | devel |
Severity: | normal | Keywords: | notify |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
My usage of notify involved setting up an "always_cc" list of a few developers. Everyone has a user name in trac, but no one has entered an email address in settings. When someone added a user name to the cc field in a ticket. The email notification crashed with this error. (minus the trace)
Trac[web_ui] ERROR: Failure sending notification on change to ticket #899: TypeError: iteration over non-sequence
I tracked the error down to a single line in the Notify.py file. The loop that converts user names into real email address isn't checking to make sure it's getting anything back. So in my case, it wasn't, and it caused the error.
Attachments (1)
Change History (2)
by , 19 years ago
Attachment: | Notify_check_for_email.patch added |
---|
comment:1 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Checked in a modified version of the patch in [2064]. Thanks!
The patch to Notify.py that fixes the issue.