I try to empty a group from his members which are mixed users/groups,
and I get those errors for many of those members groups:
i.e. group âgroupAâ as for example the following members:
user1
user2
âŚ
group1
group2
âŚ
[Fri Nov 16 09:50:41 2007] [warning]: User not loaded. (/opt/rt/lib/RT/User_Overlay.pm:1792)
[Fri Nov 16 09:50:41 2007] [warning]: Unable to revoke delegated rights
for principal 22525 (/opt/rt/lib/RT/GroupMember_Overlay.pm:334)
and this member group cannot be removed
Many thanks for any idea/hint to solve this?
Tested with RT 3.4.5 and 3.6.3 on the same database (Oracle 9i).
Here is more informations:
If I disable the following line in
/opt/rt/lib/RT/GroupMember_Overlay.pm, function âDeleteâ, line 332:
$err = $self->MemberObj->_CleanupInvalidDelegations(InsideTransaction => 1);
I can delete those member groups (group1, group2, âŚ).
If it could help understanding the problem, here is a dumper of $self
then @_ in /opt/rt/lib/RT/User_Overlay.pm function
_CleanupInvalidDelegations:
[Mon Nov 19 17:15:42 2007] [warning]: Dumper1: $VAR1 = bless( {
â_Classâ => âRT::Userâ,
âoriginal_userâ => undef,
â_SB_Record_Primary_RecordCache_keyâ => undef,
âuserâ => bless( {
â_Classâ => âRT::CurrentUserâ,
âLangHandleâ => bless( {}, âRT::I18N::enâ ),
â_SB_Record_Primary_RecordCache_keyâ => âid=284971â,
âtableâ => âUsersâ,
âvaluesâ => {
âcreatorâ => â12â,
âcommentsâ => undef,
âstateâ => undef,
âwebencodingâ => undef,
ârealnameâ => âRT Connectâ,
âpasswordâ => âNO-PASSWORDâ,
âauthsystemâ => undef,
âhomephoneâ => undef,
'id' => '284971',
'timezone' => undef,
'lang' => 'en',
'name' => 'rtconnect',
'contactinfosystem' => undef,
'zip' => undef,
'emailencoding' => undef,
'lastupdated' => '2007-10-18 17:50:41',
'signature' => undef,
'externalauthid' => undef,
'address1' => undef,
'workphone' => undef,
'emailaddress' => 'rtconnect@foo.bar',
'freeformcontactinfo' => undef,
'city' => undef,
'gecos' => 'rtconnect',
'organization' => 'Foo',
'country' => undef,
'mobilephone' => undef,
'nickname' => 'rtconnect',
'externalcontactinfoid' => undef,
'address2' => undef,
'created' => '2007-10-18 15:34:59',
'pgpkey' => undef,
'pagerphone' => undef,
'lastupdatedby' => '284971'
},
'fetched' => {
'creator' => 1,
'comments' => 1,
'state' => 1,
'webencoding' => 1,
'realname' => 1,
'password' => 1,
'authsystem' => 1,
'homephone' => 1,
'id' => 1,
'timezone' => 1,
'lang' => 1,
'name' => 1,
'contactinfosystem' => 1,
'zip' => 1,
'emailencoding' => 1,
'signature' => 1,
'lastupdated' => 1,
'externalauthid' => 1,
'address1' => 1,
'workphone' => 1,
'emailaddress' => 1,
'freeformcontactinfo' => 1,
'city' => 1,
'gecos' => 1,
'organization' => 1,
'country' => 1,
'mobilephone' => 1,
'nickname' => 1,
'externalcontactinfoid' => 1,
'address2' => 1,
'created' => 1,
'pgpkey' => 1,
'lastupdatedby' => 1,
'pagerphone' => 1
}
}, 'RT::CurrentUser' ),
'table' => 'Users',
'values' => {},
'fetched' => {}
}, 'RT::User' ); (/opt/rt/lib/RT/User_Overlay.pm:1791)
[Mon Nov 19 17:15:42 2007] [warning]: Dumper2: $VAR1 = âInsideTransactionâ;
$VAR2 = 1;
$VAR3 = âObjectâ;
$VAR4 = undef; (/opt/rt/lib/RT/User_Overlay.pm:1792)
Thanks for any help