Closed Bug 110276 Opened 24 years ago Closed 24 years ago

SQL error in globals.pl

Categories

(Bugzilla :: Bugzilla-General, defect, P1)

2.15
x86
Linux
defect

Tracking

()

RESOLVED FIXED
Bugzilla 2.16

People

(Reporter: bugzilla3, Assigned: justdave)

Details

(Keywords: regression)

Attachments

(1 file)

If you click on "Show dependency graph" for any bug, check "Show the summary of all bugs" on the new page, and click Submit again, you get: Software error: select bug_status, short_desc from bugs LEFT JOIN cc selectVisible_cc ON bugs.bug_id = selectVisible_cc.bug_id AND selectVisible_cc.who = 29933 WHERE ((bugs.groupset & 0) = bugs.groupset OR (bugs.reporter_accessible = 1 AND bugs.reporter = 29933) OR (bugs.assignee_accessible = 1 AND bugs.assigned_to = 29933) OR (bugs.qacontact_accessible = 1 AND bugs.qa_contact = 29933) OR (bugs.cclist_accessible = 1 AND selectVisible_cc.who = 29933 AND not isnull(selectVisible_cc.who))) AND bug_id = 102293: Column: 'bug_id' in where clause is ambiguous at globals.pl line 222.
I believe SelectVisible() is doing this to us, as it now pulls in additional tables that have bug_id in them. The solution appears to be to s/AND bug_id/AND bugs.bug_id/ towards the end of the SQL statement (that the only place I see an unqualified bug_id). -> Bugzilla product
Assignee: endico → justdave
Component: Bugzilla: Other moz.org Issues → Bugzilla-General
Keywords: regression
Product: mozilla.org → Bugzilla
QA Contact: myk → matty
Target Milestone: --- → Bugzilla 2.16
Version: other → 2.15
We are currently trying to wrap up Bugzilla 2.16. We are now close enough to release time that anything that wasn't already ranked at P1 isn't going to make the cut. Thus this is being retargetted at 2.18. If you strongly disagree with this retargetting, please comment, however, be aware that we only have about 2 weeks left to review and test anything at this point, and we intend to devote this time to the remaining bugs that were designated as release blockers.
Target Milestone: Bugzilla 2.16 → Bugzilla 2.18
This slipped through on the mass-update because it didn't have a priority set on it. Since this is a regression from 2.14 behavior, that makes it a release blocker.
Severity: normal → blocker
Priority: -- → P1
Target Milestone: Bugzilla 2.18 → Bugzilla 2.16
Comment on attachment 58345 [details] [diff] [review] Easily fixed. r=bbaetz
Attachment #58345 - Flags: review+
Checking in showdependencygraph.cgi; /cvsroot/mozilla/webtools/bugzilla/showdependencygraph.cgi,v <-- showdependencygraph.cgi new revision: 1.12; previous revision: 1.11 done
Status: NEW → RESOLVED
Closed: 24 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

Created:
Updated:
Size: