a) guarded_getattr checks object security of the acquiree if the container denies access (at least that's my assessment).
b) The tests pass when either
- running Zope < 2.7.3, or
- declaring object security on the acquiree via declareObjectProtected(foo)
c) Unauthorized errors pop up in CMF-based applications, typically when trying to access a portal tool from a Python Script. E.g. the tests for <http://zope.org/Collectors/CMF/318> fail on 1.4 branch because 'portal_membership' can not be acquired.
d) Current Zope objects are ill-prepared for these checks as many do not bother to declare object security in the first place (User Folder, Mail Host, 50% of CMF tools, ...).
e) Plone and Archetypes exponentially increase the likelihood of encountering these errors. I have seen several variations in our customer projects, all reliably fixed by b)
f) I think this is serious. It certainly is a problem for Plone.
h) If g) really is THE fix for <http://zope.org/Collectors/CMF/259> all existing Zope software must be reviewed, IMO.
i) Unit tests + VerboseSecurity = useful.
Please advise, Stefan
-- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is. /Pete McBreen/
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce