Hi,
On 2023/01/12 18:25, Rolf Boelens wrote:
> We've installed TRAC on a Linux (Ubuntu) server.
> Everything runs fine, except for email notifications for ticket updates.
>
> We want to send the email notifications using our company Domino Server.
> We are using TRAC on a Windows server for years now with the same (SMTP) configuration.
>
> When I now submit a ticket change, I get the following error:
> /2023-01-12 07:21:46,104 Trac[web_ui] ERROR: Failure sending notification on change to ticket #3: AttributeError: 'list' object has no attribute 'update'/
>
> I tried to google for this error, but no success.
> What can be the root cause of this issue?
Found root cause. That is a Trac issue.
This issue raises if permission group name is used in owner, reporter or
updater of a ticket when the ticket is updated.
Workaround is to rename the permission group name to something that is not used
as a reporter or owner of tickets or username (e.g. "admin" -> "%admin").
The exception will go away by the following patch, however notifications to the
users will no longer fire when the permission group is used in reporter, owner
or updater of the ticket.
diff --git a/trac/ticket/notification.py b/trac/ticket/notification.py
index c213175a5..72be61af8 100644
--- a/trac/ticket/notification.py
+++ b/trac/ticket/notification.py
@@ -750,6 +750,7 @@ def _ticket_change_subscribers(subscriber, candidates):
return
if not isinstance(candidates, (list, set, tuple)):
candidates = [candidates]
+ candidates = set(candidates)
# Get members of permission groups
groups = PermissionSystem(subscriber.env).get_groups_dict()
--
Jun Omae <
jun...@gmail.com> (大前 潤)