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)

x86
Windows XP
defect
Not set
normal

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]
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
Assignee: mscott → nobody
QA Contact: general → backend
*** Bug 356835 has been marked as a duplicate of this bug. ***
why does releasing the reference not close it?
(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.
Could be related/duplicate to bug 231923 ?
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
No longer blocks: 303545
Is this really a dupe or should we add this bug as depends of bug 231923?
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.