Item11452: MetaCache robustness: remove from cache on $topicObject->finish()

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine   PaulHarvey
Presently, metacache can return a finished Foswiki::Meta obj if somebody somewhere has called $topicObject->finish().

This madness is/will be repaired in the store2 refactor (read-only topicObjects).

As most developers are naughty and generally don't ->finish() their objects in quite the sequence and circumstances (interactions with SEARCH) required to trigger this bug, nobody but me seems to have noticed.

-- PaulHarvey - 18 Jan 2012

Originally found while working on Item11431

-- PaulHarvey - 18 Jan 2012

Fn_SEARCH::test_metacache_madness was committed under Item11431, Foswikirev:13694 and Foswikirev:13693

-- PaulHarvey - 19 Jan 2012

Fixed incorrect removeMeta return value on Release01x01

-- PaulHarvey - 19 Jan 2012
 

ItemTemplate edit

Summary MetaCache robustness: remove from cache on $topicObject->finish()
ReportedBy PaulHarvey
Codebase 1.1.4, 1.1.4 RC2, 1.1.4 RC1, 1.1.4 beta2, 1.1.4 beta1, trunk
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor PaulHarvey
Checkins Foswikirev:13692 Foswikirev:13695 Foswikirev:13716
TargetRelease patch
ReleasedIn 1.1.5
CheckinsOnBranches Release01x01 trunk
trunkCheckins Foswikirev:13692
Release01x01Checkins Foswikirev:13695 Foswikirev:13716
Topic revision: r7 - 11 Apr 2012, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License