Closed Bug 393472 Opened 18 years ago Closed 18 years ago

EXPIRE_NEVER annos can be orphaned when moz_places records are deleted

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 3 alpha8

People

(Reporter: moco, Assigned: dietrich)

Details

Attachments

(1 file, 1 obsolete file)

EXPIRE_NEVER annos can be orphaned when moz_places records are deleted spun off of bug #393223 dietrich has a patch
Attached patch fix (obsolete) — Splinter Review
Attachment #277971 - Flags: review?(sspitzer)
Comment on attachment 277971 [details] [diff] [review] fix two questions: 1) a.expires, shouldn't that be a.expiration? I would think that with your change ExpireHistoryParanoid() is going to fail. (does your test case test it?) 2) "LEFT JOIN moz_annos a ON h.id = a.place_id " could just be: "JOIN moz_annos a ON h.id = a.place_id "
Attachment #277971 - Flags: review?(sspitzer)
Attached patch fix v2Splinter Review
ok, those are corrected. there was a lot of error-swallowing in that code due to the need to not block shutdown activity, etc, and it was masking these problems. i've added warnings for each instance so that failures for these methods will be visible from now on.
Attachment #277971 - Attachment is obsolete: true
Attachment #278071 - Flags: review?(sspitzer)
Comment on attachment 278071 [details] [diff] [review] fix v2 r=sspitzer, thanks dietrich! note, it looks like you've included Marco's patch for bug #387573
Attachment #278071 - Flags: review?(sspitzer) → review+
Checking in toolkit/components/places/src/nsNavHistoryExpire.cpp; /cvsroot/mozilla/toolkit/components/places/src/nsNavHistoryExpire.cpp,v <-- nsNavHistoryExpire.cpp new revision: 1.15; previous revision: 1.14 done Checking in toolkit/components/places/tests/unit/test_expiration.js; /cvsroot/mozilla/toolkit/components/places/tests/unit/test_expiration.js,v <-- test_expiration.js new revision: 1.6; previous revision: 1.5 done
Status: NEW → RESOLVED
Closed: 18 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Verified: no longer able to expire records tied to EXPIRE_NEVER annotations.
Status: RESOLVED → VERIFIED
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h". In Thunderbird 3.0b, you do that as follows: Tools | Message Filters Make sure the correct account is selected. Click "New" Conditions: Body contains places-to-b-and-h Change the action to "Delete Message". Select "Manually Run" from the dropdown at the top. Click OK. Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter. Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: