Comment 11 for bug 239952

Revision history for this message
TJ (tj) wrote :

This is a combination of two 'bugs'. I'll address the first in this comment.

1. ubuntuforums.com web-server is misconfigured.

2. xulrunner correctly figuring out the mime-type from the file-extension but fails to set the variable that tells it which application to launch, therefore failing when it checks if mDefaultApplication is valid (not-null).

Web-server Content-Types response for attachments. For the following file attachments it reports the wrong mime-types. For text, the elements are reversed!:

.txt == text/plain
content-disposition: attachment; filename*=ISO-8859-1''test4%20with%20space.txt

Content-Type: plain/text

.odt == application/vnd.oasis.opendocument.text
content-disposition: attachment; filename*=ISO-8859-1''test1.odt

Content-Type: unknown/unknown

.ods == application/vnd.oasis.opendocument.spreadsheet
content-disposition: attachment; filename*=ISO-8859-1''test2.ods

Content-Type: unknown/unknown

.gz == application/x-gzip
content-disposition: attachment; filename*=ISO-8859-1''test4%20with%20space.txt.gz

Content-Type: unknown/unknown

PDF is correct though:

.pdf == "application/pdf
content-disposition: attachment; filename*=ISO-8859-1''test5.pdf

Content-Type: application/pdf