Modify ↓
#4393 closed defect (fixed)
notification sent to the wrong receipient
Reported by: | Owned by: | Emmanuel Blot | |
---|---|---|---|
Priority: | high | Milestone: | 0.10.4 |
Component: | notification | Version: | 0.10.3 |
Severity: | normal | Keywords: | notification, tickets |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
(asked on the users-ML, but no anser so far)
If a ticket owner changes, notifications still are sent to the old owner.
Steps to reproduce:
- create a new environment
- set up 3 different users (in this example, lets name them "supervisor", "engineer", "user"
- give "supervisor" TRAC_ADMIN, "engineer" TICKET_MODIFY and "anonymous" TICKET_CREATE permissions
- create 2 components:
- "new" with owner "supervisor"
- "assigned" without an owner
- configure notification in trac.ini:
[notification] always_notify_owner = true always_notify_reporter = true always_notify_updater = false smtp_enabled = true [ticket] default_component = new
- "user" creates a ticket
- emails are sent to:
- "user" (correct, as he is reporter)
- "supervisor" (correct, as he is owner)
- "supervisor" reassigns the ticket to "engineer" and changes component from "new" to "assigned"
- emails are sent to:
- "engineer" (correct, as he is owner)
- "user" (correct, as he is reporter)
- "engineer" accepts the ticket
- emails are sent to:
- "engineer" (correct, as he is owner)
- "user" (correct, as he is reporter)
- "supervisor" (wrong)
- "engineer" resolves the issue and closes the ticket
- emails are sent to:
- "engineer" (correct, as he is owner)
- "user" (correct, as he is reporter)
- "supervisor" (wrong)
The question is, why in the last 2 steps also "supervisor" gets notified. This should not happen, since he is neither owner nor reporter.
Attachments (0)
Change History (4)
comment:1 by , 18 years ago
Milestone: | → 0.10.4 |
---|---|
Severity: | critical → normal |
comment:2 by , 18 years ago
This glorious ( ;-)) patch solved the problem for me, can someone more experienced please have a look at this?
diff notification.py notification.py.orig 224c224 < if notify_updater: --- > if notify_reporter:
comment:3 by , 18 years ago
Component: | ticket system → notification |
---|---|
Owner: | changed from | to
Note:
See TracTickets
for help on using tickets.
Yes, we should look into this, but the severity is probably not critical (as it would be if, e.g. the notification could would prevent the whole ticket subsystem from working).