If I set Exclude user from allowedRolesAndUsers in @@solr-controlpanel, anonymous search fails with:
...
Module script, line 111, in queryCatalog
- <FSPythonScript at /Plone/queryCatalog>
- Line 111
Module AccessControl.ZopeGuards, line 373, in guarded_apply
Module AccessControl.ZopeGuards, line 395, in builtin_guarded_apply
Module collective.indexing.monkey, line 84, in searchResults
Module collective.solr.monkey, line 31, in searchResults
Module collective.solr.dispatcher, line 43, in __call__
Module collective.solr.dispatcher, line 87, in solrSearchResults
Module collective.solr.mangler, line 136, in mangleQuery
TypeError: cannot concatenate 'str' and 'NoneType' objects
getSecurityManager().getUser() returns AnonymousUser and getSecurityManager().getUser().getId() returns None.
Line:
token = 'user$' + getSecurityManager().getUser().getId()
fails on TypeError.
value variable contains ['Anonymous'] so token should be 'Anonymous' as well.
If I set Exclude user from allowedRolesAndUsers in @@solr-controlpanel, anonymous search fails with:
getSecurityManager().getUser() returns AnonymousUser and getSecurityManager().getUser().getId() returns None. Line: token = 'user$' + getSecurityManager().getUser().getId() fails on TypeError. value variable contains ['Anonymous'] so token should be 'Anonymous' as well.