Closed Bug 460509 Opened 16 years ago Closed 16 years ago

Deleting a product with bugs fails because it hasn't loaded Bugzilla::Bug

Categories

(Bugzilla :: Administration, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

(Keywords: regression)

Attachments

(1 file)

When you try to delete a product, you get an error about "Can't locate 'new' in package 'Bugzilla::Bug'". This is because there's a missing require statement inside of remove_from_db.
Attached patch v1Splinter Review
Assignee: administration → mkanat
Status: NEW → ASSIGNED
Attachment #343592 - Flags: review?(LpSolit)
I cannot reproduce, at least using editproducts.cgi. Do you mean using e.g. webservices?
Anyway, the code you are pointing to only exists in 3.3. In 3.2, this code is in editproducts.cgi, which correctly calls |use Bugzilla::Bug|.
Depends on: 313122
Target Milestone: Bugzilla 3.2 → Bugzilla 3.4
I reproduced it on the web interface. The product has to have bugs in it, and you have to have allowbugdeletion on.
Summary: Deleting a product fails because it hasn't loaded Bugzilla::Bug → Deleting a product with bugs fails because it hasn't loaded Bugzilla::Bug
My comment about editproducts.cgi was for 3.2, which is working fine. I can indeed reproduce the bug on tip using the UI. But the culprit is not bug 313122 as I first thought, but bug 448593 which removes |use Bugzilla::Bug| from editproducts.cgi. The good news is that it's still a tip only issue. :)
Depends on: 448593
No longer depends on: 313122
Keywords: regression
Comment on attachment 343592 [details] [diff] [review] v1 r=LpSolit
Attachment #343592 - Flags: review?(LpSolit) → review+
Flags: approval+
Checking in Bugzilla/Product.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Product.pm,v <-- Product.pm new revision: 1.32; previous revision: 1.31 done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: