Page MenuHomePhabricator

PNG thumbnail of SVG file not displayed; returns "Unauthorized" error when attempting to view
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
The SVG image is not displayed where is is supposed to and only shows the file name. When clicking on one of the PNG previews, it returns with the text

"Unauthorized
This server could not verify that you are authorized to access the document you requested."

When attempting to view with the Media Viewer, a similar error appears and the image is not displayed. Links to the image used throughout Wikipedia are broken and only by viewing the original file are you able to see the image.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia): MediaWiki 1.44/wmf.8

Other information (browser name/version, screenshots, etc.): This error presents regardless of browser or skin used.

Event Timeline

Also happening for https://commons.wikimedia.org/wiki/File:Hypercubestar.svg used in 30+ articles spread over 14 different-language Wikipedias. Re-uploading and purging did not help. See start of a discussion at https://commons.wikimedia.org/wiki/Commons:Help_desk#SVG_image_claims_its_thumbnails_are_unauthorized

There is some discussion of the first broken image in this report at https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Broken_icon

  • Clicking on the PNG previews displays an error

Hmm, for the small rendered preview at https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Gnome-colors-list-remove.svg/72px-Gnome-colors-list-remove.svg.png I Cannot reproduce, displays correctly for me. Using "Open in Media Viewer" on https://commons.wikimedia.org/wiki/File:Gnome-colors-list-remove.svg also works correctly here. Accessing those from Europe.

Aklapper renamed this task from Icon is not visible and returns an error when attempting to view as a PNG to PNG thumbnail of SVG file not displayed; returns "Unauthorized" error when attempting to view.Jan 6 2025, 7:44 AM

Screenshot 2025-01-05 234511.png (1×2 px, 305 KB)

Screenshot 2025-01-05 234441.png (708×2 px, 163 KB)

It looks like not just SVG files are affected as others are having the same problem with a JPG file from this discussion here. https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Image_Preview_Issue

I went looking at swift, and e.g. the Buick thumbnail is correct (and identical) in both clusters.

Showing my working, again these are not new thumbs:

root@ms-fe2009:/home/mvernon# swift stat wikipedia-commons-local-thumb.c4 'c/c4/2020_Buick_Regal_Sportback_(United_States)_front_view_(cropped).jpg/280px-2020_Buick_Regal_Sportback_(United_States)_front_view_(cropped).jpg'
               Account: AUTH_mw
             Container: wikipedia-commons-local-thumb.c4
                Object: c/c4/2020_Buick_Regal_Sportback_(United_States)_front_view_(cropped).jpg/280px-2020_Buick_Regal_Sportback_(United_States)_front_view_(cropped).jpg
          Content Type: image/jpeg
        Content Length: 18008
         Last Modified: Fri, 30 Jul 2021 06:05:44 GMT
                  ETag: 88504a65aa38f6f290e6a6a53b9be9ee
   Content-Disposition: inline;filename*=UTF-8''2020_Buick_Regal_Sportback_(United_States)_front_view_(cropped).jpg
           X-Timestamp: 1627625143.02147
         Accept-Ranges: bytes
            X-Trans-Id: txc6be13797122456f868f7-00677baae8
X-Openstack-Request-Id: txc6be13797122456f868f7-00677baae8

root@ms-fe1009:/home/mvernon#  swift stat wikipedia-commons-local-thumb.c4 'c/c4/2020_Buick_Regal_Sportback_(United_States)_front_view_(cropped).jpg/280px-2020_Buick_Regal_Sportback_(United_States)_front_view_(cropped).jpg'
               Account: AUTH_mw
             Container: wikipedia-commons-local-thumb.c4
                Object: c/c4/2020_Buick_Regal_Sportback_(United_States)_front_view_(cropped).jpg/280px-2020_Buick_Regal_Sportback_(United_States)_front_view_(cropped).jpg
          Content Type: image/jpeg
        Content Length: 18008
         Last Modified: Fri, 30 Jul 2021 06:05:45 GMT
                  ETag: 88504a65aa38f6f290e6a6a53b9be9ee
   Content-Disposition: inline;filename*=UTF-8''2020_Buick_Regal_Sportback_(United_States)_front_view_(cropped).jpg
           X-Timestamp: 1627625144.01143
         Accept-Ranges: bytes
            X-Trans-Id: tx5595166fd10a4eef875b4-00677baae4
X-Openstack-Request-Id: tx5595166fd10a4eef875b4-00677baae4

The discussion was a little hard to understand, but it looks like they were talking about this thumbnail: https://en.wikipedia.org/wiki/File:Buick_Regal_2_--_10-30-2009.jpg
I have the same problem but when I click on the JPG previews of this file, I can see them. But I can't see it in the article.

Screenshot 2025-01-06 021723.png (1×2 px, 680 KB)
I'm on the west coast of the USA if its a localized problem.

So that's https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Buick_Regal_2_--_10-30-2009.jpg/280px-Buick_Regal_2_--_10-30-2009.jpg - can you see that image OK?

Because it's in both swift clusters OK, and isn't a new thumbnail:

root@ms-fe2009:/home/mvernon# swift stat wikipedia-commons-local-thumb.f8 'f/f8/Buick_Regal_2_--_10-30-2009.jpg/280px-Buick_Regal_2_--_10-30-2009.jpg'
               Account: AUTH_mw
             Container: wikipedia-commons-local-thumb.f8
                Object: f/f8/Buick_Regal_2_--_10-30-2009.jpg/280px-Buick_Regal_2_--_10-30-2009.jpg
          Content Type: image/jpeg
        Content Length: 19461
         Last Modified: Mon, 24 Oct 2022 01:25:46 GMT
                  ETag: b12d8b5e159f61fe969f3a6c1c5f0b26
   Content-Disposition: inline;filename*=UTF-8''Buick_Regal_2_--_10-30-2009.jpg
           X-Timestamp: 1666574745.26698
         Accept-Ranges: bytes
            X-Trans-Id: txdeea6cd99bd04235b9a13-00677baeb3
X-Openstack-Request-Id: txdeea6cd99bd04235b9a13-00677baeb3
root@ms-fe1009:/home/mvernon# swift stat wikipedia-commons-local-thumb.f8 'f/f8/Buick_Regal_2_--_10-30-2009.jpg/280px-Buick_Regal_2_--_10-30-2009.jpg'
               Account: AUTH_mw
             Container: wikipedia-commons-local-thumb.f8
                Object: f/f8/Buick_Regal_2_--_10-30-2009.jpg/280px-Buick_Regal_2_--_10-30-2009.jpg
          Content Type: image/jpeg
        Content Length: 19461
         Last Modified: Mon, 24 Oct 2022 01:24:59 GMT
                  ETag: b12d8b5e159f61fe969f3a6c1c5f0b26
   Content-Disposition: inline;filename*=UTF-8''Buick_Regal_2_--_10-30-2009.jpg
           X-Timestamp: 1666574698.68094
         Accept-Ranges: bytes
            X-Trans-Id: tx2ea43a0b3752460284dd9-00677baec0
X-Openstack-Request-Id: tx2ea43a0b3752460284dd9-00677baec0

Screenshot 2025-01-06 022359.png (1×2 px, 57 KB)
No I get the same error on both my main computer and my phone.

Can you get your browser's developer tools option to dump the request, please? That should give us the HTTP status code (and ideally the full headers of the request), which might help explain where this error is coming from...

HTTP/2 401
content-type: text/html; charset=UTF-8
content-length: 131
www-authenticate: Swift realm="AUTH_mw"
date: Mon, 06 Jan 2025 10:46:21 GMT
server: envoy
age: 0
x-cache: cp4047 miss, cp4047 pass
x-cache-status: pass
server-timing: cache;desc="pass", host;desc="cp4047"
strict-transport-security: max-age=106384710; includeSubDomains; preload
report-to: { "group": "wm_nel", "max_age": 604800, "endpoints": [{ "url": "https://intake-logging.wikimedia.org/v1/events?stream=w3c.reportingapi.network_error&schema_uri=/w3c/reportingapi/network_error/1.0.0" }] }
nel: { "report_to": "wm_nel", "max_age": 604800, "failure_fraction": 0.05, "success_fraction": 0.0}
x-content-type-options: nosniff
access-control-allow-origin: *
access-control-expose-headers: Age, Date, Content-Length, Content-Range, X-Content-Duration, X-Cache
timing-allow-origin: *
X-Firefox-Spdy: h2

I'm using firefox but that's what it spit out.

Hm, this isn't correct

root@ms-fe2009:/home/mvernon# swift stat wikipedia-commons-local-thumb.f8
Container 'wikipedia-commons-local-thumb.f8' not found

So in codfw I can stat objects in the f8 container, but not the container itself(!)

@Cyberdog958 I think this should be resolved now. Can you try again, please?

Yes it is now working on all my devices. Thanks for the fix.

MatthewVernon claimed this task.

[closing this task, leaving the parent for looking at the underlying issue]

The two images I was having trouble viewing before are now good. Thanks!