Ticket #9393 (confirmed Bug)
Portal View Customization - Unauthorized Error
Reported by: | fenix | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | General | Version: | 3.3 |
Keywords: | view, customizations | Cc: | interra |
Description
After customizing view using portal_view_customization tool I noticed that
it works correctly only if you render customized view for published (Anonymous user has rights to see it) context.
If context is not published I get error:
Traceback (innermost last): Module ZPublisher.Publish, line 110, in publish Module ZPublisher.BaseRequest, line 599, in traverse Module ZPublisher.HTTPResponse, line 717, in unauthorized Unauthorized: <strong>You are not authorized to access this resource.</strong><p>
Steps to reproduce:
- Register simple template as zope3 view using zcml directive:
<browser:page name="simple-customization-test" for="*" template="simple-customization-test.pt" permission="zope2.View" />
- Restart zope;
- Log in as portal manager;
- Go to portal_view_customizations and customize registered view;
- Add simple folder to the root of plone instance, and set workflow state
for that folder to private;
- Call registered view on that folder.
Tested on:
- Plone 3.3rc3
- CMF 2.1.2
- Zope (Zope 2.10.8-final, python 2.4.6, linux2)
- Python 2.4.6
Change History
Note: See
TracTickets for help on using
tickets.