Closed
Bug 509142
Opened 16 years ago
Closed 16 years ago
Regression: Can not delete pending add-on file so that it can be replaced with a newer file.
Categories
(addons.mozilla.org Graveyard :: Developer Pages, defect)
addons.mozilla.org Graveyard
Developer Pages
Tracking
(Not tracked)
VERIFIED
FIXED
5.0.9
People
(Reporter: Ken, Assigned: rjwalsh)
References
()
Details
(Keywords: regression)
Attachments
(1 file)
648 bytes,
patch
|
clouserw
:
review+
|
Details | Diff | Splinter Review |
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:
I tried to delete an add-on file for one of my pending add-ons so that I could replace it with a new version (adding a chrome.manifest to theme to make the new validator happy). I delete the file in question and click on "Update Versions" and when page reloads file is still there. This was not an issue a few days ago.
Reproducible: Always
Keywords: regression
It appears that the file was getting deleted, but the reference to it was still existing after the update. It was a little confusing.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
I can't figure out what is going on, but it is really confusing. Something isn't working right. The file doesn't exist if you click on the link: https://addons.mozilla.org/en-US/firefox/downloads/file/60984/classic_compact-3.2.2-fx.jar
But it still exists on the update list at: https://addons.mozilla.org/en-US/developers/versions/edit/75326
And the add-on validator is supposedly validating it. This is really weird.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 4•16 years ago
|
||
I can confirm this. Looks like a FK constraint on the test_results table.
SQL Error: 1451: Cannot delete or update a parent row: a foreign key constraint fails (`c_remora/test_results`, CONSTRAINT `test_results_ibfk_1` FOREIGN KEY (`file_id`) REFERENCES `files` (`id`))
SQL Error: 1451: Cannot delete or update a parent row: a foreign key constraint fails (`c_remora/files`, CONSTRAINT `files_ibfk_1` FOREIGN KEY (`version_id`) REFERENCES `versions` (`id`))
To reproduce:
1) Go to an add-on in the dev tools
2) click versions and files
3) click the remove button
4) confirm the removal
I'd like to get this in 5.0.9.
Assignee: nobody → rjbuild1088
Target Milestone: --- → 5.0.9
Assignee | ||
Comment 5•16 years ago
|
||
Attachment #393794 -
Flags: review?(clouserw)
Updated•16 years ago
|
Attachment #393794 -
Flags: review?(clouserw) → review+
Assignee | ||
Comment 6•16 years ago
|
||
Fixed in r49039
Status: NEW → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
Comment 7•16 years ago
|
||
Verified FIXED on https://preview.addons.mozilla.org/en-US/developers/versions/delete/70533.
Status: RESOLVED → VERIFIED
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•