Last modified: 2008-12-03 19:04:02 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 T18516, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16516 - API: rvsection= doesn't work for included sections like "T-2"
API: rvsection= doesn't work for included sections like "T-2"
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.14.x
All All
: Normal minor (vote)
: ---
Assigned To: Roan Kattouw
http://en.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-01 10:50 UTC by P.Copp
Modified: 2008-12-03 19:04 UTC (History)
3 users (show)

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


Attachments

Description P.Copp 2008-12-01 10:50:20 UTC
Included sections get the prefix "T-" so the parser knows it has only to consider the actually included part of a page (sections within <noinclude>...</noinclude>) are ignored). However, if you pass a section number like T-2 to the api with prop=revisions&rvprop=content&rvsection=T-2 , you'll always get the first section, probably because section numbers are validated as integers by the api.
Comment 1 Roan Kattouw 2008-12-03 19:04:02 UTC
(In reply to comment #0)
> Included sections get the prefix "T-" so the parser knows it has only to
> consider the actually included part of a page (sections within
> <noinclude>...</noinclude>) are ignored). However, if you pass a section number
> like T-2 to the api with prop=revisions&rvprop=content&rvsection=T-2 , you'll
> always get the first section,
Fixed in r44181.

> probably because section numbers are validated as
> integers by the api.
Exactly. Changing rvsection to a string parameter solved the bug.


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


Navigation
Links