I'm not sure what condition caused our new group and user to get in this state,
but we were able to delete the problematic group (and then subsequently the
user we added) by patching the
$ZENHOME/Products/PluggableAuthService/plugins/ZODBGroupManager.py file. I
removed the assertion that was causing the above error and swapped out an
arbitrary title for the case in the code that was failing:
FROM: (@ line 247)
for k, v in self._principal_groups.items():
if group_id in v:
# should be one and only one mapping to 'k'
parent = aq_parent( self )
info = parent.searchPrincipals( id=k, exact_match=True )
assert( len( info ) in ( 0, 1 ) )
if len( info ) == 0:
title = '<%s: not found>' % k
else:
title = info[0].get( 'title', k )
result.append( ( k, title ) )
TO:
for k, v in self._principal_groups.items():
if group_id in v:
# should be one and only one mapping to 'k'
parent = aq_parent( self )
info = parent.searchPrincipals( id=k, exact_match=True )
''' assert( len( info ) in ( 0, 1 ) )
'''
if len( info ) > 1:
title = '<%s: len(info) greater than 1>' % k
else:
if len( info ) == 0:
title = '<%s: not found>' % k
else:
title = info[0].get( 'title', k )
result.append( ( k, title ) )
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=31094#31094
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users