Email notifications are sent twice. How can I investigate ?

Hi,

On our nuxeo 5.6 platform some emails are sent twice : [Nuxeo]New subscription, [Nuxeo]New comment on 'MyDocument'…

However, after some actions, a modification action for example, email notification is sent only once [Nuxeo]MyDocument has been modified by user1

The only operation performed on the platform is the removal of alert basic templates (following http://doc.nuxeo.com/display/Studio/Override+email+notification+templates?src=search) and the creation of new translated et customized templates (with ID choosen among the ones that are used in the default product). I'm not sure that this is the cause of the defect.

Moreover, for certain actions, additional messages are transmitted :

  • 3 emails for “New comment” : [Nuxeo]MyDocument has been created by system + [Nuxeo]New comment on 'MyDocument' + [Nuxeo]New comment on 'MyDocument'
  • 4 emails for “Worklow” : [Nuxeo]MyDocument has been modified by znuxeo + [Nuxeo]MyDocument has been modified by znuxeo + [Nuxeo]Workflow event + [Nuxeo]MyDocument has been modified by znuxeo

I do not know how or where to look to figure out what's wrong.

Thank you for your help.

0 votes

1 answers

865 views

ANSWER

Same kind of problem on 5.8 : notifications overriding was working fine in 5.4.2, the same component has been deployed on 5.8. Now some notifications are sent twice :

The body of both mails are the customised ones but one of the mail has a customised subject while the other one keeps the default subject.

I tried to had some requirements to the component (org.nuxeo.ecm.platform.notification.document.routing.NotificationContrib) but it does not change anything. I disabled all the notifications declared in org.nuxeo.ecm.platform.notification.service.NotificationContrib, it seems the task Assigned invalidation is not taken into account at leat for the subject of the mail.

02/20/2014



My problem came from the org.nuxeo.ecm.social.workspace.notifications that declares synonymous notifications (much like NXP-12215)

The best way to proceed, in that case and others, is to install the explorer extension so that you see clearly which extension points are used on the running instance. In your case, the same event might correspond to several notifications, hence different mails.

0 votes