compose reply (and edit as new) Subject corrupting Unicode two-byte characters
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(thunderbird_esr102 unaffected, thunderbird113 fixed)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr102 | --- | unaffected |
| thunderbird113 | --- | fixed |
People
(Reporter: calum.mackay, Assigned: max.m)
References
(Regression)
Details
(Keywords: regression)
Attachments
(5 files)
|
5.84 KB,
image/png
|
Details | |
|
6.17 KB,
image/png
|
Details | |
|
6.07 KB,
image/png
|
Details | |
|
4.58 KB,
image/png
|
Details | |
|
1.85 KB,
patch
|
mkmelin
:
review+
wsmwk
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
When replying to a message that contains a two-byte Unicode character in the Subject, the character is corrupted in the compose window's Subject.
Note that body text is not affected.
This affects: Edit as New, Reply
But does not affect: Forward, nor composing a new message and adding that character to the Subject
The character used in my tests is:
U+2014 EM DASH
UTF-8: e2 80 94 UTF-16BE: 2014 Decimal: — Octal: \020024
—
Category: Pd (Punctuation, Dash); East Asian width: A (ambiguous)
Unicode block: 2000..206F; General Punctuation
Bidi: ON (Other Neutrals)
In the attached screenshots:
TB 1 Subject and body of original email, containing EM DASH
TB 2 Edit as New compose window, showing corrupted char in Subject, but OK in body
TB 3 email from TB 2, after delivery; corruption still there
TB 4 message pane entries for original, and TB 2 emails
The problem first appeared in 0418:
good 114.0a1 (2023-04-17) (64-bit)
bad 114.0a1 (2023-04-18) (64-bit)
MacOS Ventura 13.3.1
| Reporter | ||
Comment 1•3 years ago
|
||
| Reporter | ||
Comment 2•3 years ago
|
||
| Reporter | ||
Comment 3•3 years ago
|
||
| Reporter | ||
Comment 4•3 years ago
|
||
| Reporter | ||
Comment 5•3 years ago
|
||
The screenshots were taken whilst composing in plain text.
I thought that might explain why the body text was not affected. But no, the same thing happens when composing in HTML: Subject corrupted, HTML body fine.
Comment 6•3 years ago
|
||
Do you think it is a recent regression?
| Reporter | ||
Comment 7•3 years ago
|
||
Yes, as I said above: The problem first appeared in 0418 😊
Comment 8•3 years ago
|
||
I bet you have (PGP?) encryption enabled?
I just noticed that when I reply to an email with an encrypted subject, in the reply the umlauts are destroyed.
When I reply to an unencrypted e-mail everything is still OK.
And yes, I can also confirm the bug with the draft folder.
If I disable: Account Settings -> Ent-To-End Encryption
=>[ ] Store draft messages in encrypted format
this is fine again.
Comment 9•3 years ago
|
||
I can't say when the bug started to appear. But 18.04. would indicate Bug 1819499.
Updated•3 years ago
|
Updated•3 years ago
|
| Reporter | ||
Comment 10•3 years ago
|
||
Thanks.
I do have PGP enabled, but the email to which I'm replying was not encrypted, nor is the email I compose. They are both signed, however.
| Assignee | ||
Comment 11•3 years ago
|
||
Looks like bug 1819499 didn't cover:
https://searchfox.org/comm-central/rev/04176849c949facaabc16deb07dd2e42b81b5173/mail/extensions/openpgp/content/ui/enigmailMsgComposeOverlay.js#565
Likely the cause since the subject passed in comes from the db header which is where the IDL change happened.
This also needs to be checked:
https://searchfox.org/comm-central/rev/04176849c949facaabc16deb07dd2e42b81b5173/mail/extensions/openpgp/content/modules/mimeDecrypt.jsm#863
| Assignee | ||
Comment 12•3 years ago
|
||
Comment 13•3 years ago
|
||
Updated•3 years ago
|
Comment 14•3 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/fca355829b44
Follow-up to bug 1819499: Don't treat subject from DB header as raw UTF-8. r=mkmelin
| Reporter | ||
Comment 15•3 years ago
|
||
confirmed fix for me in: 114.0a1 (2023-04-24) (64-bit)
thanks very much indeed.
Comment 16•3 years ago
|
||
Comment on attachment 9329880 [details] [diff] [review]
1829502.patch
[Approval Request Comment]
Regression fix for bug 1819499
Comment 17•3 years ago
|
||
Comment on attachment 9329880 [details] [diff] [review]
1829502.patch
[Triage Comment]
Approved for beta
Comment 18•3 years ago
|
||
| bugherder uplift | ||
Thunderbird 113.0b5:
https://hg.mozilla.org/releases/comm-beta/rev/3cbc46f0ec09
Updated•3 years ago
|
Description
•