Loop problem created from watchers of e-mail issues

Athanassios Siaperas December 21, 2015

Hello everyone,

The problem I encounter is that in the getMail configuration of a certain project, whenever an e-mail is retrieved the project's mailbox is added in the list of watchers for the issue created.

As of this action for any comment added, the project's mailbox gets a notification E-mail which is then consumed again by the E-mail handler thus creating a loop.

Any suggestions?

2 answers

0 votes
Athanassios Siaperas January 12, 2016

There is an MS Exchange mailbox (and a corresponding Active Directory user), named "cs10-support".

This e-mail address is specified in the Notifications Scheme's "project e-mail address" (see screenshot below).

So it is used

  • As a sender (From) e-mail
  • As the mailbox from which e-mails are fetched through the corresponding Email Handler (currently, JEditor HTML handler)

The problem is, as mentioned, that whenever an e-mail is fetched and processed from this mailbox, the handler arbitrarily adds Cc: cs10-support@our.domain.europa.eu (well, actually, cedefop.europa.eu, but removing this for spam reasons). See screenshot 2 below.

Thanks

 

2016-01-12_13h17_36.png

 

image2016-1-12 13:28:7.png

Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 12, 2016

Do you have a jira user with this e-mail?

Athanassios Siaperas January 12, 2016

yes, but only by chance: Since it's an Active Directory user and JIRA users are synced from the AD.

Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 12, 2016

Is it allowed for this user to be a watcher? See project permissions.

0 votes
Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 22, 2015

Why comment appears when smb is added into watchers list? In my JIRA this event is not commented. Maybe you have some customisation about this?

Athanassios Siaperas December 22, 2015

Dear Vasiliy, When the issue is commented or updated or closed based on the customized notification schema, e-mails are sent to the watchers (among others). What I can't find out is why the project's mailbox is added to the watcher's list in the first place

Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 22, 2015

Try to analise custom event listeners. Maybe you have one to do this. Inspect it in order to find usages of WatcherManager(https://docs.atlassian.com/jira/6.4.3/com/atlassian/jira/issue/watchers/WatcherManager.html)

Athanassios Siaperas December 22, 2015

I checked but there aren't any custom events fired nor any post function that causes the mailbox to become part of watcher's list.

Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 24, 2015

Could you explain what does it mean project's mailbox. It seems that you have a user with this mailbox. Is is rigth?

Suggest an answer

Log in or Sign up to answer