Red Hat Bugzilla – Bug 466469
Firefox 3 silently fails to write downloaded files
Last modified: 2014-01-17 07:36:42 EST
Created attachment 320012 [details]
Proposed patch to fix the issue
Description of problem:
When saving a file to a non user writable directory, Firefox 3 give no notification to the user but an exception error in the log:
Version-Release number of selected component (if applicable):
The problem is also still present in upstream built.
Steps to Reproduce:
1. Download a file
2. Use "Save to disk" instead of "Open with"
3. Select a destination directory that is not writable to the user
There is no notification of failure to the user but a message in the console (if FF3 was started from a terminal):
*** exception in validateLeafName: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: file:///usr/lib/xulrunner-1.9/components/nsHelperAppDlg.js :: anonymous :: line 271" data: no]
A dialog box notifying that the file was not saved.
The problem is also present upstream and I did not find a bug report about this on mozilla.org.
The fix is actually fairly simple, in "nsHelperAppDlg.js", the call to aLocalFile.create() must be protected by a try/catch.
The proposed patch attached gives the expected result. Note: I can open a BZ upstream to get the fix upstream too if that helps, just let me know.
Please file a bug report in the the upstream bugzilla located at http://bugzilla.mozilla.org in the particular component. Given that you are providing the patch, it would be probably really better, if you were in the direct contact with upstream.
Once you've filed your bug report to the upstream bugzilla, if you paste the new bug URL here, Red Hat will continue to track the issue in the centralized upstream bug tracker, and will review any bug fixes that become available for consideration in future updates.
Setting status to NEEDINFO, and awaiting upstream bug report URL for tracking.
Thanks in advance.
Bugzilla upstream created - I've also updated the external bug field, copying hthe URL here for completion:
Closing as UPSTREAM.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update