Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#10989 closed bug (fixed)

Webpositive ignores Content-Disposition header

Reported by: xray7224 Owned by: pulkomandy
Priority: normal Milestone: R1
Component: Applications/WebPositive Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


When you download a file which has a the Content-Disposition header it ignores it. An example:

This should download the file with the filename "test.txt" however webpositive doesn't download it as the "attachment" in the Content-Disposition header suggests and files which it does download it ignores the filename specified.

RFC2616 section 19.5.1 (

Change History (4)

comment:1 by codewrangler, 5 years ago


FYI, the text file you are pointing to, is on a server with an expired certificate. So, it is not trusted. If you want to be able to show the file, you should upload it as an attachment to this issue entry.

comment:2 by xray7224, 5 years ago

I shall fix the cert tonight, sorry for that. I can't upload it as the file doesn't have any header data it's just a text file i made up in order to show this bug. I explicitly set a header different from the URL. That can't be done with trac.

comment:3 by pulkomandy, 5 years ago

Resolution: fixed
Status: newclosed

Fixed in

I think your header is missing a closing quote for the filename so it is now saved as test.tx.

comment:4 by axeld, 5 years ago

Which should be handled better in any case.

Note: See TracTickets for help on using tickets.