https://bugzilla.wikimedia.org/show_bug.cgi?id=25226

           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
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: c...@tools.wikimedia.de
                CC: gpaum...@wikimedia.org, bryan.tongm...@gmail.com


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://upload.wikimedia.org/wikipedia/en/archive/b/b9/20091220134945!21st_World_Scout_Jamboree.svg'
  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: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to