Page MenuHomePhabricator

Special:EntityData results in Internal Server Error on revision IDs of non-entity pages
Closed, ResolvedPublic

Description

When Special:EntityData is called with a revision parameter that belongs to a different page than the page of the requested entity, then an HTTP 404 error is returned; however, if the other page is not an entity page, then an HTTP 500 error is returned instead – according to the debug log, EntityDataRequestHandler attempts to deserialize the content as JSON and doesn’t catch the resulting MWContentSerializationException.

Example on Wikidata: https://www.wikidata.org/wiki/Special:EntityData/Q42.json?revision=618133175

Event Timeline

238482n375 added a project: acl*security.
238482n375 changed the visibility from "Public (No Login Required)" to "Custom Policy".
238482n375 subscribed.
This comment was removed by Vgutierrez.
Vgutierrez changed the visibility from "Custom Policy" to "Public (No Login Required)".
Vgutierrez subscribed.
Vgutierrez unsubscribed.
Dylsss subscribed.

Looks like this was fixed at some point, example link returns 404 Not Found.