AccessControl redefines zcml class directive without factory subdirective
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Medium
|
Unassigned |
Bug Description
Both AccessControl and zope.security declare the zcml directive class.
AccessControl first loads zope.security.
Both do not define a discriminator, because of that, there will be no ConfigurationCo
Because AccessControl depends on zope.security, it will always overwrite the configuration of zope.security.
AccessControl does NOT declare the subdirective factory.
If one uses the subdirective factory, like zope.site does, zope does not know how to handle it, because it only uses the subdirectives declared in AccessControl.
I think this is an error in AccessControl, but since this configuration looks like copied from zope.security, just without that specific subdirective, I assume there must be a reason for it and the real culprit is somewhere else.
Changed in zope2: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
The zope2 project on Launchpad has been archived at the request of the Zope developers (see https:/ /answers. launchpad. net/launchpad/ +question/ 683589 and https:/ /answers. launchpad. net/launchpad/ +question/ 685285). If this bug is still relevant, please refile it at https:/ /github. com/zopefoundat ion/zope2.