#1560 Circular group issue due parent is a child

All_versions
open-accepted
nobody
7
2004-11-04
2004-07-18
tato
No

Hi.

I've setup a Group called Employees that includes the
Registered Group. Then I added several permission to
the Employees Group as usual.

Later I decided that I no longer need the Registered
Group because all the users will only be Employees and I
don't want to administer two groups, just one. So the
steps that I was going to take were:

1) Assign all the permissión added to the Employees
Group to the Registered Group.
2) Delete the Employees Group
3) Rename the Registered Group to Employees Group

I was trying to accomplish the first step. I entered to
the Registered Group Edit Page and clicked on the
Include Employees Group. After doing that I got:

-----------------------------------------------
Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete your
request.
Please contact the server administrator, xxx@yyy.hhh
and inform them of the time the error occurred, and
anything you might have done that may have caused
the error.

More information about this error may be available in the
server error log.

Additionally, a 404 Not Found error was encountered
while trying to use an ErrorDocument to handle the
request.

Apache/1.3.31 Server at localhost Port 80

-------------------------------------------------

I checked the server error log but nothing is logged.

Now every time I enter the Group or User link I always
get the same error, so I cannot admin neither Groups
nor Users anymore.

I was looking at some related bug reports and the
closest I found was:

808988 Circular group issue due parent is a child.

but I think that was for version 1.7 and not sure if that
is the cause of this problem.

Thanks very much for your attention.

Renato F. Salas
Lima-Peru
www.renatonow.com

Discussion

  • tato

    tato - 2004-07-18
    • priority: 5 --> 7
     
  • tato

    tato - 2004-07-18

    Logged In: YES
    user_id=769086

    I've repeated the same operation making few changes and
    discovered that the problem is that the system allows
    circular inclusion of groups without protection.

    Say the group Test2 includes Test1. Then, it is also posible
    to edit Test1 to include Test2, and that's where everything
    hangs up.

    Take a look at my queries:

    Before group inclusion:
    mysql> select * from tiki_group_inclusion;
    +-----------+--------------+
    | groupName | includeGroup |
    +-----------+--------------+
    | Test2 | Test1 |
    +-----------+--------------+

    After group inclusion:
    mysql> select * from tiki_group_inclusion;
    +-----------+--------------+
    | groupName | includeGroup |
    +-----------+--------------+
    | Test1 | Test2 |
    | Test2 | Test1 |
    +-----------+--------------+

    So I solved the problem deleting the first row shown in the
    last query. Still, the system should avoid that kind of
    inclusions.

    Regards,

    Renato F. Salas
    www.renatonow.com

     
  • Philippe Cloutier

    Logged In: YES
    user_id=738765

    Hi, if I understand right this bug is a duplicate of
    808988 Circular group issue due parent is a child.
    Right?

     
  • tato

    tato - 2004-07-19

    Logged In: YES
    user_id=769086

    It looks like is a duplicate of "808988 Circular group issue "
    but I'm not exactly sure because that one was for version
    1.7. Please see my previous comment, the one with the sql
    queries.

     
  • Philippe Cloutier

    Logged In: YES
    user_id=738765

    Don't worry, bugs can last a long time in Tiki. If you can't
    find a difference please merge the two bug reports into the
    original one.

     
  • Philippe Cloutier

    Logged In: YES
    user_id=738765

    Oh, and don't worry about the status, that old bug was
    closed automatically because there were no updates.

     
  • Philippe Cloutier

    • milestone: 410992 --> All_versions
    • summary: 1.9 RC2 Wider Group inclusion failure --> Circular group issue due parent is a child
    • status: open --> open-accepted
     
  • Philippe Cloutier

    Logged In: YES
    user_id=738765

    This is bad enough to segfault my PHP (still on HEAD).

     
  • Philippe Cloutier

    Logged In: YES
    user_id=738765

    I think that to keep $userlib->get_included_groups() from
    generating an infinite recursive call, it should get a
    second argument receiving the groups that are already known
    to be included in the group that initially triggerred
    get_included_groups(). Then it can use in_array() to check
    that it's not looping.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks