Closed Bug 529781 Opened 15 years ago Closed 13 years ago

Dragging attachment from Sent message truncates the file when using PGP to encrypt

Categories

(Thunderbird :: General, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: ben, Unassigned)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.4pre) Gecko/20090915 Lightning/1.0pre Thunderbird/3.0b4

If you send an attachment to someone, using PGP, they can successfully drag the attachment out of the message into an explorer window. However, if you go to your Sent folder and look at the message and try and drag the attachment out, it will be truncated (a 10K file dropped to 2 K). The workaround is to double click on the attachment and then save it - this works fine with no truncation.

If you don't use PGP, there is no problem

Reproducible: Always

Steps to Reproduce:
1. Create a text file of approx 10 Kbytes
2. Create a new message to someone for whom you have a PGP key and enable encryption, signing and PGP/Mime
3. Attach the text file to this message
4. Send the message
5. Verify that the recipent can drag the text file onto their desktop and that the size of the file is unchanged
6. Verify that if you drag the text file onto your desktop from the message in the Sent folder, the size of the file is reduced
7. Verify that if you double click on the text file in the message and save it, the size of the file is unchanged
8. Repeat to the same recipient, this time deactivating signature, encryption and PGP/Mime
9. Verify that the problem has disappeared
Actual Results:  
Steps to reproduce contains the detail

Expected Results:  
Steps to reproduce contains the detail

The dragging of the file to the desktop from the Sent message should not have reduced the size of the file
Ben what version of enigmail you use?
Hi Aureliano,

Version 0.97a

Regards
Ben
(In reply to comment #2)
> Hi Aureliano,
> 
> Version 0.97a
> 
> Regards
> Ben
Complete version: see menu-->OpenPGP-->About OpenPGP

it is similar to "Running Enigmail version 1.0 (20091119-0602)"
Here same that WFM (with latest TB build and last enigmail 1.0 (20091119-0602)).

Ben could attach here an email example using above "Add an attachment" link?

Could before try with latest enigmail relase at
http://enigmail.mozdev.org/download/nightly.php ?
Apologies, I wasn't thinking!

 Enigmail version 0.97b (20091105-0557)

I will try again with the latest enigmail release. Watch this space
Attached file An unencrypted mail
Attached file An encrypted email
When I try to install the latest enigmail, I get:

Enigmail 1.0pre could not be installed because it is not compatible with Thunderbird 3.0b4.

I've added two attachments. Don't know how much use they will be, since the encrypted one is ... well .... encrypted!

Regards
Ben
Enigmail 1.0pre works with Thunderbird 1.0 release candidates and recent trunk builds only.

I don't see any relationship to Enigmail here (even if it may look like). Once Enigmail has decrypted a PGP/MIME message it returns the decrypted stream back to Thunderbird, which does with it whatever it's up to. Enigmail is not involved if you save an attachment or drag & drop it to somewhere. 

You might also want to try some S/MIME encrypted message; I'd assume you should obtain the same results.
We recently fixed a drag and dop issue where we had dataloss . I don't have the bug number handy, but it was fixed after b4. can you try in the to be announced rc1 : http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/3.0rc1-candidates/build2/ ?
Whiteboard: dupme
The RC1 crashes most of the time when I try to send the message ... however the one time that it did not crash, it appeared to truncate the message as before.
(In reply to comment #11)
> The RC1 crashes most of the time when I try to send the message ... however the
> one time that it did not crash, it appeared to truncate the message as before.

the crash is due to enigmail not being to date you'll need to have RC1 + enigmail nightly sorry I should have told you.
I had installed the latest enigmail ....!
You wrote: 
> Enigmail 1.0pre could not be installed because it is not compatible with Thunderbird 3.0b4.

but for RC1 you need to have Enigmail 1.0pre, the old version will crash indeed.
That's what I thought I had said!

To make it clear, I installed the latest RC1, then I removed the Enigmail 0.97b (20091105-0557), then I added the latest Enigmail 1.0pre.

I started getting crashes, so I have now reinstalled Thunderbird 3.0b4 and Enigmail 0.97b.

I've spent rather more time on this that I had expected ... so I need to get back to the paying job! (That's *not* to say that I don't really appreciate what you guys are doing. Keep up the good work)
(In reply to comment #15)
> That's what I thought I had said!
> 
> To make it clear, I installed the latest RC1, then I removed the Enigmail 0.97b
> (20091105-0557), then I added the latest Enigmail 1.0pre.
> 
> I started getting crashes, so I have now reinstalled Thunderbird 3.0b4 and
> Enigmail 0.97b.

That's weird. Could you tell me the crash ID? I'd like to see what's going on since I don't expect crashes with Enigmail 1.0pre ...
Sorry, I didn't note it down.

As I said, I've now uninstalled the RC1 and Enigmail 1.0pre - thinking about it, the crash may have been the fact that I also had the Contacts Sidebar 0.8 alpha installed ...
Ben, do you still see this issue?

ludo, do you recall what this is a duplicate to?
Whiteboard: dupme → dupeme
Hi, sorry about the delay in responding.

This appears to have been fixed. Thanks guys!
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
-> WFM. Fixed is used for bugs with known patches.
https://bugzilla.mozilla.org/page.cgi?id=fields.html#resolution
Resolution: FIXED → WORKSFORME
Whiteboard: dupeme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: