Closed Bug 927640 Opened 12 years ago Closed 11 months ago

Uncaught Exception: "File > Save As..." fails when opening attached .eml file, also when opening from compose window

Categories

(Thunderbird :: Mail Window Front End, defect, P4)

17 Branch

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1402550

People

(Reporter: john, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: reproducible, Whiteboard: [fixed by bug 1402550])

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130912 Firefox/17.0 (Nightly/Aurora) Build ID: 20130913055614 Steps to reproduce: To reproduce: 1. save a message to a .eml file, then attach and send that message 2. double-click the .eml attachment 3 [review]. try to File->Save As->File or Ctrl-S to save the message as a file Actual results: Nothing (no file selection window, no sign of file read/writes recorded in procmon on Windows platform--similar results on Linux platform) Expected results: Should have given a dialog box to select where to save the message.
Component: Untriaged → Mail Window Front End
Summary: Cannot save a .eml attached message from the message view window → Cannot save (save as) a .eml attached message from the message view window

Bugs which receive duplicates should be confirmed where applicable...
Also, we should strive to carry over helpful info from duplicates...

Severity: normal → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Priority: -- → P4
Hardware: x86_64 → All
Summary: Cannot save (save as) a .eml attached message from the message view window → Uncaught Exception: "File > Save As..." fails for attached message.eml opened in its own window

Here's some fresh STR and more info on the uncaught exception which occurs when this happens.

(In reply to Kai Engert (:KaiE:) from bug 1675727 comment #0)

STR:

Send a plain message (A) to yourself.
Receive the message, use forward as attachment, send it to yourself (B).
Receive message B, which has A attached.
Double click the attached message A, which opens it in its own window.
In the new window, use "CTRL-S" or "file save as file".

Expected: Get a prompt to enter the filename, then get a file on disk with the saved message.

Actual behavior: no prompt, nothing is saved, error console shows two exceptions:

Uncaught Exception
​
columnNumber: 0
​
data: null
​
filename: "chrome://messenger/content/mailCommands.js"
​
lineNumber: 413
​
location: XPCWrappedNative_NoHelper { QueryInterface: QueryInterface(), filename: Getter, name: Getter, … }
​
message: "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIMsgMessageService.messageURIToMsgHdr]"
​
name: "NS_ERROR_FAILURE"
​
result: 2147500037
​
stack: "SaveAsFile@chrome://messenger/content/mailCommands.js:413:55\nMsgSaveAsFile@chrome://messenger/content/mailWindowOverlay.js:2219:13\ndoCommand@chrome://messenger/content/messageWindow.js:1365:9\ngoDoCommand@chrome://global/content/globalOverlay.js:101:18\noncommand@chrome://messenger/content/messageWindow.xhtml:1:12\n"
​
<prototype>: ExceptionPrototype { toString: toString(), name: Getter, message: Getter, … }
mailCommands.js:413

An error occurred executing the cmd_saveAsFile command: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIMsgMessageService.messageURIToMsgHdr]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://messenger/content/mailCommands.js :: SaveAsFile :: line 413"  data: no] globalOverlay.js:104

Update 2024 with TB 115:
When you open an attached .eml file in a tab or in a stand-alone window, "File > Save As > File" and "File > Save As > Template" both fail.

The same issue exists when you open the .eml file not from an attachment, but open a saved .eml file from the OS desktop or an OS folder.

@Chrizilla: You've been doing some triaging around old bugs, can you look whether there are move more bugs in this area. Here's a list to start with: https://mzl.la/4faweUf

Flags: needinfo?(chrizilla)
Summary: Uncaught Exception: "File > Save As..." fails for attached message.eml opened in its own window → Uncaught Exception: "File > Save As..." fails for attached .eml file or save .eml file opened from OS folder

The behavior described in this bug can also be reproduced in Compose mode on the Macintosh port:

  1. Attach a file with a .eml extension.
  2. Double-click on the attachment at the bottom of the compose window.
  3. Attempt to save the file using SaveAs->File

When you try to save the file from the resulting OS window, a rather opaque error message appears:

Alert!
Unable to save the message. Please check your file
and try again later.

(In reply to Francesco from comment #4)

Update 2024 with TB 115:
When you open an attached .eml file in a tab or in a stand-alone window, "File > Save As > File" and "File > Save As > Template" both fail.
The same issue exists when you open the .eml file not from an attachment, but open a saved .eml file from the OS desktop or an OS folder.

can confirm in TB 115.6.1 @ win10-64bit

@Chrizilla: You've been doing some triaging around old bugs, can you look whether there are move bugs in this area. Here's a list to start with: https://mzl.la/4faweUf

Sorry, I don't understand what you mean by "move bugs" ?
Do you want me to search for dupes of this bug ?

Keywords: reproducible

Off-topic: "move bugs" was a typo. Corrected above. Yes, recently you were looking into bug 628098 and related bugs, so I was just thinking that the issue here might also have duplicates.

I was just thinking that the issue here might also have duplicates.

Yes.

scope: both .eml attachments AND external .eml files scope: only external .eml files
bug 927640 filed in 2013 bug 1402550 filed in 2017
+ 5 duplicates: bug 634860, bug 1557287, bug 1625447, bug 1708736, bug 1717573
+ 1 see also: bug 1708736
IMO all 7 bugs (1+5+1) in this column should be duped directly to bug 927640
Flags: needinfo?(chrizilla) → needinfo?(fo)

image content:
pop-up alert in TB 115.6.1 @ win10-64bit: Unable to save the message. Please check your file name and try again later.

IMO all 7 bugs (1+5+1) in this column should be duped directly to bug 927640

Nice job. Given that bug 1402550 has a patch and that the older bug 634860 got duped to 1402550, you would cause less noise by only duping 927640 to bug 1402550 and consider it as the "master bug" for that issue.

Flags: needinfo?(fo)

@Francesco: Good points. I overlooked the patch in bug 1402550. Yes, progress trumps submission date and you are also right about bug 634860 being the oldest one.

But the problem is that only bug 927640 also covers .eml attachments. All other bugs only cover external .eml files.
Therefore the issue of .eml attachments would be lost if duped to bug 1402550. So what to do ?

Well, I added the "or save .eml file opened from OS folder" to the summary not knowing about bug 1402550. I've undone this now, so we leave both bugs open. They may have the same fix.

See Also: → 1402550
Summary: Uncaught Exception: "File > Save As..." fails for attached .eml file or save .eml file opened from OS folder → Uncaught Exception: "File > Save As..." fails when opening attached .eml file

Agreed. Wayne Mery said we should only deduplicate bugs if we "know for a fact that they use the same code".
Otherwise we should keep both bugs open, but connect them via see also or dependencies.

Depends on: 1402550
Summary: Uncaught Exception: "File > Save As..." fails when opening attached .eml file → Uncaught Exception: "File > Save As..." fails when opening attached .eml file, also when opening from compose window

Tested with 132.0a1 (2024-09-06): .eml files attached in the compose window can now be opened and saved.

Fixed by bug 1402550.

Status: NEW → RESOLVED
Closed: 11 months ago
Duplicate of bug: 1402550
Resolution: --- → DUPLICATE
Whiteboard: [fixed by bug 1402550]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: