Page MenuHomePhabricator

Some images delivered with wrong application/x-www-form-urlencoded mime-type
Open, LowPublic


This happens on various thumbnail sizes of (not all of them).

Clicking on some of them, the browser prompts to download the file instead of displaying it. The cause is them being delivered with a application/x-www-form-urlencoded content-type instead of image/png

$ curl -s -D - -o /dev/null ""
HTTP/1.1 200 OK
Date: Sat, 03 Mar 2018 17:15:19 GMT
Content-Type: application/x-www-form-urlencoded
Content-Length: 59510
Connection: keep-alive
X-Object-Meta-Sha1Base36: 3lunouryyip6gpflvztb2p20l0nfs5k
Last-Modified: Tue, 30 May 2017 11:07:47 GMT
Etag: 5db3c2a1fee3897a8325c76b7d46ecd9
X-Timestamp: 1496142466.35998
X-Content-Dimensions: 1206x1349:1
X-Trans-Id: tx1ffbc88de8d04285bddbe-005a9ad71b
X-Varnish: 721112451, 61187040 65427943, 466571330
Via: 1.1 varnish (Varnish/5.1), 1.1 varnish (Varnish/5.1), 1.1 varnish (Varnish/5.1)
Accept-Ranges: bytes
Age: 268
X-Cache: cp1073 pass, cp3034 hit/2, cp3039 miss
X-Cache-Status: hit-local
Strict-Transport-Security: max-age=106384710; includeSubDomains; preload
X-Analytics: https=1;nocookies=1
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Age, Date, Content-Length, Content-Range, X-Content-Duration, X-Cache, X-Varnish
Timing-Allow-Origin: *

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 3 2018, 5:20 PM
Restricted Application added projects: Commons, Multimedia. · View Herald TranscriptMar 3 2018, 6:04 PM
Ramsey-WMF assigned this task to Cparle.Mar 9 2018, 6:43 PM
Ramsey-WMF added subscribers: Cparle, Ramsey-WMF.

Temporarily assigning to @Cparle since he resolved T173276 , which may be the same issue.

Fixed for the image in the ticket description, but not for the Swedish flag ...

Ramsey-WMF triaged this task as Low priority.Mar 21 2018, 3:47 PM
Ramsey-WMF moved this task from Untriaged to Next up on the Multimedia board.

I've moved the thumbnails problem you raised @Peter into T190701 - it's a bit different cos the file mentioned in this ticket it seems that it was the original that was stored incorrectly, where in your one it's the thumbnails ... and in any case the repair script that works for the file raised in this ticket doesn't work for the Swedish flag

@Ciencia_Al_Poder can you confirm that the file you raised this ticket about works ok now?

@Ciencia_Al_Poder can you confirm that the file you raised this ticket about works ok now?

It works now, thanks! However, clicking on the first version of that file gives the same problem. A minor thing I guess

Cparle added a comment.Apr 3 2018, 3:03 PM

I raised a separate ticket for the revisions, see T191306

Ok to close this one?

Ciencia_Al_Poder closed this task as Resolved.Apr 3 2018, 4:13 PM

Of course!

Ciencia_Al_Poder reopened this task as Open.Apr 19 2019, 9:12 AM

I came across another one:

The current image (original size) has the same problem. content-type: application/x-www-form-urlencoded

Time to run the script again, I guess