You are here: Foswiki>Tasks Web>Item12472 (05 Jul 2015, GeorgeClark)Edit Attach

Item12472: $loadedRev undefined in VC::Store for RcsLite

pencil
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: FoswikiStore
Branches: trunk
Reported By: JulianLevens
Waiting For:
Last Change By: GeorgeClark
When running change_store in PlainFileStore as below:
perl -I /home/foswiki/master/core/lib -I /home/foswiki/master/core/lib/CPAN/lib ../tools/change_store.pl -w Main -w System -w TestCases -t pf RcsLite PlainFile

I keep seeing the following:

... copy WysiwygPlugin:1
Use of uninitialized value $loadedRev in string eq at /home/foswiki/master/core/lib/Foswiki/Store/VC/Store.pm line 334.
... copy attachment wikiringlogo20x20.png rev 1 as BaseUserMapping_999

Note that the error always appears before ... copy attachment

While it's easy to hack VC::Store to cope with the undef $loadedRev that's not the heart of the matter, this needs investigating.

-- JulianLevens - 12 Apr 2013

Problem was that the caller was using the Store interface directly, and that interface was not setting all the fields on the meta object (specifically, loadedRev and latestIsLoaded). Without correct settings for these fields the meta object was being left in a bad state. So I moved the responsibility for setting the fields down into the store (adding a private-ish API to Meta in the process).

-- CrawfordCurrie - 12 Apr 2013

 

ItemTemplate edit

Summary $loadedRev undefined in VC::Store for RcsLite
ReportedBy JulianLevens
Codebase trunk
SVN Range
AppliesTo Engine
Component FoswikiStore
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:823048a35368
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches trunk
trunkCheckins distro:823048a35368
Release01x01Checkins
Topic revision: r5 - 05 Jul 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy