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

Description

When you download a file which has a the Content-Disposition header it ignores it. An example: https://megworld.co.uk/content_disposition.txt

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 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html).

Change History (4)

comment:1 Changed 5 years ago by codewrangler

xray7224,

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 Changed 5 years ago by xray7224

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 Changed 5 years ago by pulkomandy

Resolution: fixed
Status: newclosed

Fixed in https://github.com/haiku/webkit/commit/f32f33f3ce55f6ceb971329562bc2953e63e1761.

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

comment:4 Changed 5 years ago by axeld

Which should be handled better in any case.

Note: See TracTickets for help on using tickets.