{"id":899,"date":"2007-01-05T16:50:57","date_gmt":"2007-01-06T00:50:57","guid":{"rendered":"http:\/\/cephas.net\/blog\/2007\/01\/05\/firefox-mimetypesrdf-corruption\/"},"modified":"2007-01-05T16:50:57","modified_gmt":"2007-01-06T00:50:57","slug":"firefox-mimetypesrdf-corruption","status":"publish","type":"post","link":"https:\/\/cephas.net\/blog\/2007\/01\/05\/firefox-mimetypesrdf-corruption\/","title":{"rendered":"Firefox mimeTypes.rdf corruption"},"content":{"rendered":"<p>Came across another interesting bug today involving Firefox and mime types.  Firefox uses a file called mimeTypes.rdf (stored in your profile folder) to keep track of a) what application should be opening the file you&#8217;re downloading and b) what kind of file it should tell a server it&#8217;s sending when you upload a file.  And it works &#8230; for the most part.  See, if you <a href=\"http:\/\/philringnalda.com\/mtests\/uploadtype\/unknown\/index.pdf\">download a PDF file<\/a> from a server that (incorrectly) states that the content-type of the file is &#8216;application\/unknown&#8217;, choose to open it using Adobe Acrobat and then check the box that says &#8216;Do this automatically from now on&#8217;, Firefox will store that bit of knowledge away in mimeTypes.rdf. Now go and use a <a href=\"http:\/\/philringnalda.com\/mtests\/uploadtype\/\">web application that you upload files to<\/a> and which analyzes the content-type of the files you&#8217;re uploading and upload a PDF file. If you&#8217;re using <a href=\"http:\/\/livehttpheaders.mozdev.org\/\">LiveHTTPHeaders<\/a>, you&#8217;ll notice that you&#8217;re not sending &#8216;application\/pdf&#8217; but instead &#8216;application\/x-download&#8217;.  <\/p>\n<p>It looks like this bug was filed in bugzilla a <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=323322#c11\">couple<\/a> <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=316143\">times<\/a> and even <a href=\"http:\/\/developer.mozilla.org\/en\/docs\/SVG:mimeTypes.rdf_corruption\">acknowledged in their documentation<\/a>, but has yet to be fixed. You can &#8216;fix&#8217; the problem by deleting your mimeTypes.rdf file and restarting Firefox.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Came across another interesting bug today involving Firefox and mime types. Firefox uses a file called mimeTypes.rdf (stored in your profile folder) to keep track of a) what application should be opening the file you&#8217;re downloading and b) what kind of file it should tell a server it&#8217;s sending when you upload a file. And &hellip; <a href=\"https:\/\/cephas.net\/blog\/2007\/01\/05\/firefox-mimetypesrdf-corruption\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Firefox mimeTypes.rdf corruption<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,12],"tags":[],"_links":{"self":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/899"}],"collection":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/comments?post=899"}],"version-history":[{"count":0,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/899\/revisions"}],"wp:attachment":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/media?parent=899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/categories?post=899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/tags?post=899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}