Closed Bug 723497 Opened 9 years ago Closed 8 years ago
saving message to disk fails silently, fails to report file naming convention violation error
User Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0 Build ID: 20111104165243 Steps to reproduce: Saving a message on a network share (or a local folder with insufficient space/permissions) does not result in an error message dpisplayed to the user. The error is not related to networking (in our case the CIFS kernel module reports the file naming convention violation error correctly), but to Thundbird not properly handling the error. Attached is a patch which fixes the behaviour for Thunderbird 10 (lower versions should work, too). Actual results: The bug can be reproduced in the following way: * Open Thunderbird * New E-Mail * Subject "Re: Test" (the double dot ist important!) * Save as Draft * Change to "Drafts" * Choose "Save as" * Change to network path * Save *.eml file (don't remove double dot's) * Thunderbird shows no error, but did not save the message. The result is an empty file with the filename "Re". Bug 346003 may be related Expected results: * Open Thunderbird * New E-Mail * Subject "Re: Test" (the double dot ist important!) * Save as Draft * Change to "Drafts" * Choose "Save as" * Change to network path * Save *.eml file (don't remove double dot's) * Thunderbird shows an error "Message could not be saved!"
Florian, thx for the patch! Please ask bienvenu to review it. https://developer.mozilla.org/En/Developer_Guide/How_to_Submit_a_Patch#Getting_the_patch_reviewed
Assignee: nobody → contact
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Summary: saving message to disk fails silently → saving message to disk fails silently, fails to report file naming convention violation error
Thanks for the pointer! I am currently building trunk and will submit a patch against it afterwards (probably tomorrow).
Florian: any update?
Hi Magnus, sorry for the late reply - i will definitely look into it next week and keep you updated.
Comment on attachment 593817 [details] [diff] [review] thunderbird-error-message-if-save-as-failed.patch Sorry for the late reply. The issue still exists in TB 17. An empty file is created and no user visible error is thrown.
Comment on attachment 593817 [details] [diff] [review] thunderbird-error-message-if-save-as-failed.patch looks reasonable, but you probably should use NS_ENSURE_SUCCESS(rv, rv); I haven't had a chance to run the xpcshell tests - have you done that?
Attachment #593817 - Flags: review?(mozilla) → review+
Comment on attachment 593817 [details] [diff] [review] thunderbird-error-message-if-save-as-failed.patch and for checkin, you should attach a hg diff, to make it easier for someone to land this for you.
Tested today, applied against current trunk. Please let me know if you need anything else.
OS: Linux → All
Hardware: x86 → All
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 21.0
You need to log in before you can comment on or make changes to this bug.