Item8240: PublishPlugin produces duplicate __extra resource filenames

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: PublishPlugin
Branches:
Reported By: Foswiki:Main.MichaelTempest
Waiting For:
Last Change By: MichaelTempest
PublishPlugin produces duplicate filenames like __extra0 for resources that are not in the web being exported. This is especially noticable when exporting to a .zip file, since the resulting zip contains multiple files with the same name.

Foswiki::Plugins::PublishPlugin::Publisher::publishTopic() maintains a counter $extras to generate unique filenames for these resources. The problem is that the counter is reset for every topic. It should be initialised at the start of the run, so that external resources for different topics get different filenames.

-- MichaelTempest - 13 Aug 2009

 

ItemTemplate edit

Summary PublishPlugin produces duplicate __extra resource filenames
ReportedBy Foswiki:Main.MichaelTempest
Codebase
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component PublishPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins PublishPlugin:92002cadf421
TargetRelease n/a
ReleasedIn
Topic revision: r3 - 13 Aug 2009, MichaelTempest
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