collective / pas.plugins.ldap

Zope (and Plone) PAS Plugin providing users and groups from LDAP directory
http://pypi.python.org/pypi/pas.plugins.ldap
Other
13 stars 20 forks source link

User Search in Site Setup breaks #42

Closed pe82 closed 5 years ago

pe82 commented 7 years ago

BUG/PROBLEM REPORT

Searching for user in @@usergroup-userprefs throws an error while searching for the same user in @@sharing proceeds fine.

What I did:

Went to @@usergroup-userprefs to search for a user, entered the username in User Search and clicked on Search.

What I expect to happen:

Expected to get a user in grid and permissions

What actually happened:

Threw an error:

Traceback (innermost last): Module ZPublisher.Publish, line 138, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 48, in call_object Module Products.CMFPlone.controlpanel.browser.usergroups_usersoverview, line 44, in call Module Products.CMFPlone.controlpanel.browser.usergroups_usersoverview, line 77, in doSearch TypeError: 'NoneType' object is not iterable

What version of Plone/ Addons I am using:

Plone 5.0.6 (5016) CMF 2.2.10 Zope 2.13.24 Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] PIL 3.3.0 (Pillow)

dals83 commented 6 years ago

Any solution to this one?

pe82 commented 6 years ago

Nope, there are other problems that arise with NoneType objects all over the place.

rnixx commented 6 years ago

https://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/controlpanel/browser/usergroups_usersoverview.py#L77

rolemakers seems to be None. IRolesPlugin implementations get looked up here https://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/controlpanel/browser/usergroups_usersoverview.py#L51

Have you any roles plugin enabled?

jensens commented 5 years ago

Still an issue?

pe82 commented 5 years ago

Still an issue?

Not for us, we abandoned plone for good.