Closed
Bug 725597
Opened 13 years ago
Closed 12 years ago
SafeBrowsing fails to update persistent PrefixSet on Windows
Categories
(Toolkit :: Safe Browsing, defect)
Tracking
()
RESOLVED
FIXED
Firefox 17
People
(Reporter: gcp, Assigned: gcp)
Details
Attachments
(2 files)
(deleted),
patch
|
dcamp
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
akeybl
:
approval-mozilla-aurora+
mfinkle
:
approval-mozilla-central+
|
Details | Diff | Splinter Review |
What seems to be happening is that upon the first update, all files are created normally. Upon the second update, saving the sbtore files succeeds but saving the pset files doesn't. The data in memory *is* updated, though.
When the user restarts the browser, our corruption detection will see that the sbstore data is not in sync with the pset data, and blow away the database.
Bugs are:
a) prefixSet->WriteFile(); in Classifier.cpp doesn't have its return value checked
b) Windows doesn't allow us to rename into the file (SafeOutputStream) while we have an open read handle to it. This is a known problem that was fixed in HashStore.cpp but missed in LookupCache.cpp
c) I think its possible to make a testcase for this, so we should probably do that.
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → gpascutto
Assignee | ||
Comment 1•13 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=0ad1f7d95261
Adding a test for this specific failure seems tricky. I'd need to shut down the entire classifier system, afaik. Not sure how to achieve that.
Attachment #595825 -
Flags: review?(dcamp)
Updated•13 years ago
|
Attachment #595825 -
Flags: review?(dcamp) → review+
Assignee | ||
Comment 2•13 years ago
|
||
Comment 3•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
Assignee | ||
Comment 4•13 years ago
|
||
[Approval Request Comment]
Backout due to bug 744993:
a01cf079ee0b Bug 730247
1a6d008acb4f Bug 729928
f8bf3795b851 Bug 729640
35bf0d62cc30 Bug 726002
a010dcf1a973 Bug 726002
e9291f227d63 Bug 725597
db52b4916cde Bug 673470
173f90d397a8 Bug 673470
Attachment #616610 -
Flags: approval-mozilla-central?
Attachment #616610 -
Flags: approval-mozilla-aurora?
Updated•13 years ago
|
Attachment #616610 -
Flags: approval-mozilla-central? → approval-mozilla-central+
Assignee | ||
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•13 years ago
|
Attachment #616610 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora-
Comment 7•13 years ago
|
||
Comment on attachment 616610 [details] [diff] [review]
Patch. Backout
Sorry - thought this bug was reopened because the backout was backed out. My mistake. Approved for Aurora 13 (or Beta 13 if the merge occurs before we land).
Attachment #616610 -
Flags: approval-mozilla-aurora- → approval-mozilla-aurora+
Assignee | ||
Comment 8•13 years ago
|
||
Assignee | ||
Comment 9•12 years ago
|
||
Relanding after fixes in bug 673470 to fix bug 744993.
https://hg.mozilla.org/integration/mozilla-inbound/rev/e63466828f6b
Comment 10•12 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 13 years ago → 12 years ago
Resolution: --- → FIXED
Target Milestone: Firefox 13 → Firefox 17
Updated•11 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•