ZMI Cache action disapearing

Bug #143639 reported by Bertrand Croq
2
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Low
Unassigned

Bug Description

How to produce the problem:
- create a "root" Folder
- in the root folder, create "root_cache", an Accelerated HTTP Cache Manager
- in the root folder, create "child" Folder
- in the child folder, create "child_cache, an Accelerated HTTP Cache Manager
- in the child folder, create "child_script", a PythonScript
- in the child_script ZMI, you can see the "Cache" action, pointing to ".../ZCacheable_manage"
- in the root folder, copy and paste the child folder
- in the copy_of_child for, delete child_cache
- in the copy_of_child, open child_script ZMI... now, it doesn't have the "Cache" action but it should as the root_cache is still available

It looks like someting is broken in the managersExist() function in OFS/Cache.py.

Tags: bug zope
Revision history for this message
Paul Winkler (slinkp) wrote :

reproduced here in Zope 2.9.1 / python 2.4.2 on gentoo linux.

Changed in zope2:
importance: Medium → Low
status: New → Confirmed
Revision history for this message
Jens Vagelpohl (dataflake-deactivatedaccount-deactivatedaccount) wrote :

The managersExist funtion wasn't broken, it just didn't play well with the way manage_beforeDelete handled removal of a cache manager in the container. It's now fixed.

Zope 2.12 branch: http://svn.zope.org/?rev=113567&view=rev

Zope trunk: http://svn.zope.org/?rev=113568&view=rev

Changed in zope2:
status: Confirmed → Fix Committed
assignee: nobody → Jens Vagelpohl (jens-dataflake)
milestone: none → 2.12.8
Changed in zope2:
status: Fix Committed → Fix Released
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.