Closed Bug 190611 Opened 22 years ago Closed 21 years ago

Query page crashes if any product has no versions defined

Categories

(Bugzilla :: Query/Bug List, defect)

2.17.4
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: justdave, Assigned: goobix)

References

Details

(Keywords: regression)

Attachments

(1 file, 3 obsolete files)

Can't use an undefined value as an ARRAY reference at /var/www/html/bugzilla-tip/query.cgi line 250. [Sat Jan 25 09:39:22 2003] [error] [client 64.236.139.249] Premature end of script headers: /var/www/html/bugzilla-tip/query.cgi To reproduce: 1. Go to landfill 2. editproducts 3. pick "Another Product" 4. click on "versions" 5. click "delete" by the only version and confirm it. 6. Go to the query page. Calling this a regression because we had a couple products with no versions in them on our test install for some reason, and this didn't crash until this morning's cvs update.
Target Milestone: --- → Bugzilla 2.18
Blocks: bz-2.17.5
from cvs tip, this problem does not occur on our machine, but other problems occur when filing new bug... see bug 223570 that is works for me...
>> that is works for me... This still exists and it's reproductible on the CVS tip for me. The crash error message is: Software error: Can't use an undefined value as an ARRAY reference at [www_bugzilla_path]/query.cgi line 257. Adding a version back to the product makes query.cgi functionable again.
Version: 2.17.3 → 2.17.4
Attached patch Patch (obsolete) — Splinter Review
This solves the problem for me and makes this bug fixed for the soon-to-come 2.17.5.
Attachment #134524 - Flags: review?(kiko)
Attachment #134524 - Attachment is obsolete: true
Attachment #134524 - Flags: review?(kiko)
Attached patch Patch with comment (obsolete) — Splinter Review
Attachment #134526 - Attachment is obsolete: true
Attachment #134529 - Flags: review?(kiko)
Attachment #134529 - Attachment is obsolete: true
Attachment #134530 - Flags: review?(kiko)
Attachment #134529 - Flags: review?(kiko)
Comment on attachment 134530 [details] [diff] [review] Space-identation issue fixed I've invested a good 30 minutes trying to understand why we don't need to check for $::versions. This bug only presents itself when the product has no components *and* no versions; if you have one of the other, the page loads fine. We should really get to the bottom of this. This patch *does* fix the symptom of this bug, and I can't see any bad sideeffects, but it's a bandaid. I'll r= this, but keep it open till we diagnose the real issue (which will be attached, say, tomorrow?)
Attachment #134530 - Flags: review?(kiko) → review+
Flags: approval?
a= on the bandaid, in the interest of having in in the release tonight. Shall we file a new bug to figure out the real problem? (I hate having bugs with stuff checked in on them staying open)
Flags: approval? → approval+
Sure. New bug filled: bug 224317: Clean-up band-aid for bug 190611: Query page crashes if any product has no versions defined. I copied the CC list from this bug to the 224317 bug.
Assignee: endico → jocuri
Checking in query.cgi; /cvsroot/mozilla/webtools/bugzilla/query.cgi,v <-- query.cgi new revision: 1.122; previous revision: 1.121 done
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: