Page MenuHomePhabricator

Thumbnail URL construction inconsistent (leading to URL with >300 characters creating 503 error when accessing the "wrong" way)
Closed, DuplicatePublic

Description

For many images resized versions are not displayed. they are used in jury tool to rate the photographs of Wiki Loves Monuments

Example of error page:

Error
Our servers are currently experiencing a technical problem. This is probably temporary and should be fixed soon.
Please try again in a few minutes.

If you report this error to the Wikimedia System Administrators, please include the details below.

Request: GET https://upload.wikimedia.org/wikipedia/commons/thumb/9/9b/Област_Кърджали_-_Община_Кърджали_-_с._Горна_крепост_-_Античен_и_средновековен_археологически_комплекс_Перперикон_-_(1).jpg/1280px-Област_Кърджали_-_Община_Кърджали_-_с._Горна_крепост_-_Античен_и_средновековен_археологически_комплекс_Перперикон_-_(1).jpg, from 10.20.0.181 via cp1099 cp1099 ([10.64.32.81]:3128), Varnish XID 2085267195
Forwarded for: 12.345.678.90, 10.20.0.173, 10.20.0.173, 10.20.0.181
Error: 503, Service Unavailable at Sun, 11 Oct 2015 15:31:30 GMT

Event Timeline

intracer created this task.Oct 12 2015, 7:19 PM
intracer raised the priority of this task from to Needs Triage.
intracer updated the task description. (Show Details)
intracer added a project: Commons.
intracer added a subscriber: intracer.
Restricted Application added subscribers: Base, Steinsplitter, Aklapper. · View Herald TranscriptOct 12 2015, 7:19 PM
intracer updated the task description. (Show Details)Oct 12 2015, 7:21 PM
intracer set Security to None.
Base updated the task description. (Show Details)Oct 12 2015, 7:41 PM
Base added a comment.Oct 12 2015, 8:11 PM

Is it because of the too long name? Are there examples of the error being observed with short named files?

So there is an (un)documented feature to add /1280px-thumbnail.jpg instead of full filename, and it works?
Good catch, is it documeted somewhere?

I go to https://commons.wikimedia.org/wiki/File:Област_Кърджали_-_Община_Кърджали_-_с._Горна_крепост_-_Античен_и_средновековен_археологически_комплекс_Перперикон_-_(1).jpg , I click "1,280 × 947 pixels" and it works as that uses the URL suffix /1280px-thumbnail.jpg.

Now how to see/get a link that leads to the error page above? Where are those "long" type of URLs used/shown?

Aklapper renamed this task from Resized image not displayed to Thumbnail URL with >300 characters creates 503 error.Oct 13 2015, 9:28 AM
Aklapper updated the task description. (Show Details)
Restricted Application added a project: Multimedia. · View Herald TranscriptOct 13 2015, 9:28 AM

I see... so the pattern is inconsistent, because some other File: pages do create a different last part of the URL which is displayed / linked on the File: page. Confusing.

Restricted Application added a subscriber: Matanya. · View Herald TranscriptOct 13 2015, 9:31 AM
Aklapper renamed this task from Thumbnail URL with >300 characters creates 503 error to Thumbnail URL construction inconsistent (leading to URL with >300 characters creating 503 error when accessing the "wrong" way).Oct 13 2015, 9:31 AM
Tgr added a subscriber: Tgr.Oct 13 2015, 11:04 AM

Duplicate of T106517 (the 501 there is a typo, or has changed since). See also the explanation of URL generation there, basically it's a length limit.