Cachemanager duplicates the cache id when copied

Bug #534653 reported by LeoRochael
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Medium
Unassigned

Bug Description

When a RAMCacheManager or AcceleratedHTTPCacheManager is copied in the ZMI, its cacheid is not recreated resulting in two different cache managers caching to the same location.

See attached patch that adds a test showing cloned cache managers returning the same cache.

Revision history for this message
LeoRochael (leorochael) wrote :
Revision history for this message
LeoRochael (leorochael) wrote :

Attached is another patch with the above test and its solution.

Will commit to Zope 2.12 and trunk in 2 days if no comment is received.

Should other branches receive this fix as well?

Revision history for this message
Tres Seaver (tseaver) wrote :

+1 for merging that patch to the 2.12 branch and the trunk.

I don't know if I would bother with earlier branches, unless you have need to support that usecase yourself on an earlier version.

Revision history for this message
LeoRochael (leorochael) wrote :

Fix commited to branch 2.12 and trunk

Changed in zope2:
status: New → Fix Committed
Changed in zope2:
milestone: none → 2.12.4
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.