Closed Bug 361530 Opened 18 years ago Closed 13 years ago

dmo.gov.uk - incorrect use of content-disposition HTTP header

Categories

(Tech Evangelism Graveyard :: English Other, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: mike.sykes, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1) Gecko/20061010 Firefox/2.0

At above URL:
   Click on "Gilts in Issue" (in first line of body text).
   Click on "Continue" until a page appears with four buttons at the bottom.
   Click on, e.g., Adobe PDF and note the file name, viz "untitled.pdf,.pdf"

The commas should not be there.

N.B. IE7 uses filename "untitled[1].pdf"



Reproducible: Always

Steps to Reproduce:
1. Click on "Gilts in Issue" (in first line of body text).
2. Click on "Continue" until a page appears with four buttons at the bottom.
3. Click on, e.g., Adobe PDF and note the file name, viz "untitled.pdf,.pdf"

Actual Results:  
Filename is "untitled.pdf,.pdf" 

Expected Results:  
Filename should be "untitled[1].pdf"
The server is sending a response with HTTP header..

Content-Disposition: inline;filename=untitled.pdf, inline; filename=ReportExporter1.pdf

That's an invalid content-disposition, but Firefox tries to get what it can.

The Content-Disposition is specced in RFC 2183 [1] with syntax in Section 2. The trailing comma is treated as part of "value" in..

filename-parm := "filename" "=" value

.. and the rest is probably considered junk.

[1] http://www.ietf.org/rfc/rfc2183.txt
Assignee: nobody → english-other
Status: UNCONFIRMED → NEW
Component: Download Manager → English Other
Ever confirmed: true
Product: Firefox → Tech Evangelism
QA Contact: download.manager → english-other
Summary: Downloaded filenames end with <comma> → dmo.gov.uk - incorrect use of content-disposition HTTP header
INCOMPLETE due to lack of activity since the end of 2009.

If someone is willing to investigate the issues raised in this bug to determine whether they still exist, *and* work with the site in question to fix any existing issues, please feel free to re-open and assign to yourself.

Sorry for the bugspam; filter on "NO MORE PRE-2010 TE BUGS" to remove.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INCOMPLETE
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.