Bug 438946
| Summary: | Need to audit all code that enables privacy in Bugzilla to assure proper operation | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Bugzilla | Reporter: | David Lawrence <dkl> | ||||
| Component: | User Accounts | Assignee: | Tony Fu <tfu> | ||||
| Status: | CLOSED NEXTRELEASE | QA Contact: | |||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 3.2 | ||||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2008-05-28 03:48:59 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | 406471 | ||||||
| Bug Blocks: | 406071 | ||||||
| Attachments: |
|
||||||
|
Description
David Lawrence
2008-03-26 03:46:19 UTC
Tony, now that fix for bug 437969 has been committed, can you take a look at some of these functions to make sure that they are checking for proper group permissions in the same fashion? Thanks Dave Tony, please review the sql for OR group checking. needed for Milestone 3. Dave, I have reviewed all sql queries related to user, bug, product privacy. All functions look good, except the or base group check queries in get_select_products and get_enterable_products. I have attached a patch to fix them. Please review the patch. Thanks, Tony Created attachment 302713 [details]
OR based group checking in get_selectable_products() and get_enterable_products()
Comment on attachment 302713 [details] OR based group checking in get_selectable_products() and get_enterable_products() >+ $query .= " WHERE group_id IN (" . $self->groups_as_string . ")" . >+ " OR group_control_map.group_id IS NULL"; I think we need to put parens ( ) around the OR parts like this: $query .= " WHERE (group_id IN (" . $self->groups_as_string . ")" . " OR group_control_map.group_id IS NULL) "; cause we are looking for either one to be true for that one part of the SQL. If this seems right and still works with your testing, then feel free to review=dkl+ and check it in. Thanks Dave (In reply to comment #6) > (From update of attachment 302713 [details] [edit]) > >+ $query .= " WHERE group_id IN (" . $self->groups_as_string . ")" . > >+ " OR group_control_map.group_id IS NULL"; > > I think we need to put parens ( ) around the OR parts like this: > > $query .= " WHERE (group_id IN (" . $self->groups_as_string . ")" > . > " OR group_control_map.group_id IS NULL) "; > > cause we are looking for either one to be true for that one part of the SQL. If > this seems > right and still works with your testing, then feel free to review=dkl+ and > check it in. > > Thanks > Dave > Dave, I have added extra parents according to your comments and committed it into cvs repo. Thanks, Tony |