Closed Bug 468754 Opened 16 years ago Closed 11 years ago

getItemIdForGUID ignores anno name

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: hello, Assigned: wesongathedeveloper)

References

Details

(Whiteboard: [weave][good first bug])

Attachments

(1 file)

The mDBGetItemIdForGUID SQL statement:

http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/src/nsNavBookmarks.cpp#295

Does not use the guid anno name ("placesInternal/GUID").  Seems to me this could return other items which have a different anno with the same value.

Of course, that is unlikely, but possible given some hypothetical extension that saves e.g., "myext/related" with the value being a related GUID.
Whiteboard: [weave][good first bug]
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
Blocks: 554414
Attached patch PatchSplinter Review
Assignee: nobody → wesongathedeveloper
Status: NEW → ASSIGNED
Attachment #451660 - Flags: review?(mak77)
Comment on attachment 451660 [details] [diff] [review]
Patch

let me see if I can compose a test for this...
Attachment #451660 - Flags: review?(mak77)
you should use the GUID_ANNO macro. Yes, the test should not be too hard to do.
Flags: in-testsuite?
this API died quite some time ago
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: