Closed Bug 510173 Opened 17 years ago Closed 16 years ago

Collection isn't actually removed when you delete it

Categories

(addons.mozilla.org Graveyard :: Collections, defect, P2)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: nico.nelson-fodpsfst, Assigned: wenzel)

References

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 I tried to delete an abandoned collection. Here is the address: https://addons.mozilla.org/ja/firefox/collection/d63b9b73-2c34-f892-8d18-4117859ae7cc The page is still visible after I selected delete. Please fix the problem and help me to delete this page. Thank you. Reproducible: Didn't try
I tried reproducing this on preview and on my dev copy but I couldn't. However, I can confirm that the collection in question still shows up, and it doesn't seem to vanish when I try to delete it. I also tried adding other users to the collection and it wouldn't save that, so it might already be deleted but cached. If that's the case, a) it'll vanish shortly and b) we should use the cache invalidation framework for collections.
I deleted it about 1-2 weeks ago. At least 1 week is passed. Does the cache keep so long? I deleted another collection and the effect is instant so something is wrong on the deletion process which causes the above bug. Couldn't any dev which has the permissions to manually delete it from the database?
I think I may have reproduced this problem; it seems any automatically generated collection created by Add-on Collector add-on for Firefox with the Auto-publisher feature can't be deleted. Firefox allows clicking the final Delete Collection button, but then it simply redirects to the main collections page without removing the collection. These three collections were generated by the Auto-publisher, and do not delete properly: https://addons.mozilla.org/en-US/firefox/collection/938a860f-30bc-9d72-9c93-0112aa20b106 https://addons.mozilla.org/en-US/firefox/collection/6be82032-799f-4a93-2c73-3c68fc16b360 https://addons.mozilla.org/en-US/firefox/collection/8c2b8eb3-c5af-4f4a-f682-255b966d1cd1 I also manually created some collections (via https://addons.mozilla.org/en-US/firefox/collections/add), but they were all successfully deleted. I don't know if the originally reported collection was created with the Add-on Collector Auto-publisher; if not, it may be a seperate bug altogether.
Sorry to say but it's really ridiculous. I have been waiting for over three months patiently. Yes it's more than three months but no one cares to press a button manually to delete that collection: https://addons.mozilla.org/ja/firefox/collection/d63b9b73-2c34-f892-8d18-4117859ae7cc It's still alive. It hasn't gone away. Does Mozilla Foundation really care about people privacy? Come on guys, please help. Please, anyone who has access to the server, please kindly do me a small favour to delete this page. Thank you very much. (In reply to comment #3) No, the collection isn't created by Collector Auto-publisher. It's created via the webpage. There are at least 2 bugs which affect the deletion process so it fails sometimes. Perhaps Mozilla should add a checking process to make sure the deleted page is really deleted. If not delete it again.
Does the bug occur if it is a private collection?
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Priority: -- → P3
Hardware: x86 → All
Target Milestone: --- → 5.4
Hey wenzel, can you write some SQL to delete Nelson's collection in this release and then we can look into the larger problem in a later release?
Assignee: nobody → fwenzel
Yup, will do.
Apparently, someone added a foreign key constraint referring to `stats_addons_collections_counts` and did not bother resolving it when a collection is deleted. Actually, there are even more: stats_collections and stats_collections_counts as well. Is it fine when I delete all associated stats when removing a collection? If so, I'll make a patch.
Since this affects all collections, -> major.
Severity: normal → major
Priority: P3 → P2
Attached patch Patch, rev. 1 — — Splinter Review
Here you go: By also deleting the associated stats entries, the foreign key conflicts are resolved. I'll also CC fligtar, so we are aware of the global stats impact this might have.
Attachment #414492 - Flags: review?(clouserw)
Attachment #414492 - Flags: review?(fligtar)
Status: NEW → ASSIGNED
Comment on attachment 414492 [details] [diff] [review] Patch, rev. 1 Thanks
Attachment #414492 - Flags: review?(clouserw) → review+
(In reply to comment #11) > wfm Fligtar is boycotting the review flags these days
Comment on attachment 414492 [details] [diff] [review] Patch, rev. 1 editbug privileges to the rescue
Attachment #414492 - Flags: review?(fligtar) → review+
(In reply to comment #14) > (From update of attachment 414492 [details] [diff] [review]) > editbug privileges to the rescue uhm, that didn't work as intended. meh. Anyhow: r56850 and r56851.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: push-needed
Resolution: --- → FIXED
Hrm, I hope this isn't caching (guess I'll know for certain in a little while, huh?), but I still can't delete three of my collections. Here's a screencast: http://screencast.com/t/NGU5YjZiZmY
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
That regressed in bug 509078. I'll poke jbalogh.
Depends on: 509078
Summary: Collection doesn't actually removed when you delete it → Collection isn't actually removed when you delete it
Jeff says, this is fixed now. Please re-check on preview, Stephen! :)
Status: REOPENED → RESOLVED
Closed: 17 years ago → 16 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: