Last modified: 2009-12-30 05:20:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10898 - API does not return an edit token for nonexistent pages when logged in
API does not return an edit token for nonexistent pages when logged in
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal trivial with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 11017 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-12 22:01 UTC by Craig Spurrier
Modified: 2009-12-30 05:20 UTC (History)
3 users (show)

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


Attachments

Description Craig Spurrier 2007-08-12 22:01:36 UTC
The API does not return an edit token for nonexistent pages when logged in. This makes it impossible to get an edit token for the creation of new pages without resorting to screen scraping(such as for a bot). When logged out it returns  +\.
Comment 1 Victor Vasiliev 2007-08-21 19:19:55 UTC
*** Bug 11017 has been marked as a duplicate of this bug. ***
Comment 2 Roan Kattouw 2007-08-21 21:16:12 UTC
Since edit tokens are the same for each page, but only differ per session (i.e. they only change between logins), you can just request an edit token for a page you know exists (try Main Page) as a temporary measure. I'll work on getting tokens to work for non-existent pages, but since the computer that stores my SVN stuff is temporarily unavailable, it may take some time.
Comment 3 Roan Kattouw 2007-09-03 20:19:53 UTC
Fixed in r23457
Comment 4 Roan Kattouw 2007-09-03 20:20:20 UTC
Whoops, that has to be r25457. Sorry.
Comment 5 Bryan Tong Minh 2007-09-06 08:41:28 UTC
Does still not work: http://commons.wikimedia.org/w/api.php?action=query&prop=info&intoken=edit&titles=Main%20Pageeeeee. Wikimedia appears to be running $Id: ApiQueryInfo.php 25457 2007-09-03 20:17:53Z catrope $.
Comment 6 Roan Kattouw 2007-09-06 11:29:14 UTC
It did work, but only if at least one existing title was specified. Fixed this in r25581 by adding a '&'.

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


Navigation
Links