Last modified: 2014-11-13 09:58:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74928, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72928 - Unparsed wikitext on [[Special:ApiSandbox]]
Unparsed wikitext on [[Special:ApiSandbox]]
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
ApiSandbox (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: code-update-regression
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-03 23:03 UTC by Helder
Modified: 2014-11-13 09:58 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2014-11-03 23:03:36 UTC
The description of the parameters are not parsed anymore:
https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&prop=revisions&format=json&rvlimit=10

E.g.:

May be used in several ways: # Get data about a set of pages (last revision), by setting titles or pageids. # Get revisions for one given page, by using titles or pageids with start, end, or limit. # Get data about a set of revisions by setting their IDs with revids.

Which properties to get for each revision:
;ids:The ID of the revision. ;flags:Revision flags (minor). ;timestamp:The timestamp of the revision. ;user:User that made the revision. ;userid:User id of revision creator. ;size:Length (bytes) of the revision. ;sha1:SHA-1 (base 16) of the revision. ;contentmodel:Content model id. ;comment:Comment by the user for revision. ;parsedcomment:Parsed comment by the user for the revision. ;content:Text of the revision. ;tags:Tags for the revision.
Comment 1 Brad Jorsch 2014-11-03 23:37:04 UTC
Note that ApiSandbox never had *parsed* wikitext. Before recent changes it was trying to pretty-print the plain text that was handed to it. Unfortunately the pretty-printing isn't handling the wikitext in a sensible way.

Rewriting ApiSandbox to clean stuff like this up is on my list of things to do, or Gerrit change #168761 might wind up taking care of this.
Comment 2 Gerrit Notification Bot 2014-11-04 15:54:53 UTC
Change 168761 had a related patch set uploaded by Umherirrender:
Use html helpformat for paraminfo

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links