Modify ↓
Opened 18 years ago
Closed 14 years ago
#4907 closed defect (duplicate)
Notifications errors should not show up as internal errors
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | notification | Version: | |
Severity: | normal | Keywords: | error |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Simply creating a new ticket. Have edited components, and deleted version 2.0
…..
Traceback (most recent call last): File "C:\Python23\lib\site-packages\trac\ModPythonHandler.py", line 195, in handler core.dispatch_request(mpr.path_info, args, mpr, env) File "C:\Python23\lib\site-packages\trac\core.py", line 457, in dispatch_request module.run() File "C:\Python23\lib\site-packages\trac\Module.py", line 50, in run self.render() File "C:\Python23\lib\site-packages\trac\Ticket.py", line 302, in render self.create_ticket() File "C:\Python23\lib\site-packages\trac\Ticket.py", line 294, in create_ticket tn.notify(ticket, newticket=1) File "C:\Python23\lib\site-packages\trac\Notify.py", line 228, in notify NotifyEmail.notify(self, ticket['id'], subject) File "C:\Python23\lib\site-packages\trac\Notify.py", line 131, in notify Notify.notify(self, resid) File "C:\Python23\lib\site-packages\trac\Notify.py", line 79, in notify self.begin_send() File "C:\Python23\lib\site-packages\trac\Notify.py", line 139, in begin_send self.server = smtplib.SMTP(self.smtp_server) File "C:\Python23\lib\smtplib.py", line 240, in __init__ (code, msg) = self.connect(host, port) File "C:\Python23\lib\smtplib.py", line 288, in connect for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM): gaierror: (7, 'getaddrinfo failed')
Attachments (0)
Change History (3)
comment:1 by , 18 years ago
Description: | modified (diff) |
---|---|
Keywords: | notification added |
Milestone: | → 0.12 |
comment:2 by , 16 years ago
Component: | general → notification |
---|---|
Description: | modified (diff) |
Keywords: | error added; notification removed |
Summary: | Bugg in ticket handler → Notifications errors should not show up as internal errors |
comment:3 by , 14 years ago
Milestone: | next-major-0.1X |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Notification errors should probably be shown as a kind of warning (*) and not result in an internal error. The latter is misleading, because the actual changes were successful, just not the notification.
(*) A warning API could be developed, something like:
which would collect some warnings (in
req.chrome.warnings
) that are intended to be shown to the end-user, in addition to the normal result. Thelayout.html
will prepend a warning section to the actual content of the page if there are some warnings.Those warnings should be of course used sparingly, only in situations like this, where a full error page is not needed but an error condition should nevertheless be reported to the user.