Closed
Bug 361865
Opened 19 years ago
Closed 19 years ago
OutputStream should be closed after writing new entries to Junklog.html
Categories
(MailNews Core :: Backend, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 231923
People
(Reporter: whimboo, Unassigned)
References
Details
version 2 beta 1 (20061125)
The junk mail controls don't close the file junklog.html after writing a new entry. So you don't have access to that file from the file system and other Thunderbird dialogs like junk mail log. Thunderbird blocks itself.
Before any message is marked as junk I can delete the junklog.html manually on the file system. Afterwards I cannot get any access to it until I close Thunderbird. The file is blocked.
Even Thunderbird isn't able to delete the log by pressing the button "Clear log" inside the "Junk Mail Log" dialog. Doing that shows following Exception inside the Error Console:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.remove]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: chrome://messenger/content/preferences/junkLog.js :: clearLog :: line 29" data: no]
| Reporter | ||
Comment 1•19 years ago
|
||
The OutputStream in function LogJunkString which we use to write new entries to junklog.html isn't closed after writing.
http://lxr.mozilla.org/seamonkey/source/mailnews/base/src/nsSpamSettings.cpp#585
=> Mailnews
Component: General → MailNews: Backend
Product: Thunderbird → Core
Summary: Junklog.html should be closed after writing new entry → OutputStream should be closed after writing new entries to Junklog.html
| Reporter | ||
Updated•19 years ago
|
Assignee: mscott → nobody
QA Contact: general → backend
| Reporter | ||
Comment 2•19 years ago
|
||
*** Bug 356835 has been marked as a duplicate of this bug. ***
Comment 3•19 years ago
|
||
why does releasing the reference not close it?
| Reporter | ||
Comment 4•19 years ago
|
||
(In reply to comment #3)
> why does releasing the reference not close it?
It was just an idea. I don't know the source as good as you.
Comment 5•19 years ago
|
||
Could be related/duplicate to bug 231923 ?
| Reporter | ||
Updated•19 years ago
|
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
| Reporter | ||
Comment 8•18 years ago
|
||
Is this really a dupe or should we add this bug as depends of bug 231923?
| Assignee | ||
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
•