collective / rapido.plone

Hacking Plone applications in the Theme
https://pypi.python.org/pypi/rapido.plone
8 stars 5 forks source link

Newly defined extra-view not available to anonymous visitors (works after restarting instance) #36

Open pigeonflight opened 7 years ago

pigeonflight commented 7 years ago

I created a new view and registered it as an extra view but the view did not work for anonymous users until restarting the instance:

The contents of file_view.yaml

view:
    id: file-view
    with_theme: true

Visiting as administrator works as expected

As an administrator, when I visit: {myplonesite}/content/file-view I see the file-view as expected.

Visiting as an anonymous user returns "a page does not seem to exist" error

As an anonymous user when I visit: {myplonesite}/content/file-view I get a 404 error. "This page does not seem to exist… We apologize for the inconvenience, but the page you were trying to access is not at this address. You can use the links below to help you find what you are looking for."

Anonymous can ONLY see the full view path either

I also tried visiting {myplonesite}/content/@@file-view as an anonymous user. This also failed.

But visiting {myplonesite}/content/@@rapido/views/blocks/file_view worked as expected.

Works after a reboot

After restarting the instance the anonymous users was able to visit {myplonesite}/content/@@file-view.

Platform Plone 5.1b

This was tested on the following platform: Rapido 1.1.1 Plone.resources 1.2 Plone 5.1b2 (5105) CMF 2.2.10 Zope 2.13.26 Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] PIL 3.4.2 (Pillow)

sverbois commented 5 years ago

@pigeonflight

I think the problem may be due to "zeo clients synchronisation".

How to reproduce the problem