[MGNLMAIL-158] Mail tools app can't send mail with attachments Created: 31/Mar/23  Updated: 14/Sep/23  Resolved: 22/Aug/23

Status: Closed
Project: Magnolia Mail Module
Component/s: None
Affects Version/s: 5.6.0
Fix Version/s: 5.6.1

Type: Bug Priority: Major
Reporter: Frank Sommer Assignee: Milan Divilek
Resolution: Fixed Votes: 1
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: PNG File Screenshot 2023-08-22 at 09.56.01.png     PNG File Screenshot 2023-08-22 at 09.56.07.png     PNG File debug-path-eclipse.png     PNG File image-2023-03-31-12-04-53-777.png    
Issue Links:
relation
is related to MGNLMAIL-109 Cannot send email with attachments on... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLMAIL-184 Implementation Sub-task Completed Milan Divilek  
MGNLMAIL-185 Review Sub-task Completed Robert Šiška  
MGNLMAIL-186 preintQA Sub-task Completed Robert Šiška  
MGNLMAIL-187 QA Sub-task Completed Javier Benito  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Release notes required:
Yes
Date of First Response:
Epic Link: Support
Sprint: DevX 44
Story Points: 3
Team: DeveloperX
Work Started:
Approved:
Yes

 Description   

Steps to reproduce

  1. open mail tools app
  2. choose an assets to send
  3. click send

An error message pops up.

In log following message will be logged:

ERROR info.magnolia.module.mail.app.verify.MailVerifyPresenter 31.03.2023 09:58:01 – Unable to send email.
java.io.FileNotFoundException: blume.jpg (Permission denied)
        at java.io.FileOutputStream.open0(Native Method) ~[?:1.8.0_362]
        at java.io.FileOutputStream.open(FileOutputStream.java:270) ~[?:1.8.0_362]
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213) ~[?:1.8.0_362]
        at java.io.FileOutputStream.<init>(FileOutputStream.java:162) ~[?:1.8.0_362]
        at info.magnolia.module.mail.app.verify.MailVerifyPresenter.sendSimpleMail(MailVerifyPresenter.java:178) [magnolia-module-mail-5.6.jar:?]
        at info.magnolia.module.mail.app.verify.MailVerifyViewImpl$1.buttonClick(MailVerifyViewImpl.java:75) [magnolia-module-mail-5.6.jar:?]

Expected results

Mail should be send with attachments.

Development notes

Reason is that the temp files will be created at root in the filesystem and not in the temporary folder.

While debugging I found the file here:


Generated at Mon Feb 12 06:04:11 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.