Last modified: 2013-04-08 15:09:00 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 T48911, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46911 - action=protect requires all protected actions be specified, even if they are not being changed
action=protect requires all protected actions be specified, even if they are ...
Status: NEW
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.22.0
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-05 01:43 UTC by This, that and the other (TTO)
Modified: 2013-04-08 15:09 UTC (History)
5 users (show)

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


Attachments

Description This, that and the other (TTO) 2013-04-05 01:43:41 UTC
When using action=protect, you can apply edit protection by itself (protections=edit=sysop, for example.  But this will also remove any move protection already applied to the page.  This is confusing behaviour and should be rectified.
Comment 1 Brad Jorsch 2013-04-05 02:17:56 UTC
It's not that confusing, depending on how you think about it. You're specifying the set of protections that are to apply to the page, not just the set of protections you're wanting to modify.

But the big question is how would you do this in a backwards-compatible manner? We can't suddenly change the current behavior for clients that are *expecting* "protections=edit=sysop" to remove the move protection. Perhaps a boolean "modify", or something like that, to select the new behavior.
Comment 2 This, that and the other (TTO) 2013-04-05 04:54:32 UTC
IMO it was implemented poorly to begin with.  There should be a separate parameter for edit, move, upload etc. protection, rather than using one confusing parameter for everything.

Maybe we can have this as part of the API 2.0 project?
Comment 3 Umherirrender 2013-04-05 14:03:27 UTC
(In reply to comment #2)
> IMO it was implemented poorly to begin with.  There should be a separate
> parameter for edit, move, upload etc. protection, rather than using one
> confusing parameter for everything.
> 
> Maybe we can have this as part of the API 2.0 project?

That is hard to do, because MediaWiki can have more protections than edit, move, upload (and create).

A boolean parameter, so the protections are only overwrites the existing ones is a good idea.

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


Navigation
Links