Item8450: Special characters in attachment names break publishing
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
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