SID-01010: Viewfile modifies downloaded filename
| Status: |
Answered |
TWiki version: |
5.0.0 |
Perl version: |
5.10.0 |
| Category: |
CategoryAttachments |
Server OS: |
SuSE (SLES) 11 SP1, kernel 2.6.32 |
Last update: |
14 years ago |
The viewfile script appears to be changing (legal) attachment filenames on download. For example, the attachment Batch_Process_Diagrams.vsd becomes batch-process-diagrams.vsd. This is causing workflow problems when people want to modify and re-attach an attachment. We need viewfile to reference specific revisions (otherwise would use pub urls).
The two changes we have noticed are conversion to lowercase, and changing underscores to hyphens.
The correct (unmodified) filename is logged. The Content-Disposition header comes back with the modified filename eg:
Content-Disposition: inline;filename=batch-process-diagrams.vsd
Appreciate any suggestions on this. Happy to provide configure output via email.
Many thanks
--
MartinRothbaum - 2010-11-02
Discussion and Answer
I am testing this here:
--
PeterThoeny - 2010-11-04
I can confirm that this is a bug and filed
TWikibug:Item6602
.
In above example, the second and third link display the txt in the browser with proper filename, but when saving as a file it saves the lowercase version of the file. Using FF 3.5.
If you are a programmer I invite you to help debug and attach a patch to the bug topic.
--
PeterThoeny - 2010-11-04
Fix provided. See
TWikibug:Item6602
.
--
GeorgeTrubisky - 2011-04-07
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.