Last modified: 2014-07-07 17:10:14 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 T62191, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60191 - AbuseFilter: Add user_rights variable
AbuseFilter: Add user_rights variable
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
AbuseFilter (Other open bugs)
unspecified
All All
: High enhancement (vote)
: ---
Assigned To: Kunal Mehta (Legoktm)
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-18 03:16 UTC by Krinkle
Modified: 2014-07-07 17:10 UTC (History)
5 users (show)

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


Attachments

Description Krinkle 2014-01-18 03:16:45 UTC
Right now various abuse filters are causing unintended hits due to them having to resort to user_groups where user_rights would be more appropriate.

Especially with regards to global user groups granting rights, they can sometimes be really intrusive and unexpectedly causing someone to be unable to make an edit on a local wiki.
Comment 1 Aravind K N 2014-01-25 08:06:58 UTC
I'd like to work on this bug but would someone explain how this works?
Comment 2 Krinkle 2014-03-30 08:30:03 UTC
In AbuseFilter.class.php there are variables defined.

user_groups, for example, is populated from User::getEffectiveGroups.

You'd add a similar one that is populated with the user rights.
Comment 3 Krinkle 2014-03-30 08:34:55 UTC
Raising priority. This is making maintenance of rules very hard because we have to hardcode all user groups that contain a certain right instead of being code the actual intent via the user right.

Plus it is not just annoying to work around, it is causing problems as global sysops, stewards, globalinterface users often get hit by a disallowing abuse filter in routine maintenance because the local wiki doesn't know about these groups.

So, for example, in globaleditinterface, if some wiki (*cough*, en.wiktionary.org) has an abuse filter rule to essentially protect user subpages users from editing by other users (except sysops bots etc. and other whitelisted user groups), I am unable to edit their pages even though I'm supposed to be able to edit protected pages and explicitly user script subpages.

If they were able to look for the "bot" right (instead of bot group), and "edituserjs" or "protect" right (instead of sysop), this would avoid having to update all filters when local groups change, and will automatically also work as expected for global users.
Comment 4 Gerrit Notification Bot 2014-03-31 05:01:11 UTC
Change 122279 had a related patch set uploaded by Legoktm:
Add user_rights variable

https://gerrit.wikimedia.org/r/122279
Comment 5 Gerrit Notification Bot 2014-07-07 12:58:03 UTC
Change 122279 merged by jenkins-bot:
Add user_rights variable

https://gerrit.wikimedia.org/r/122279

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


Navigation
Links