Tags:
create new tag
view all tags

SID-01010: Viewfile modifies downloaded filename

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Viewfile modifies downloaded filename
SupportCategory CategoryAttachments
TWiki version 5.0.0
Server OS SuSE (SLES) 11 SP1, kernel 2.6.32
Web server Apache 2.2.10
Perl version 5.10.0
Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt Batch_Process_Diagrams.txt r3 r2 r1 manage 0.1 K 2010-11-04 - 06:06 PeterThoeny This is v3
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2011-04-07 - GeorgeTrubisky
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.