Open Bug 927640 Opened 11 years ago Updated 2 years ago

Uncaught Exception: "File > Save As..." fails for attached message.eml opened in its own window

Categories

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

17 Branch

Tracking

(Not tracked)

People

(Reporter: john, Unassigned)

References

(Blocks 1 open bug)

Details

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
You need to log in before you can comment on or make changes to this bug.