-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 9.12.8
-
Component/s: Mail Server
-
9.12
-
1
-
Severity 3 - Minor
-
1
Issue Summary
- Incoming Mail handler with default reporter creates an issue from a mail with attachment when the sender is a user without a license present in Jira but does not attach the attachment for the same user in the issue in the JSM project. The issue is created with a reporter as the default reporter but the attachment failed to attach and it is giving permission error for the user who sent the mail.
- Below is the definition of default reporter provided in the official document https://confluence.atlassian.com/adminjiraserver/creating-issues-and-comments-from-email-938847641.html.
Specify the username of a default reporter, which will be used if the email address in the From: field of any received messages does not match the address associated with that of an existing Jira user — for example, a Jira username such as emailed-reporter
- This indicates that Jira will only use the default reporter to create a comment when the email's sender is not a registered user in Jira. In this scenario, the sender exists in Jira but is unlicensed, so Jira should have failed to create the issue since the user lacks the necessary permissions. However, Jira still creates the issue, assigning the default reporter as the reporter, suggesting it is checking the default reporter's permissions instead of those of the email sender. This behaviour appears to be a bug. Additionally, Jira correctly checks the email sender's permissions for file attachments which is correct. This behaviour is seen in JSM project and not in JSW project. In JSWM project, issue and attachment both are getting created with the reporter as default reporter.
- Please either enable the email handler to create users and add attachments for non-licensed users, or ensure that the default reporter is not permitted to create issues and attachments, as outlined in the current documentation.
Note: In Jira Software, this functionality allows the default reporter to create an issue and attach the file to the issue on behalf of the sender if the sender of the email is a user without a license and without required permissions. Attaching logs from both JSW and JSM
2024-11-29 16:18:03,683+0000 INFO [testing_project] Caesium-1-2 anonymous testing_mail_handler Reporter doesn't have create permission. Using configured default reporter 'user1'.
2024-11-29 16:18:05,350+0000 INFO [testing_project] Caesium-1-2 anonymous testing_mail_handler testing_mail_handler[10000]: Issue KANBAN-17 created
2024-11-29 16:18:15,523+0000 INFO [testing_project] Caesium-1-2 anonymous testing_mail_handler testing_mail_handler[10000]: Added attachment to issue 'KANBAN-17'
2024-11-29 15:28:20,788+0000 INFO [testing_mail_server] Caesium-1-4 anonymous testing_mail_handler Sender(s) [no-reply@accounts.google.com] not registered in JIRA. Using configured default reporter 'user1'.
2024-11-29 16:18:18,992+0000 INFO [testing_mail_server] Caesium-1-4 anonymous testing_mail_handler Reporter doesn't have create permission. Using configured default reporter 'user1'.
2024-11-29 16:18:20,385+0000 INFO [testing_mail_server] Caesium-1-4 anonymous testing_mail_handler testing_mail_handler[10000]: Issue ITSD-47 created
2024-11-29 16:18:28,887+0000 INFO [testing_mail_server] Caesium-1-4 anonymous testing_mail_handler testing_mail_handler[10000]: Added comment 'Reporter (shaikhm... 'by 'shaikhoob1991@gmail.com' to issue 'ITSD-47'
Steps to Reproduce
- Create a project
- Create a Jira Mail Handler as follows:
- Type: Create issues or add comments to existing issue
- Associate it to the project created earlier
- Set a Default Reporter with a user which has a license, and also all the necessary permission in a Jira project (to create issues, add comments, create attachments, etc...)
- Create a new a user on Jira without a license
- Edit the permission scheme associated to the project by following the steps below (the purpose of these steps is to only allow users with a license to create attachments)
- Removing from the Create Attachments permission the recipient Application Access -> Any logged in user
- Granting the Create Attachments permission to the recipient Application Access -> Jira Software
- Send a new email for the Incoming Mail account with an attachment on it, with the sender being the unlicensed user
- The issue (or comment) is created but the attachment is not included, instead we see the error below on the issue:
Reporter (username) does not have permission to create attachments in project (project name). Following attachments found in the email have been discarded:

Expected Results
The issue should not be created or an attachment should have been attached. Either one of the functionalities should be removed or added
Actual Results
The issue is getting created but the attachment is not attached.
Workaround
No around
Versions Tested
Please confirm all versions that have been tested for this issue, and indicate whether the tested version is affected or not affected, below:
| Testing Requirements | Version | Affected Version |
|---|---|---|
| Customers Reported Version | 9.12.8 | YES |
| Most Recent Bug-Fix Release | 9.12.12 | YES |
| Previous Major Release | ||
| Most Recent LTS | ||
| Previous Supported LTS | ||
| Other Versions.. | ||
| (Add rows as needed) |
- relates to
-
JRASERVER-77508 Mail Handler with Default Reporter does not create attachment if the sender is an unlicensed user
-
- Closed
-