Last modified: 2012-04-16 09:15:55 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 T28627, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26627 - rvnosuchsection for section 0 of an empty page
rvnosuchsection for section 0 of an empty page
Status: RESOLVED DUPLICATE of bug 14005
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
http://fr.wikipedia.org/w/api.php?int...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-07 19:57 UTC by NicoV
Modified: 2012-04-16 09:15 UTC (History)
6 users (show)

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


Attachments

Description NicoV 2011-01-07 19:57:29 UTC
When requesting contents of section 0, the result is an error rvnosuchsection when the page is empty. It should rather return an empty section.

Example :

Section 0 => error:
http://fr.wikipedia.org/w/api.php?intoken=edit&rvprop=content|ids|timestamp&prop=revisions|info&action=query&titles=Discussion:Corbeille%20d'or&rvsection=0

Entire content => ok:
http://fr.wikipedia.org/w/api.php?intoken=edit&rvprop=content|ids|timestamp&prop=revisions|info&action=query&titles=Discussion:Corbeille%20d'or
Comment 1 db [inactive,noenotif] 2011-01-07 21:18:44 UTC
action=parse also fails for section=0 if text is empty.
Comment 2 db [inactive,noenotif] 2011-01-10 17:09:11 UTC
This is not a api bug. index.php gives the same error.

Section 0 => error:
http://fr.wikipedia.org/w/index.php?title=Discussion:Corbeille_d%27or&action=edit&section=0

Entire content => ok:
http://fr.wikipedia.org/w/index.php?title=Discussion:Corbeille_d%27or&action=edit

*** This bug has been marked as a duplicate of bug 14005 ***

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


Navigation
Links