Closed Bug 487014 Opened 17 years ago Closed 17 years ago

Inactive addons can still be installed from the versions page

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: titusstahl+bugzilla, Assigned: wenzel)

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 Build Identifier: Addons which are marked inactive using the new developer tools, can still be accessed and installed from their versions page Reproducible: Always Steps to Reproduce: 1. Upload addon 2. Make addon inactive via new developer tools 3. Go to versions page of addon Actual Results: Addon is displayed and acessible Expected Results: Addon should not be displayed, should not be installable
Target Milestone: --- → 5.0.5
Do you have an example add-on this is happening for?
I've deleted my own addon in the meantime, but it works with any deactivated addon: for example https://addons.mozilla.org/en-US/firefox/addon/11321 -> not found https://addons.mozilla.org/en-US/firefox/addons/versions/11321 -> can be installed (works also for 11320 and so on, you just have to find any deactivated addon)
Assignee: nobody → fwenzel
Priority: -- → P2
Yes, I can confirm this. Thanks for the good catch! I'll fix it.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: Developer Pages → Public Pages
OS: Windows XP → All
QA Contact: developers → web-ui
Hardware: x86 → All
Attached patch Patch, rev. 1Splinter Review
Good Friday patch goodness.
Attachment #372029 - Flags: review?(clouserw)
Status: NEW → ASSIGNED
Attachment #372029 - Flags: review?(clouserw) → review+
Comment on attachment 372029 [details] [diff] [review] Patch, rev. 1 Test case plz. :)
(In reply to comment #5) > Test case plz. :) Do you still need one? Comment 2 has one, though that may not be part of your DB snapshot yet if it's older. Otherwise, any "inactive=1" add-on will do.
I mean a unit test. Not sure we have a disabled add-on in the test data - might have to add one.
Attached patch TestcaseSplinter Review
There you go.
Attachment #372604 - Flags: review?(clouserw)
Comment on attachment 372604 [details] [diff] [review] Testcase thanks
Attachment #372604 - Flags: review?(clouserw) → review+
r24484 (code) and r24485 (test), thanks.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: push-needed
Resolution: --- → FIXED
Verified FIXED; I deleted files from my test add-on (9331), and then tried to access its all-versions page: https://preview.addons.mozilla.org/en-US/firefox/addons/versions/9331 Got "Add-on not found!"
Status: RESOLVED → VERIFIED
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: