Last modified: 2008-01-26 00:19:53 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 12793 - Special:Export only works for sysops in MediaWiki namespace
Special:Export only works for sysops in MediaWiki namespace
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-01-26 00:16 UTC by Broken Arrow
Modified: 2008-01-26 00:19 UTC (History)
0 users

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


Description Broken Arrow 2008-01-26 00:16:58 UTC
Trying to export any page from the MediaWiki namespace with Special:Export fails to give the page contents if the user doesn't have sysop rights on that wiki. Only the <siteinfo> section is output, the <page> section is missing.
Comment 1 Brion Vibber 2008-01-26 00:19:53 UTC
Fixed in r30160.

SpecialExport.php was using $title->userCan('read'), which is alas *not* the same as $title->userCanRead(). It seems to return a result as if you wanted to edit or something...

This is horribly wrong and the permissions code should be fixed; for now I've replaced the guilty call with the userCanRead() which appears to return the correct result (same as the main wiki can-read check).

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