Closed Bug 100687 Opened 24 years ago Closed 18 years ago

nsOutputStream: no write errors (like disk full) returned

Categories

(MailNews Core :: Backend, defect)

x86
Windows NT
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.1alpha

People

(Reporter: bugzilla, Assigned: bugzilla)

References

Details

While trying to fix bug 57902, I discovered that neither write, flush, failed or close return an error when we try to write into a disk out of space. We need a way to test this condition in order to insure that all the data has been correctly written to disk.
Blocks: 57902
Should I mark this for all-plats?
Blocks: 82478
Summary: Cannot detect write errors (disk full) when using nsOutputStream → nsOutputStream: no write errors (like disk full) returned
Depends on: 95969
Blocks: 98076
No longer blocks: 57902
which nsOutputStream are you talking about? I believe that you are using the stream based on nsFileSpec. Since nsFileSpec and friends are obsolete, I am marking as wont-fix. Please update to use nsFileOutputStream.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WONTFIX
I don't suppose there is an easy way to find out who else is using this?
Jean-Francois: can you answer dougt's question so I can clean up this bug?
I am using nsOutputFileStream. I did a lxr search on nsFileOutputStream but cannot find it. I did couple of other search but I cannot figure out which one to use. Doug, can you advise... Anyway, I'll reassign this bug to myself and use it as a reminder to change interface.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
.
Assignee: dougt → ducarroz
Status: REOPENED → NEW
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.1
-> mailnews If this is your use of an interface, then, as I understand it, this is some kind of mailnews bug.
Component: Networking: File → Mail Back End
Product: Browser → MailNews
QA Contact: benc
Not sure if this is related, but my bookmarks file just got hosed after I quit Mozilla 1.1 on Mac OS X 10.2 with only 11k of disk space remaining (the bookmarks file itself was well over 65k). IMO, this should be marked critical because of the serious data loss that can (and does) occur.
comment 8 sounds like bug 86501, which should've been fixed since 2002-06. see also bug 163899 bug 153713
Product: MailNews → Core
Can this be the same reason why no error is returned when a print to file is directed to a directory that is not writable to the user running FireFox (1.5)? I just lost several confirmation pages because of this (I usually print them to file for future reference). I only discovered this after trying to find on of the files. This is on Debian GNU/Linux. I am still looking for a way to reproduce this on Windows but I'll access to a machine with a non-privileged user account to test this.
nsOutputStream is no longer used thanks to bug 33451
Status: ASSIGNED → RESOLVED
Closed: 24 years ago18 years ago
Depends on: 33451
Resolution: --- → FIXED
when printing to a file in a directory not writable by the user still no error is thrown. Should I file a new bug for this? Using Mozilla Firefox 2.0.0.11 on Ubuntu 7.04 "Feisty Fawn".
Product: Core → MailNews Core
Blocks: 999899
No longer blocks: 999899
You need to log in before you can comment on or make changes to this bug.