Item10985: Hierarchal web support for bulk download
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
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