ComputedAttribute permission problems in 2.7

Bug #143108 reported by richard
2
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Medium
Unassigned

Bug Description

ComputedAttributes sometimes run afoul in the permission machinery with the following sort of error (courtesy VerboseSecurity):

"""
Module Products.PageTemplates.Expressions, line 336, in restrictedTraverse
   - __traceback_info__: {'path': ['cgpublisher_url'], 'TraversalRequestNameStack': [], 'page_layout': <CG TemplatedHTML page_layout at 0x3b5de00>}
  Module AccessControl.ImplPython, line 404, in validate
  Module Products.VerboseSecurity.VerboseSecurityPolicy, line 101, in validate
Unauthorized: No container provided. Access to 'cgpublisher_url' of None, acquired through (CG WebSpace web at 0x3b5d9c0), denied.
"""

Where "cgpublisher_url" is the ComputedAttribute.

Tags: bug zope
Revision history for this message
Andreas Jung (ajung) wrote :

Please describe how to reproduce the error.

Revision history for this message
Florent Guillaume (efge) wrote :

Please provide some code to reproduce the problem othewise the bug will be rejected for lack of activity.

Changed in zope2:
status: New → Incomplete
Revision history for this message
Colin Watson (cjwatson) wrote :

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/zopefoundation/zope2.

Changed in zope2:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.