collective / collective/collective.subscribablesections

browser/configure.zcml using wrong permissions?

Open
#1 4 comments 0 reactions 1 assignee Claimed by @macagua View on GitHub
bug
Dominant language
Python
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

In October 2011, browser/configure.zcml was changed to require the "cmf.SetOwnPassword" permission. Besides the fact that that results in an ugly error on my system, which is likely my fault, the particular permission seems wrong to me.

Why would the ability to set your own password have anything to do with subscriptions? On our site, all the users can set their own passwords, but if we decided otherwise we'd still want them to be able to subscribe.

In case the error is not actually my fault:

```
Traceback (most recent call last):
File "d:\plone404\buildout-cache\eggs\zope2-2.13.12-py2.6.egg\Zope2\Startup\run.py", line 72, in run()
File "d:\plone404\buildout-cache\eggs\zope2-2.13.12-py2.6.egg\Zope2\Startup\run.py", line 21, in run starter.prepare()
File "d:\plone404\buildout-cache\eggs\zope2-2.13.12-py2.6.egg\Zope2\Startup\__init__.py", line 86, in prepare self.startZope()
File "d:\plone404\buildout-cache\eggs\zope2-2.13.12-py2.6.egg\Zope2\Startup\__init__.py", line 259, in startZope Zope2.startup()
File "d:\plone404\buildout-cache\eggs\zope2-2.13.12-py2.6.egg\Zope2\__init__.py", line 47, in startup _startup()
File "d:\plone404\buildout-cache\eggs\zope2-2.13.12-py2.6.egg\Zope2\App\startup.py", line 118, in startup load_zcml()
File "d:\plone404\buildout-cache\eggs\zope2-2.13.12-py2.6.egg\Zope2\App\startup.py", line 52, in load_zcml load_site()
File "d:\plone404\buildout-cache\eggs\zope2-2.13.12-py2.6.egg\Zope2\App\zcml.py", line 46, in load_site _context = xmlconfig.file(site_zcml)
File "d:\plone404\buildout-cache\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\xmlconfig.py", line 651, in file context.execute_actions()
File "d:\plone404\buildout-cache\eggs\zope.configuration-3.7.4-py2.6.egg\zope\configuration\config.py", line 626, in execute_actions callable(*args, **kw)
File "d:\plone404\buildout-cache\eggs\accesscontrol-2.13.7-py2.6-win32.egg\AccessControl\security.py", line 165, in protectClass permission = getUtility(IPermission, name=permission_id)
File "d:\plone404\buildout-cache\eggs\zope.component-3.9.5-py2.6.egg\zope\component\_api.py", line 169, in getUtility raise ComponentLookupError(interface, name)
zope.configuration.config.ConfigurationExecutionError: : , 'cmf.SetOwnPassword')
in:
File "d:\plone404\src\collective.subscribablesections\collective\subscribablesections\browser\configure.zcml", line 13.4-19.9

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.