delete attachment from openpgp message not properly prevented when using the delete key
Categories
(Thunderbird :: General, defect)
Tracking
(thunderbird_esr140 wontfix, thunderbird144 fixed)
People
(Reporter: h.judt, Assigned: mkmelin)
References
Details
Attachments
(5 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0
Steps to reproduce:
- Open a received mail that has multiple attachments.
- Select more than one attachment or all of them.
- Delete them (either with keyboard del or via context menu).
Actual results:
None of the selected attachments are deleted. Selecting and deleting only a single attachment works, though. The "Detach" attachment functionality suffers a similar problem.
Expected results:
All selected attachments should have been deleted.
| Assignee | ||
Comment 1•5 months ago
|
||
Is this an IMAP account? If so maybe bug 1980776, but likely not as you say delete single attachment works for you.
Tried Help | Troubleshoot mode?
Or what symptoms do you get? Do you get anything relevant in the Error Console? (Ctrl+Shift+J)
| Reporter | ||
Comment 2•5 months ago
|
||
It happens both with IMAP and local accounts. Nothing to see in error console.
You select the files, then it asks "The following files will be deleted: <only-first-file>", then after clicking on OK nothing happens, files still exist.
Same behaviour observed in troubleshooting mode.
To reproduce this I simply created a new mail, attaching a few files.
Now additionally - but this might be a separate bug? - I tried deleting the attachments from the copy in the (local) "Sent" folder. More weirdness: When I try to delete the attachments from this copy in sent, it seemed to delete the contents of the mail. No attachments anymore, not even those that I did not select, not mail text.
| Reporter | ||
Comment 3•5 months ago
|
||
When viewing the source code of the copy in "Sent", all data is still there (including all attachments). It just isn't being displayed (except header information).
| Assignee | ||
Comment 4•5 months ago
|
||
Re <only-the-first>, see bug 1985712.
For the other issues, idk what's going on. Try Repair Folder for the Sent folder.
| Reporter | ||
Comment 5•5 months ago
|
||
Ok, thanks anyway. "Repair Folder" did not help. I can delete one or many attachments while still creating a mail, before sending it. I can't when opening a received one. Maybe the solution to bug 1985712 also solves this.
| Reporter | ||
Comment 6•5 months ago
|
||
Hm. No, unfortunately it does not. I have added the patch here and it only fixes the question in the dialog:
https://hg-edge.mozilla.org/comm-central/rev/b3b6af514436
| Assignee | ||
Comment 7•5 months ago
|
||
Please attach one of the messages you can reproduce the issue with, as .eml
| Reporter | ||
Comment 8•5 months ago
|
||
mail sent, saved to eml from sent folders.
| Reporter | ||
Comment 9•5 months ago
|
||
mail saved to eml from sent folders after trying to delete multiple attachments. the contents are no longer displayed in the preview pane or when opening it in a new tab.
| Reporter | ||
Comment 10•5 months ago
|
||
mail received in imap inbox saved to eml. note that the previously mentioned sent folder is a local folder, not an imap folder.
| Reporter | ||
Comment 11•5 months ago
|
||
mail from inbox saved to eml after deleting attachments. its contents are no longer shown, too.
| Reporter | ||
Comment 12•5 months ago
|
||
BTW, when looking at the file revision, I noticed there has been quite some rework:
https://hg-edge.mozilla.org/comm-central/rev/11b1e55cae56266d38dbd16371cfae3bf5febd78
It seems that attachment handling was rewritten...
| Assignee | ||
Comment 13•5 months ago
|
||
Yes it was essentially rewritten in bug 1788159.
Your sample message is OpenPGP signed. We don't allow delete/detach for those. See bug 288700.
The context (and other) menus to delete/detach are properly disabled - but I do notice we're not preventing the Delete key from acting on them.
| Assignee | ||
Comment 14•5 months ago
|
||
| duplicated | ||
Yes it was essentially rewritten in bug 1788159.
Your sample message is OpenPGP signed. We don't allow delete/detach for those. See bug 288700.
The context (and other) menus to delete/detach are properly disabled - but I do notice we're not preventing the Delete key from acting on them.
| Assignee | ||
Comment 15•5 months ago
|
||
Just making hitting Delete on an attachment do nothing.
If I disabled the command, Delete would try next controller => message deleted while the focus was on the attachment.
Updated•5 months ago
|
| Reporter | ||
Comment 16•5 months ago
|
||
Yes, if I disable gpg signing, then deleting works as expected (I have tested this with the patch that fixes the dialog question).
Does this mean that whenever I get a message from someone who answers one of my signed mails, attaching files, even if he/she does not sign it, I will not be able to delete attachments?
| Assignee | ||
Comment 17•5 months ago
|
||
It's only disabled for the actual message being signed and/or encrypted. (As detach will obviously invalidate signature. The special mime structure would also need to be handled differently, as you saw - it's not working.)
| Assignee | ||
Comment 18•5 months ago
|
||
It's only disabled for the actual message being signed and/or encrypted. (As detach will obviously invalidate signature. The special mime structure would also need to be handled differently, as you saw - it's not working.)
Updated•5 months ago
|
| Assignee | ||
Updated•5 months ago
|
Comment 19•5 months ago
|
||
Pushed by edicharry@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/99e3433eb305
Disable Delete key from deleting signed/encrypted emails. r=babolivier
| Assignee | ||
Comment 20•5 months ago
|
||
Comment on attachment 9512506 [details]
Bug 1985610 - Disable Delete key from deleting signed/encrypted emails. r=babolivier
Uplift Approval Request
- Please state case for uplift consideration and ensure bug severity is set: Erroneous functionality
- User impact if declined: Confusion about why delete wouldn't work, when it was supposed to be disabled in the first place.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Daily?: Yes
- Has the fix been verified in Beta?: No
- Needs manual test from QA?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Confined change
- Does the fix cause any migrations to be skipped?: No
- String changes made/needed: none
Comment 21•5 months ago
|
||
Comment on attachment 9512506 [details]
Bug 1985610 - Disable Delete key from deleting signed/encrypted emails. r=babolivier
[Triage Comment]
Approved for beta
Comment 22•4 months ago
|
||
| bugherder uplift | ||
Thunderbird 144.0b2:
https://hg.mozilla.org/releases/comm-beta/rev/15c159521f5b
Description
•