Closed
Bug 151699
Opened 23 years ago
Closed 23 years ago
moving folders containing more mail than free disk space DELETES that mail
Categories
(MailNews Core :: Backend, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.0.1
People
(Reporter: ralf, Assigned: naving)
References
Details
(Keywords: dataloss, Whiteboard: [adt2 RTM] [ETA 06/26])
Attachments
(1 file, 1 obsolete file)
796 bytes,
patch
|
cavin
:
review+
Bienvenu
:
superreview+
jud
:
approval+
|
Details | Diff | Splinter Review |
This applies to mail stored locally such as when using POP.
To replicate: Fill your hard disk up and then drag a folder with mail to a
different location. If that folder contains more mail than you have available
hard disk space, data will be lost. This is irrecoverable as far as I can tell
(and I did a LOT of looking around to recover my mail..)
I've tried this only on my Win2K machine, and have reproduced it both under
version 1.0 and 0.9. This may be the cause for the following bug report that
hasn't been replicated:
http://bugzilla.mozilla.org/show_bug.cgi?id=138104
I initially thought that it had to do with filters, but I suspect that it's just
plain folder moving.
Friendly regards,
Ralf
PS I'm not sure if this is a 'Mail Database' component, but that seemed the most
likely choice.
Comment 1•23 years ago
|
||
the mail database is for the header summary info, not the local mailbox folders.
I would think that we should just be using the file system rename function to
move the folder(s) and allow the OS to handle this - if we're not doing that,
then we have to worry about failure cases in the folder moving code.
-> Cavin
Assignee: bienvenu → cavin
Status: UNCONFIRMED → NEW
Component: Mail Database → Mail Back End
Ever confirmed: true
Assignee | ||
Comment 2•23 years ago
|
||
I have worked on drag and drop of folders. taking.
Assignee: cavin → naving
Assignee | ||
Comment 3•23 years ago
|
||
The fix is to return if the copying the folder or its summary file fails.
Cavin, David, Can I get reviews ? thx.
Assignee | ||
Comment 4•23 years ago
|
||
The fix is to return if the copying the folder or its summary file fails.
Cavin, David, Can I get reviews ? thx.
Attachment #88998 -
Attachment is obsolete: true
Assignee | ||
Updated•23 years ago
|
Comment 5•23 years ago
|
||
Comment on attachment 88999 [details] [diff] [review]
proposed fix (right patch)
sr=bienvenu - did you try it to see what happens?
Attachment #88999 -
Flags: superreview+
Assignee | ||
Comment 6•23 years ago
|
||
yes, I simulated in the debugger and we get out of copying/moving folder if the
code fails there, as expected.
Comment 7•23 years ago
|
||
Comment on attachment 88999 [details] [diff] [review]
proposed fix (right patch)
r=cavin. Good one.
Attachment #88999 -
Flags: review+
Assignee | ||
Comment 8•23 years ago
|
||
fixed on trunk. We can take this for branch because it is a dataloss bug and the
fix is fairly low risk.
Reporter | ||
Comment 9•23 years ago
|
||
From what I observed, the folder structure gets constructed first and
the messages are subsequently moved across. When you propose:
"The fix is to return if the copying the folder or its summary file fails."
does that mean that you do an initial test but not subsequently for
the later messages, i.e. if there is not enough space for the
folders it will stop, but not testing if there is not enough space
for the messages? Or does that comment refer to the folder, summary
file _and content of folder_, in which case it returns rather than
'cleaning up' the older data. Is there an indicator of why it would
have failed, and would it clean up the folders that have been moved
so far already? In other words, is the folder move operation atomic?
Ralf
Assignee | ||
Comment 10•23 years ago
|
||
We don't copy msg by msg we just copy the folder and it's db(summary file).
No we don't perform any clean-up. you can file a separate bug for that.
Updated•23 years ago
|
Updated•23 years ago
|
Attachment #88999 -
Flags: approval+
Comment 12•23 years ago
|
||
please checkin to the 1.0.1 branch. once there, remove the "mozilla1.0.1+"
keyword and add the "fixed1.0.1" keyword.
Keywords: mozilla1.0.1 → mozilla1.0.1+
Comment 14•23 years ago
|
||
Tested this bug on WinNT machine in one of the labs. Marking this verified since
I verified this bug on trunk. Also changing the keyword from fixed1.0.1.
I also saw that we don't clean up the messages when we know we have run out of
disk space. But we do not loose the folder and messages from the source where we
were trying to move it from.
Status: RESOLVED → VERIFIED
Keywords: fixed1.0.1 → verified1.0.1
Updated•20 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•