Edgewall Software
Modify

Opened 17 years ago

Closed 16 years ago

#6524 closed defect (worksforme)

PDF Attachments sometimes download/direct show

Reported by: Markus.Staab Owned by: Jonas Borgström
Priority: normal Milestone:
Component: attachment Version:
Severity: normal Keywords: pdf verify
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I have a lot of PDF Attachments in my wiki.

There is some strange behaviour with those attachments: Some of them are directly opened by the browser, if you click on the link, but occasionally some of the pdf files are offered for download…

but there is no really difference in the two pdf files..

Attachments (0)

Change History (8)

comment:1 by sid, 17 years ago

Keywords: needinfo added

What OS/browser are you using? Also, please fill in the Trac version field when submitting tickets.

comment:2 by Markus.Staab, 17 years ago

Keywords: needinfo removed
Milestone: 0.10.5

Using FireFox 2.0.0.11 on WinXP SP2 and TRAC 0.10.5

comment:3 by trac@…, 17 years ago

I've run into this with Adobe Illustrator .ai files from CS3 on a Mac, Firefox 2, and Trac 0.10.4. I'm assuming the file magic was not catching the right kind of binary in the first X bytes to mark it download-only. The odd thing is that it was impossible to get the file back out in workable form on a Mac or WinXP, even with raw format download.

comment:4 by Markus.Staab, 17 years ago

On Serverside we use a Windows 2003 Advanced Server

comment:5 by Markus.Staab, 17 years ago

Maybe this has something todo with the tracd or the file itself..

trac should override/send the http-headers itself, e.g.

Content-Disposition: attachment;

comment:6 by Christian Boos, 16 years ago

Component: generalattachment
Keywords: pdf verify added
Milestone: 0.10.60.11.6

comment:7 by anonymous, 16 years ago

This ticket should be closed, this seems more like a documentation bug:

  1. If you do not want Content-Disposition: attachment to be sent, make render_unsafe_content = true. You need to do this in the correct section, I put it in all these section: ![browser], ![wiki] and ![attachment]
  1. If you do not want trac to display unknown/cannot render page for pdf/msword, then use [raw-attachment:attach.pdf]

It took me some time to figure these out and you don't need any plugins or patches IMHO.

comment:8 by Christian Boos, 16 years ago

Milestone: 0.11.6
Resolution: worksforme
Status: newclosed

Well, the behavior is documented in TracIni, at least.

In case the actual behavior is different than documented, please reopen and describe the steps to reproduce the problem.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.