Page MenuHomePhabricator

Special:ApiSandbox is broken on wikidata.org
Closed, ResolvedPublic

Description

Example URL:
https://www.wikidata.org/wiki/Special:ApiSandbox#action=wbparsevalue&format=dump&parser=time&values=1

The loading spinner never stops.

With the inspection tools I see there was a response that does have the correct answer in it but it doesn't show up.

<!DOCTYPE HTML>
<html>
<head>
<title>MediaWiki API Result</title>
</head>
<body>
<br />
<small>
You are looking at the HTML representation of the DUMP format.<br />
HTML is good for debugging, but is unsuitable for application use.<br />
Specify the format parameter to change the output format.<br />
To see the non HTML representation of the DUMP format, set format=dump.<br />
See the <a href='https://www.mediawiki.org/wiki/API'>complete documentation</a>, or
<a href='/w/api.php'>API help</a> for more information.
</small>
<pre style='white-space: pre-wrap;'>
...

My local installation doesn't have this problem.

There are two bugs here:

  1. Even if the API returns strange HTML the loading spinner should stop and show it as it is.
  2. The API returns strange HTML.

Version: master
Severity: blocker
URL: https://www.wikidata.org/wiki/Special:ApiSandbox#action=wbparsevalue&format=dump&parser=time&values=1

Details

Reference
bz64047

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:13 AM
bzimport set Reference to bz64047.

Change 126942 had a related patch set uploaded by Thiemo Mättig (WMDE):
ApiSandbox broken because of undefined variable

https://gerrit.wikimedia.org/r/126942

Change 126942 merged by jenkins-bot:
ApiSandbox broken because of undefined variable

https://gerrit.wikimedia.org/r/126942

Change 127017 had a related patch set uploaded by MaxSem:
ApiSandbox broken because of undefined variable

https://gerrit.wikimedia.org/r/127017

Change 127017 merged by jenkins-bot:
ApiSandbox broken because of undefined variable

https://gerrit.wikimedia.org/r/127017