Closed Bug 1777495 Opened 3 years ago Closed 3 years ago

PDF and WORD attachments are blank after sending to Proton Mail

Categories

(Thunderbird :: Message Compose Window, defect)

Thunderbird 102
defect

Tracking

(thunderbird_esr102+ fixed, thunderbird103 fixed)

VERIFIED FIXED
104 Branch
Tracking Status
thunderbird_esr102 + fixed
thunderbird103 --- fixed

People

(Reporter: davebaird801, Assigned: rnons)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0

Steps to reproduce:

Send Email to protonmail.com address with a PDF or Word attachment after upgrading from TB 91 to 102.
No extra filters are active at Protonmail and sending from the protonmail web app is working correctly.
Tried reinstalling the protonmail account in thunderbird and reinstalling the protonmail bridge app.

Actual results:

Mail is sent correctly and attachments are still attached but when opened are blank.
For PDF's, pages are still shown and page count is correct but no content.
For Word file is empty and Word flags as corrupt.
The copy remaining in the protonmail sent folder is also affected in the same way and the receiver's email.

Expected results:

Attachments remain unchanged

Blocks: tb102found

Are you sure the attached word files are empty? In my case (docs, xlsx-attachments) were "corrupted" and slightly bigger. Opening them in Notpad++ tells me they are encoded in ANSI (was UTF8 before). And I got \ufffd () as a character inserted in some places. Seems to be a replacement char for utf, see https://www.fileformat.info/info/unicode/char/fffd/index.htm

And to confirm: Problem existing only using protonmail bridge. I contacted proton support. Perhaps you should too.

I contacted Protonmail a few days ago and they have replied that is a known issue and are working it.
But, the issue only exist with the change to Thunderbird 102 , so it may still be an issue that needs to be worked from the Thunderbird side as well.

hi, Proton here. we've looked into this at our end and confirmed that the problem comes from the new TB 102 adding charset=windows-1250 to all attachments, not just to text.
Based on this Bridge converts all these to utf8 which changes the data of binary files.
We can fix it at our end and maybe could handle it better from the beginning, but are puzzled as of why TB changed this in the first place just now.
As per https://datatracker.ietf.org/doc/html/rfc2046#section-4.1.2 this is not strictly forbidden, but would be great to know it it is deliberate and what is the reasoning behind it.
And/or if TB is planning a hotfix for this.

confirmed that the problem comes from the new TB 102 adding charset=windows-1250 to all attachments, not just to text.

Looks like a regression from bug 1760728, I will make a fix soon. Thanks.

Keywords: regression
Regressed by: 1760728
Assignee: nobody → remotenonsense
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

good to know, thanks for speedy answer. any ETA on the hotfix? we have some quite a few users unable to send attachments, so looks pretty serious :/

Target Milestone: --- → 104 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/0a6dd8df110f
Do not add charset param to non-text attachments. r=#thunderbird-reviewers,freaktechnik

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

Comment on attachment 9284417 [details]
Bug 1777495 - Do not add charset param to non-text attachments. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): bug 1760728
User impact if declined: Attachments become blank when sent to Proton
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): low

Attachment #9284417 - Flags: approval-comm-beta?

In this case, D141905 should be backed out. Or I can send a patch to revert D141905, which do you prefer?

Attached patch 1777495-follow.patch (obsolete) — Splinter Review

Revert bug 1761101.

Attachment #9284778 - Flags: review?(alessandro)

Yeah, a patch is better since backing out something from 4 months ago doesn't make much sense.
If the code changes, the tests should follow.
Can you please add this to Phab, and kick a try-run just to be sure? So then I can push a DONTBUILD with it

Attachment #9284778 - Flags: review?(alessandro)
Attachment #9284778 - Attachment is obsolete: true
Pushed by thunderbird@calypsoblue.org: https://hg.mozilla.org/comm-central/rev/bf960b3941c6 Follow-up: Revert bug 1761101 to fix browser_inlineImage.js. r=#thunderbird-reviewers,rjl

Comment on attachment 9284417 [details]
Bug 1777495 - Do not add charset param to non-text attachments. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

Unless a new patch is needed?

Flags: needinfo?(remotenonsense)
Attachment #9284417 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9284417 [details]
Bug 1777495 - Do not add charset param to non-text attachments. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): bug 1760728
User impact if declined: Attachments become blank when sent to Proton
Testing completed (on c-c, etc.): beta
Risk to taking this patch (and alternatives if risky): low

Flags: needinfo?(remotenonsense)
Attachment #9284417 - Flags: approval-comm-esr102?

Not sure what to do. This just started a week or two ago. Why doesn't Thunderbird fix what they did in that update that caused this problem, and put out another update?

There is an update coming (that's what the approval requests are about). We have to test it on beta first to make sure everything is alright.

Summary: PDF and WORD attachments are blank after sending to Proton email → PDF and WORD attachments are blank after sending to Proton Mail

Comment on attachment 9284417 [details]
Bug 1777495 - Do not add charset param to non-text attachments. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr102 with follow up patch if needed.

Attachment #9284417 - Flags: approval-comm-esr102? → approval-comm-esr102+

Hi. This says bug FIXED. Is that because there's a fix or update that has not yet been released, or am I missing something I'm supposed to do? Thanks.

It says fixed for version 103, which is currently being tested. You need to wait for its release.

THANKS!

Working Here for both attachment types.
Thank you.

(In reply to Dave from comment #30)
102.0.3 (64-bit

Verified per Dave's comment 30, comment 31.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: