Item10985: Hierarchal web support for bulk download

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: TopicInteractionPlugin
Branches:
Reported By: DanGlassman
Waiting For: MichaelDaum
Last Change By: MichaelDaum
The download action appears to be broken for subwebs -- attempts to create a file with Web/Subweb in the filename.

For example:

[Mon Jul 18 12:58:04 2011] [error] [client 172.16.6.43] [Mon Jul 18 12:58:04 2011] rest:
IO error: Can't open /blah/pub/CAD/Standards/TopicTitle/Attachments-CAD/Standards-TopicTitle-blah.zip for write:
No such file or directory, referer: https://cadinfo.domain.com/CAD/Standards/TopicTitle

I added a line to getArchiveName in Action/DownloadAttachment.pm to get it working for me -- replaces the / in the web name with a dot.

  my ($web, $topic, $fileNames) = @_;
  $web =~ s/\//\./; #added for subweb support
  my ($meta, $text) = Foswiki::Func::readTopic( $web, $topic );

-- DanGlassman - 18 Jul 2011

Cool

-- MichaelDaum - 19 Jul 2011
 

ItemTemplate edit

Summary Hierarchal web support for bulk download
ReportedBy DanGlassman
Codebase 1.1.3, trunk
SVN Range
AppliesTo Extension
Component TopicInteractionPlugin
Priority Enhancement
CurrentState Closed
WaitingFor MichaelDaum
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r3 - 30 Sep 2011, MichaelDaum
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