Closed Bug 271590 Opened 20 years ago Closed 20 years ago

edit group controls fails miserably if no product parameter is passed

Categories

(Bugzilla :: Administration, task)

2.17.6
x86
Windows XP
task
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 240250

People

(Reporter: timeless, Assigned: justdave)

References

()

Details

Software error:

DBD::mysql::st execute failed: You have an error in your SQL syntax.  Check the
manual that corresponds to your MySQL server version for the right syntax to use
near 'JOIN bug_group_map ON bug_group_map.group_id = groups.id LEFT J [for
statement ``SELECT id, name, entry, membercontrol, othercontrol, canedit,
isactive, COUNT(bugs.bug_id) FROM groups LEFT JOIN group_control_map ON
group_control_map.group_id = id AND group_control_map.product_id =  LEFT JOIN
bug_group_map ON bug_group_map.group_id = groups.id LEFT JOIN bugs ON
bugs.bug_id = bug_group_map.bug_id AND bugs.product_id =  WHERE isbuggroup != 0
AND (isactive != 0 OR entry IS NOT NULL OR bugs.bug_id IS NOT NULL) GROUP BY
name'']) at Bugzilla/DB.pm line 66
	Bugzilla::DB::SendSQL('SELECT id, name, entry, membercontrol, othercontrol,
canedit, is...') called at /opt/webtools/bugzilla/editproducts.cgi line 1281

For help, please send mail to the webmaster (webmaster@mozilla.org), giving this
error message and the time and date of the error.
Flags: blocking2.20?
Flags: blocking2.18?
The URL specified as generating the error is not linked to from anywhere, so no
reasonable admin would ever run into this error without hand-manipulating the URL.

That said, however, it should throw a polite error stating that you haven't
chosen a product instead of trying to run SQL with a null product_id variable.
Flags: blocking2.20?
Flags: blocking2.20-
Flags: blocking2.18?
Flags: blocking2.18-
Summary: bugs.product_id = WHERE isbuggroup != 0 AND (isactive != 0 OR entry IS NOT NULL OR bugs.bug_id IS NOT NULL) GROUP BY name'']) at Bugzilla/DB.pm line 66 COUNT(bugs.bug_id) FROM groups LEFT JOIN group_control_map ON group_control_map.group_id = id AND grou… → edit group controls fails miserably is no product parameter is passed
Whiteboard: will accept for 2.18 branch, not blocking release though.
Summary: edit group controls fails miserably is no product parameter is passed → edit group controls fails miserably if no product parameter is passed
This is a dupe of a bug already opened by.... timeless ;)

I have a trivial patch for this. I will submit it today in bug 240250.

*** This bug has been marked as a duplicate of 240250 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Whiteboard: will accept for 2.18 branch, not blocking release though.
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.