FileLink creates a link and attaches a file to the message too if drag'n'drop a file from a network share

NEW
Unassigned

Status

--
major
6 years ago
3 months ago

People

(Reporter: roman.yepishev, Unassigned)

Tracking

15 Branch
x86
Windows 7

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1
Build ID: 20120907073726

Steps to reproduce:

Installed Thunderbird 15.0.1 en_US Win32 on a freshly installed Windows 7 Ultimate English version. Added Hotmail and YouSendIt account. Tried sending a file of 4Mb, was prompted to use FileLink. The file was uploaded to YouSendIt and a link was added to the message. Then I sent the message.


Actual results:

The file was both attached to the message AND a link to YouSendIt (where the file was previously uploaded) was in the message - http://www.youtube.com/watch?v=B4g3Hw3pTa0
The only error in the Error Console was this - Security Error: Content at moz-nullprincipal:{bf02df00-af4a-4431-9020-f40b79e683a3} may not load or link to about:blank.


Expected results:

The file should no longer be attached to the message.
(Reporter)

Updated

6 years ago
OS: Linux → Windows 7
Hardware: x86_64 → x86

Comment 1

6 years ago
Hi,

I have Thunderbird on a vista and a 7 machine and I have the same problem.
The Thunderbird version is 15.0.1 Fr.
Thanks
Hm.

Are either of you able to reproduce this error sending those files to yourself?

Comment 3

6 years ago
I've just tryed and the problem seems to be corrected. Today it works, but wednesday my message contains the joined file and the YouSendIt link.

I'm sorry, I didn't try before posting, but I didn't see any Thunderbird upgrade this week.
(Reporter)

Comment 4

6 years ago
Yes, I sent the file to myself and the file got attached too.
What's interesting is that I can't reproduce this neither on my Ubuntu machine nor on a different Win7 Ultimate VM created for different purposes.

The installation was performed from this URL - http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/15.0.1/win32/en-US/Thunderbird%20Setup%2015.0.1.exe and the MD5 sum matches the one distributed via CDN so I am quite puzzled about what is different about this VM and this installation.
I think I need some debugging information.

Could you please go to your Preferences dialog (Tools > Options on Windows), go to the Advanced pane, and click on "Config Editor" under the "General" tab.

Right click on the list of prefs, and choose New > String.

The (case-sensitive) pref name you want to add is: YouSendIt.logging.console

The (case-sensitive) value you want to give this pref is: All

Then restart Thunderbird. Open up the Error Console (Tools > Error Console).

There might already be stuff in the Error Console. Remove it by clicking "clear" in the Error Console window.

Then try to reproduce your error. Logging information should appear in the Error Console (make sure your Error Console is viewing "All" to see all of the messages).

When you reproduce your problem, do any errors crop up? If so, paste them in here.
Note that in at least one log message, account information might get sent to the log console. This won't be passwords or anything, but it'll be stuff like space remaining, your email address, etc. Please don't paste that in the bug, unless you're comfortable sharing it.
(Reporter)

Comment 7

6 years ago
No, there are no errors. There are the last lines in the log:

2012-09-21 08:42:49	YouSendIt	INFO	findDownloadUrl response = {"name":"Good Song (Roman Yepishev).ogg","id":"70966631","size":"3327625","revision":"1","ownedByStorage":"11348372","createdOn":"2012-09-21T15:42:48","parentid":"21600528","downloadUrl":"/dpi/v1/folder/file/download/U...redacted... w","clickableDownloadUrl":"http://www.yousendit.com/download/T...redactedw"}
Timestamp: 9/21/2012 8:42:53 AM
Warning: Use of attributes' nodeValue attribute is deprecated. Use value instead.
Source File: chrome://messenger/content/messengercompose/MsgComposeCommands.js
Line: 3986
Security Error: Content at moz-nullprincipal:{9dc34abb-c670-4381-a7a1-4544057146eb} may not load or link to about:blank. (repeats twice in the log)

I have to note that when I try uploading the file to Ubuntu One the same issue happens so that does not look like a YouSendIt-specific issue.
Roman:

Hm. Unable to reproduce using Ubuntu, Thunderbird 15.0.1.

Does this problem persist with a particular file? Perhaps Thunderbird is choking on special characters in the filename...

-Mike
(Reporter)

Comment 9

6 years ago
Exactly, can't reproduce this in Ubuntu or on another Windows 7 machine too.
Even sample file from windows 7, Kalimba.mp3 remains attached and it does not look like a bad filename.
Is there any way to get more debug info from the whole FileLink subsystem?
Roman:

Hm. No dice on my Windows 7 machine either.

Can you try reproducing with add-ons disabled?  Help > Restart with add-ons disabled.

-Mike
(Reporter)

Comment 11

6 years ago
Restarted with add-ons disabled - the file linked properly.
Re-enabled the add-ons - the file linked properly too.


And now I can't reproduce the issue even after deleting the thunderbird data from %LOCALAPPDATA% and %APPDATA%. Invalid? There's definitely something wrong but now I can't make it fail.
Spooky. :/ I don't like bugs that we can't reproduce reliably... they freak me out.

Comment 13

6 years ago
The problem must come from the autosave of drafts.
When I load a file via YouSendIt and transmission time exceeds the time of autosave, an email containing the attachment is saved in drafts.
for information, a French user reports a similar problem with U1 account and TB17. See: http://forums.mozfr.org/viewtopic.php?f=4&t=109377
(In reply to Vincent (caméléon) from comment #14)
> for information, a French user reports a similar problem with U1 account and
> TB17. See: http://forums.mozfr.org/viewtopic.php?f=4&t=109377

His problem is solved after disabling draft auto-save all the x minutes. Does it helps to understand how this issue occur?
Another report of this problem with a different workaround:
"I've discovered the source of the problem. If you attach directly from a network share (\\192.168.x.x\blah\abz.jpg), Thunderbird won't remove the attachments from the email message by using Filelink. "

from https://getsatisfaction.com/mozilla_messaging/topics/filelink_bug_uploaded_attachments_arent_removed_from_email

Comment 17

6 years ago
Same problem with TB17, XP SP3.  Still happens with Add-ons disabled.  Don't know enough to understand what "attaching directly from a network share" means.

Comment 18

6 years ago
This bug is also affecting me and I can confirm that it occurs when attaching a file from a network share (a NAS drive in my case). The same file attached from the local hard disk does not cause a problem. However, for my customers this is not a practical workaround so this bug is quite significant for them.

Comment 19

6 years ago
(In reply to Andy from comment #18)
> This bug is also affecting me and I can confirm that it occurs when
> attaching a file from a network share (a NAS drive in my case). The same
> file attached from the local hard disk does not cause a problem. However,
> for my customers this is not a practical workaround so this bug is quite
> significant for them.

I can also confirm this. 
Thunderbird 17.0.6 on Windows 8 x64. 
Dropbox FileLink add-on
Attach a file from a Windows network share. 
Click "Link"
The attachment correctly uploads, the FileLink text is added to the email body, and the attachment icon changes.
But when you send the email, the full attachment is still sent with the email.
I attached by drag-and-drop from Windows Explorer. File was 7.40MB .7z extension.
Server is running Windows Server 2012 Standard.

Attach the same file form a local disk, and it all works as expected.

Comment 20

5 years ago
Same here, TB 17.0.7 on win XP SP3. Filelinking from network source same as described by steve at 13/06/18.

Comment 21

5 years ago
Same problem with TB 24.2.0 on win7 home premium SP1.  Dropbox FileLinked attachment is not removed when attached directly from a network share (NAS), but is removed if attached from a drive letter mapped to the same network share.

Updated

5 years ago
Duplicate of this bug: 975407

Comment 23

4 years ago
so autosave or manual save of a draft is not a necessary step?
Flags: needinfo?(smog1)
Flags: needinfo?(sbriels)
Flags: needinfo?(gorlen)

Comment 24

4 years ago
I had not verified if the files came from the network or hard drive, sorry.
I made new tests and yes, just network files are problematic. A linked file from the hard disk does not pose any problems. I tried the manual and automatic backup from a local file and everything goes well.
Flags: needinfo?(smog1)

Comment 25

4 years ago
sorry, don't have that setup anymore (machine was at my previous employer) so cannot check details. Problem was that attaching files as yousendit or box filelink (dont remember exactly) from a network drive would fail.
Flags: needinfo?(sbriels)

Comment 26

3 years ago
Same problem. TB 38.0.1, Win7 Pro SP1.

The problem occurs only when I drag'n'drop a file from a network share. If the share is mounted as the disc, or when I add a file from network share via menu, the problem does not occur.

So, a workaround is to mount the network share as a drive.

Comment 27

3 years ago
reproduces using nightly build. just drag and drop
Severity: normal → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(gorlen)
Summary: FileLink creates a link and attaches a file to the message too → FileLink creates a link and attaches a file to the message too if drag'n'drop a file from a network share

Comment 28

a year ago
Same problem here; Win 7, Thunderbird 52.4.0, DL for FileFink 0.17.2.

Resolve this old issue, please.

Comment 29

a year ago
(In reply to Aleksey from comment #26)
> Same problem. TB 38.0.1, Win7 Pro SP1.
> 
> The problem occurs only when I drag'n'drop a file from a network share. If
> the share is mounted as the disc, or when I add a file from network share
> via menu, the problem does not occur.
> 
> So, a workaround is to mount the network share as a drive.

Yes I know about this workaround. But in my case TB is used by lot of differents users, using lot of differents shared folders, it's not possible to mount all of them as a netowrk share. I use it punctually.

Comment 30

3 months ago
Same problem on thunderbird 60, windows 10.
I think is a duplicate of bug 1051800
You need to log in before you can comment on or make changes to this bug.