The failing AccessControl tests can now be found on shh-aqtests-branch in CVS.


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 <> 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.

g) <>

h) If g) really is THE fix for <> all existing Zope software must be reviewed, IMO.

i) Unit tests + VerboseSecurity = useful.

Please advise,

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 -
** No cross posts or HTML encoding! **
(Related lists - )

Reply via email to