Ticket #9393 (confirmed Bug)

Opened 7 years ago

Last modified 3 years ago

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:

  1. Register simple template as zope3 view using zcml directive:
        <browser:page
           name="simple-customization-test"
           for="*"
           template="simple-customization-test.pt"
           permission="zope2.View"
           />
    
  1. Restart zope;
  2. Log in as portal manager;
  3. Go to portal_view_customizations and customize registered view;
  4. Add simple folder to the root of plone instance, and set workflow state

for that folder to private;

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

comment:1 Changed 7 years ago by interra

  • Cc interra added

comment:2 Changed 6 years ago by limi

  • Component changed from Unknown to Infrastructure

comment:3 Changed 4 years ago by kleist

  • Status changed from new to confirmed
  • Component changed from Infrastructure to General
  • Priority changed from major to minor
  • Version set to 3.3
  • Milestone changed from 3.3.x to 4.x
  • Keywords view, added; view removed

Still an issue in Plone 4?

comment:4 Changed 3 years ago by maartenkling

refs #13322 ?

Was there any tal in the simple-customization-test.pt template ?

Note: See TracTickets for help on using tickets.