Item8450: Special characters in attachment names break publishing

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: PublishPlugin
Branches:
Reported By: MartinKaufmann
Waiting For:
Last Change By: CrawfordCurrie
Using PublishPlugin (Version: 6036 (2010-01-12)) to generate a file copy (Content Generator: file) I've encountered the following problem.

If an attachment name contains characters like parentheses or commas (and most likely other characters which are translated into HTML entities), the attachment is not included in the publish directory.

Example:
  • There is a topic called TestTopic20.
  • Upload an file called test (file).txt.
  • During upload this file is renamed to test_(file).txt.
  • Use PublishPlugin to publish this particular topic (or the whole web containing this topic).
  • The publishing process produces the following error:
       ERROR: /home/httpd/foswiki/pub/Sandbox/TestTopic20/test_%28file%29.txt is not readable
       ERROR: MISSING RESOURCE Sandbox/TestTopic20/test_%28file%29.txt
       ERROR: /home/httpd/foswiki/pub/Sandbox/TestTopic20/test_%28file%29.txt is not readable
       ERROR: MISSING RESOURCE Sandbox/TestTopic20/test_%28file%29.txt
    
  • The resulting HTML output for the link is the following:
       <a href="MISSING RESOURCE Sandbox/TestTopic20/test_%28file%29.txt" target="_top">test_(file).txt</a>
    

PS I just noticed that on foswiki.org the parentheses are stripped when uploading the file. This is not the case on my local installation which is why I've got lots of attachments with all sorts of unsuitable names. Where is the attachment name filter setup?

-- MartinKaufmann - 01 Feb 2010

Works fine with FW2

-- Main.CrawfordCurrie - 18 Apr 2017 - 08:55
 

ItemTemplate edit

Summary Special characters in attachment names break publishing
ReportedBy MartinKaufmann
Codebase 1.0.9
SVN Range
AppliesTo Extension
Component PublishPlugin
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r3 - 18 Apr 2017, CrawfordCurrie
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