Summary: Old revisions served with wrong content type
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: Images and files

The older file revisions of [[en:File:21st_World_Scout_Jamboree.svg]] are PNG
images, the newest revision is an SVG. When I click on the older revisions, I
get an XML parsing error in my browser. This made me suspect a bad
content-type, which I confirmed (see below).

Apparently, the backend needs to check the file type explicitly for old
revisions, not using the file extension or the stored type of the newest
revision. Presumably the file type could be cached so that it is only checked
once per image. 

Trimmed output: 
$ wget -S
  HTTP/1.0 200 OK
  Server: Sun-Java-System-Web-Server/7.0
  Date: Mon, 20 Sep 2010 11:27:26 GMT
  Content-Type: image/svg+xml
  Last-Modified: Tue, 08 Dec 2009 22:22:29 GMT
Length: 71991 (70K) [image/svg+xml]

$ file 20091220134945\!21st_World_Scout_Jamboree.svg
20091220134945!21st_World_Scout_Jamboree.svg: PNG image, 300 x 300, 8-bit/color
RGBA, non-interlaced

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

Wikibugs-l mailing list

Reply via email to