Closed Bug 1035221 Opened 11 years ago Closed 11 years ago

updated bless_groups throws a sql syntax error if visibility groups are used

Categories

(Bugzilla :: Bugzilla-General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 5.0

People

(Reporter: glob, Assigned: glob)

References

Details

(Keywords: regression)

Attachments

(1 file)

(David Corry from Bug 993894 comment #8) > This patch causes my Bugzilla installation to throw errors on every page > unless the user is part of the editusers group. > > >First error: undef error - DBD::mysql::db selectcol_arrayref 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 ')' at line 4 [for Statement " > > SELECT DISTINCT group_id > > FROM user_group_map > > WHERE user_id = ? > > AND isbless = 1 AND group_id IN () "] at Bugzilla/User.pm line 1013> > >Bugzilla::User::bless_groups('Bugzilla::User=HASH(0xa0eaff8)') called at Bugzilla/User.pm line 1712 > >Bugzilla::User::can_bless('Bugzilla::User=HASH(0xa0eaff8)') called at Bugzilla/User.pm line 1463 > >Bugzilla::User::can_administer('Bugzilla::User=HASH(0xa0eaff8)') called at template/en/default/global/common-links.html.tmpl line 58 > > (which continues on to all the template files.) > > Reversing the patch fixes the errors.
Assignee: general → glob
Attached patch 1035221_1.patchSplinter Review
Attachment #8451660 - Flags: review?(sgreen)
Status: NEW → ASSIGNED
Flags: approval+
Target Milestone: --- → Bugzilla 5.0
Comment on attachment 8451660 [details] [diff] [review] 1035221_1.patch I'm surprised this has never been picked up on brc. I guess everyone using the function has access to some groups.
Attachment #8451660 - Flags: review?(sgreen) → review+
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git eb527a5..171e504 master -> master
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Keywords: regression
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: