Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 111732 - The group tree on /admin duplicates groups
The group tree on /admin duplicates groups
Product: Red Hat Web Application Framework
Classification: Retired
Component: other (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Archit Shah
Jon Orris
Depends On:
Blocks: 108447 108451 106481
  Show dependency treegraph
Reported: 2003-12-09 09:14 EST by Daniel Berrange
Modified: 2007-04-18 13:00 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-09-02 13:45:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Daniel Berrange 2003-12-09 09:14:32 EST
Description of problem:
The /admin application contains a hierarchical group browser tree. At
the top level this appears to list all groups whether they are top
level groups or not. The query that generates this top level list of
nodes is found in pdl/com/arsdigita/ui/admin/Admin.pdl, the query
AllNoParentGroups. In 5.2 this is 'optimized' for PostgreSQL:

        select group_id
          from groups
         where not exists (
                           select 1
                           from group_subgroup_map
                           where group_id = subgroup_id)

Unfortunately the 'where' clause in the inner select statement is
flawed because the 'group_id' reference is matching 'group_id' on
'group_subgroup_map' table rather than the outer 'groups' table. So
the overall statement reduces to:

        select group_id
          from groups;

Quite an optmization indeed, but sadly no longer correct behaviour.
The references to field names need to be qualfied:

        select g.group_id
          from groups g
         where not exists (select 1
                           from group_subgroup_map m
                           where g.group_id = m.subgroup_id)

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Go to /ccm/admin
2. Go to the 'groups' tab
3. Expand the root node
Actual results:
'Content administration Author, contet administration editor, content
administration publisher & more child groups are all visible at the
top level.

Expected results:
Only groups with no parent are visible.

Additional info:

Fixed in p4 38621. Needs to be applied to 5.2, 6.0 & dev.
Comment 1 Richard Li 2003-12-22 13:46:23 EST
merged @39018 on dev/
Comment 2 Daniel Berrange 2006-09-02 13:45:02 EDT
Closing old tickets

Note You need to log in before you can comment on or make changes to this bug.