Last modified: 2014-10-16 08:28:48 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 T35731, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33731 - Uploading to a protected file returns permissiondenied instead of protectedpage
Uploading to a protected file returns permissiondenied instead of protectedpage
Status: NEW
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.18.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-14 22:27 UTC by A_proofreader
Modified: 2014-10-16 08:28 UTC (History)
8 users (show)

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


Attachments

Description A_proofreader 2012-01-14 22:27:32 UTC
The bug was seen on Wikia (Special:Version states that version 1.16.5 is in use) and Wikipedia English (Special:Version states that version 1.18wmf-1 derived from r107965 is in use).

Ending a page edit with the proper token in the API yields an error such as

<error code="protectedpage" info="The ``protect'' right is required to edit this page" />

But ending a page upload with the proper token yields an error such as

<error code="permissiondenied" info="Permission denied" />

I believe the permissiondenied code is inappropriate in this situation, because it is usually used to signify that the user does not have the right to perform this action regardless of page (for example, an anonymous user cannot upload files to the wiki). It should be the protectedpage code to signify that the user does have the right but cannot exercise it for specific protected (hence the name) pages.

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


Navigation
Links