Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 2 years ago

#4393 closed defect (fixed)

notification sent to the wrong receipient

Reported by: r.sokoll@… 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 Christian Boos, 18 years ago

Milestone: 0.10.4
Severity: criticalnormal

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).

comment:2 by anonymous, 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 Christian Boos, 18 years ago

Component: ticket systemnotification
Owner: changed from Jonas Borgström to Emmanuel Blot

comment:4 by Emmanuel Blot, 18 years ago

Milestone: 0.10.50.10.4
Resolution: fixed
Status: newclosed

The patch makes sense, as the conditional SQL query is about change authors - that is updaters.

Applied in [5160] for 0.10.4 and [5161] for 0.11. Thanks to anonymous.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Emmanuel Blot.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Emmanuel Blot to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.