Portal Role Manager crashes with uninformative error message when duplicate users or groups exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope PAS |
Fix Released
|
Undecided
|
Tres Seaver |
Bug Description
Portal Role Manager (/Portal/
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Shared.
Module Shared.
Module Products.
Module Products.Gloworm, line 28, in pt_render
Module zope.pagetempla
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module zope.tal.
Module Products.
Module zope.tales.tales, line 696, in evaluate
- URL: manage_roles
- Line 53, Column 4
- Expression: <PythonExpr ','.join( [x[1] for x in here.listAssign
- Names:
{'container': <GroupAwareRole
'context': <GroupAwareRole
'default': <object object at 0xb7d33528>,
'here': <GroupAwareRole
'loop': {'info': <Products.
'nothing': None,
'options': {'args': ()},
'repeat': <Products.
'request': <HTTPRequest, URL=http://
'root': <Application at >,
'template': <PageTemplateFile at /intranet/
'user': <PropertiedUser 'siteadmin'>}
Module Products.
- __traceback_info__: ','.join( [x[1] for x in here.listAssign
Module PythonExpr, line 1, in <expression>
Module Products.
AssertionError
The following error is also logged to the event log:
2009-03-26T11:52:51 ERROR PluggableAuthSe
I propose the attached patch to make this error message more informative, and reduce the time required to diagnose and resolve this problem. After applying the patch, if duplicate users or groups exist and someone accesses portal role manager, the following exception is thrown:
...
* Module PythonExpr, line 1, in <expression>
* Module Products.
MultiplePrincip
The following message is logged to the event log:
2009-03-26T12:13:14 ERROR PluggableAuthSe
Should also mention: the attached patch is against PluggableAuthSe rvice-1. 6-py2.4.