Closed Bug 1782173 Opened 2 years ago Closed 2 years ago

Forward As Attachments. Prohibited symbols interrupt sending (colon in file name?) on Windows

Categories

(Thunderbird :: Message Compose Window, defect)

Thunderbird 102
Unspecified
Windows
defect

Tracking

(thunderbird_esr102+ fixed, thunderbird106 wontfix)

RESOLVED FIXED
107 Branch
Tracking Status
thunderbird_esr102 + fixed
thunderbird106 --- wontfix

People

(Reporter: clp_bugzillamozilla, Assigned: rnons)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

Attached image error_message.png

Steps to reproduce:

Thunderbird 102.1.0 (64-bit).
Windows 1809 17763.316
mail.ru as email server

You need to have mail in your inbox with this title "МИТАП DevOps: как добиться максимума? Must have инструменты" and my be another (i cant reproduce with other titles) with random or not content.

Next: click right mouse button and select "Forward as" > "Attachment"

In bottom of window you have one Attachment with path "C:\Users\USERNAME\AppData\LocalLow\Mozilla\Temp-{uuid}\pid-PID\МИТАП DevOps: как добиться максимума%3F Must have инструменты.eml"

select To and click Send

Actual results:

Email not sended

Gave error
"""
Unable to save your message as a draft.
There was an error attaching МИТАП DevOps: как добиться максимума? Must have инструменты.eml. Please check that you have access to the file.
"""

File with path "C:\Users\USERNAME\AppData\LocalLow\Mozilla\Temp-{uuid}\pid-PID\МИТАП DevOps: как добиться максимума%3F Must have инструменты.eml" unexist in folder. Only have "МИТАП DevOps"

Expected results:

Email sended

Attached image eml_path.png
Component: FileLink → Mail Window Front End
Component: Mail Window Front End → Message Compose Window
Summary: Forward As Attachments. Prohibited symbols interrupt sending → Forward As Attachments. Prohibited symbols interrupt sending (colon in file name?)
Status: UNCONFIRMED → NEW
Ever confirmed: true

This can be easily reproduced by sending a mail with subject "???" to oneself, then forwarding as attachment. See bug 1793490.

(In reply to Jens Müller (:tessarakt) from comment #3)

This can be easily reproduced by sending a mail with subject "???" to oneself, then forwarding as attachment. See bug 1793490.

Another try with clear mails and

  1. subject is "???" - no problem
    attachment stay on server and path to it like "imap-message://MAIL/FOLDER"

  2. subject is "МИТАП DevOps: как добиться максимума? Must have инструменты" - problem appears
    attachments path in %APPDATA% folder and ":" in filename not replaced.
    ":" not supported inf ntfs.

Because IOUtils.createUniqueFile doesn't work with colon and other special characters on Windows, use encodeURIComponent when creating tmp file.

Assignee: nobody → remotenonsense
Status: NEW → ASSIGNED
Attachment #9297251 - Attachment description: Bug 1782173 - Fix forwarding msg with special characters in subject. r=john.bieling → Bug 1782173 - Fix forwarding msg with special characters in subject. r=mkmelin
Target Milestone: --- → 107 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/c6b706c4dd2f
Fix forwarding msg with special characters in subject. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

Thanks for everybody involved in this bug and getting this fixed!

Should we report this upstream and have the core implementation being fixed?

Flags: needinfo?(john)

I guess so.

@rnons filed a bug a few days ago already: Bug 1793773

See Also: → 1794386

Comment on attachment 9297251 [details]
Bug 1782173 - Fix forwarding msg with special characters in subject. r=mkmelin

[Approval Request Comment]
Regression caused by (bug #): bug 1760025
User impact if declined: On Windows, can't forward messages containing special characters in the subject
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): no risk, safe to skip beta

Attachment #9297251 - Flags: approval-comm-esr102?
OS: Unspecified → Windows
Summary: Forward As Attachments. Prohibited symbols interrupt sending (colon in file name?) → Forward As Attachments. Prohibited symbols interrupt sending (colon in file name?) on Windows

Comment on attachment 9297251 [details]
Bug 1782173 - Fix forwarding msg with special characters in subject. r=mkmelin

[Triage Comment]
Approved for esr102

Attachment #9297251 - Flags: approval-comm-esr102? → approval-comm-esr102+
Flags: needinfo?(john)
Duplicate of this bug: 1792601
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: