Page MenuHomePhabricator

Install AbuseFilter on Hindi Wikipedia
Closed, ResolvedPublic

Description

Author: mayurdce

Description:

  • MediaWiki version: 1.16wmf4
  • PHP version: 5.2.4-2ubuntu5.7wm1 (apache2handler)
  • MySQL version: 4.0.40-wikimedia-log

Hi I am an administrator from hindi wiki.Like other wiki abuse filter is not installed in our project.Due to which many unknown ips make vandalism by putting their abuse in our article pages.our article is being continuosly damaged by vandalers.So We need some Abuse filter managers and its installation.I have made all media wiki file for it.But at last found that it is not installed in hindi wiki.So please install this tool on hindi wikipedia and give priviledges to admins to add Abuse filter managers.Our community will be grateful to you. I have given the community concenses in url given above, our cmmunity members are in favours of this.


Version: unspecified
Severity: enhancement
URL: http://hi.wikipedia.org/wiki/%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF%E0%A4%AA%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE:%E0%A4%9A%E0%A5%8C%E0%A4%AA%E0%A4%BE%E0%A4%B2#New_extentions

Details

Reference
bz24394

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 21 2014, 11:09 PM
bzimport set Reference to bz24394.
bzimport created this task.Jul 15 2010, 6:45 PM

mayurdce wrote:

how much time it will take to install abuse filter or i have forgot to mention something, the link for the community is at our village pump (http://hi.wikipedia.org/wiki/%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF%E0%A4%AA%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE:%E0%A4%9A%E0%A5%8C%E0%A4%AA%E0%A4%BE%E0%A4%B2#Abuse_Filter_Installation_.26_granting_admins.28syopp.29_to_add_Abuse_filter_managers). We hope that its installation would be done soon.

Thankyou
Mayurkumar

mayurdce wrote:

How much time it will take to install these features. please install these features as soon as possible.hindi wiki will be greatful to Bugzilla

jeluf wrote:

Done.

Index: InitialiseSettings.php

  • InitialiseSettings.php (revision 1011)

+++ InitialiseSettings.php (working copy)
@@ -5866,7 +5866,7 @@

		'sysop' => array( 'patroller', 'autopatrolled' ),
    ),
    '+hiwiki' => array(
  • 'sysop' => array( 'confirmed', 'rollbacker', 'reviewer', 'autopatrolled', 'editprotected' ),

+ 'sysop' => array( 'confirmed', 'rollbacker', 'reviewer', 'autopatrolled', 'editprotected', 'abusefilter' ),

    ),
    '+hrwiki' => array(
	    'bureaucrat' => array( 'sysop', 'bureaucrat', 'bot', 'patroller', 'autopatrolled' ),

@@ -6121,7 +6121,7 @@

		'sysop' => array( 'patroller', 'autopatrolled' ),
    ),
    '+hiwiki' => array(
  • 'sysop' => array( 'confirmed', 'rollbacker', 'reviewer', 'autopatrolled', 'editprotected' ),

+ 'sysop' => array( 'confirmed', 'rollbacker', 'reviewer', 'autopatrolled', 'editprotected', 'abusefilter' ),

    ),
    '+hrwiki' => array(
	    'bureaucrat' => array( 'bot', 'patroller', 'autopatrolled' ),

@@ -7706,6 +7706,7 @@

'flaggedrevs_labswikimedia' => true, // Aaron 2010-04-21
'frwiki' => true,
'hewiki' => true, // Andrew 2009-04-01 bug 18300

+ 'hiwiki' => true,

'hsbwiki' => true,
'huwiki' => true,
'itwiki' => true,

mayurdce wrote:

sorry abuse filter is not working, niether we can add abuse filter user, please check it.I have imported many abuse filter from eng wiki. but they are not working.

jeluf wrote:

What doesn't work?

Looking at the log, I have the impression that it works:
http://hi.wikipedia.org/w/index.php?title=%E0%A4%B5%E0%A4%BF%E0%A4%B6%E0%A5%87%E0%A4%B7:AbuseLog&wpSearchFilter=18

If you're missing groups, please specify which groups you're missing, which permissions these groups should have and which groups should have the permission to assign these groups.

mayurdce wrote:

If you will observe here http://hi.wikipedia.org/wiki/%E0%A4%B5%E0%A4%BF%E0%A4%B6%E0%A5%87%E0%A4%B7:ListGroupRights admins(प्रबंधक) has right to add group of abuse filter.but when we watch in user right managment, no option is available of abuse filter user group.As per our request at http://hi.wikipedia.org/wiki/%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF%E0%A4%AA%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE:%E0%A4%9A%E0%A5%8C%E0%A4%AA%E0%A4%BE%E0%A4%B2#Abuse_Filter_Installation_.26_granting_admins.28syopp.29_to_add_Abuse_filter_managers we want you to allow admins to add or remove these groups

mayurdce wrote:

Actually abuse filter is working but Right to add/remove abuse filter manager group has not been enabled or this group is not enasbled. because in specail:userrights deatail showing that admin have right to add/remove abuse filter group.but when we go to user right management to change rights of any user to add him in this group, there is no option available.Thias is the problem i talking about.So Pleas enable this group and grant bureaucrats to add/remove this group.

Thank you & Regards

jeluf wrote:

*** Bug 24900 has been marked as a duplicate of this bug. ***

jeluf wrote:

Granted "abusefilter-modify" to user group "abusefilter".

+} elseif ($wgDBname == 'hiwiki') {
+ $wgGroupPermissions['abusefilter']['abusefilter-modify'] = true;

mayurdce wrote:

hi ,thanks for enavling this group but we asked for bureucretat to add/remove this group not admins as par Bug 24900

jeluf wrote:

Done.

Index: InitialiseSettings.php

  • InitialiseSettings.php (revision 1108)

+++ InitialiseSettings.php (working copy)
@@ -5903,8 +5903,8 @@

		'sysop' => array( 'patroller', 'autopatrolled' ),
    ),
    '+hiwiki' => array(
  • 'bureaucrat' => array( 'interface_editor', 'flood', ),
  • 'sysop' => array( 'confirmed', 'rollbacker', 'autopatrolled', 'editprotected', 'abusefilter', 'patroller', ),

+ 'bureaucrat' => array( 'interface_editor', 'flood', 'abusefilter', ),
+ 'sysop' => array( 'confirmed', 'rollbacker', 'autopatrolled', 'editprotected', 'patroller', ),

    ),
    '+hrwiki' => array(
	    'bureaucrat' => array( 'sysop', 'bureaucrat', 'bot', 'patroller', 'autopatrolled' ),

@@ -6164,8 +6164,8 @@

		'sysop' => array( 'patroller', 'autopatrolled' ),
    ),
    '+hiwiki' => array(
  • 'bureaucrat' => array( 'sysop', 'interface_editor', 'flood', ),
  • 'sysop' => array( 'confirmed', 'rollbacker', 'autopatrolled', 'editprotected', 'abusefilter', 'patroller', ),

+ 'bureaucrat' => array( 'sysop', 'interface_editor', 'flood', 'abusefilter'),
+ 'sysop' => array( 'confirmed', 'rollbacker', 'autopatrolled', 'editprotected', 'patroller', ),

    ),
    '+hrwiki' => array(
	    'bureaucrat' => array( 'bot', 'patroller', 'autopatrolled' ),

mayurdce wrote:

Hi, Due to some limitations of abuse filters we are not able to revert and hide some filetrs, please enable following setting too

$wgGroupPermissions['bureaucrats']['abusefilter-modify-restricted'] = true;
$wgGroupPermissions['bureaucrats']['abusefilter-revert'] = true;
$wgGroupPermissions['bureaucrats']['abusefilter-private'] = true;

thank you and regards

mayurdce wrote:

Please reconfigure this exetension as-

$wgGroupPermissions['bureaucrat','abusefilter']['abusefilter-modify'] = true;
$wgGroupPermissions['*']['abusefilter-log-detail'] = true;
$wgGroupPermissions['*']['abusefilter-view'] = true;
$wgGroupPermissions['*']['abusefilter-log'] = true;
$wgGroupPermissions['bureaucrat']['abusefilter-private'] = true;
$wgGroupPermissions['bureaucrat']['abusefilter-view-private'] = true;
$wgGroupPermissions['bureaucrat','abusefilter','sysop']['abusefilter-revert'] = true;

Thank you and regards

mayurdce wrote:

Please reconfigure this exetension as-

$wgGroupPermissions['bureaucrat','abusefilter']['abusefilter-modify'] = true;
$wgGroupPermissions['sysop','abusefilter']['abusefilter-log-detail'] = true;
$wgGroupPermissions['*']['abusefilter-view'] = true;
$wgGroupPermissions['*']['abusefilter-log'] = true;
$wgGroupPermissions['bureaucrat']['abusefilter-private'] = true;
$wgGroupPermissions['bureaucrat']['abusefilter-view-private'] = true;
$wgGroupPermissions['sysop','abusefilter']['abusefilter-revert'] =
true;

Thank you and regards

mayurdce wrote:

Please reconfigure this exetension as-

$wgGroupPermissions['bureaucrat','abusefilter']['abusefilter-modify'] = true;
$wgGroupPermissions['*']['abusefilter-log-detail'] = true;
$wgGroupPermissions['*']['abusefilter-view'] = true;
$wgGroupPermissions['*']['abusefilter-log'] = true;
$wgGroupPermissions['bureaucrat']['abusefilter-private'] = true;
$wgGroupPermissions['bureaucrat']['abusefilter-view-private'] = true;
$wgGroupPermissions['sysop','abusefilter']['abusefilter-revert'] =
true;

hi how much delay will it take, its about three month to go.please resolve this bug as soon as possible to bugzilla team

Thank you and regards,

mayurdce wrote:

Hi you have spelled bureaucrat for bureaucrats which have given above desired rights to a new group bureaucrats.and we had desired to give "abusefilter-modify" right to bureaucrat,abusefilter group only.Please reconfigure this extension as-

$wgGroupPermissions['bureaucrat','abusefilter']['abusefilter-modify'] = true;
$wgGroupPermissions['bureaucrat']['abusefilter-modify-restricted'] = true;
$wgGroupPermissions['*']['abusefilter-log-detail'] = true;
$wgGroupPermissions['*']['abusefilter-view'] = true;
$wgGroupPermissions['*']['abusefilter-log'] = true;
$wgGroupPermissions['bureaucrat']['abusefilter-private'] = true;
$wgGroupPermissions['bureaucrat']['abusefilter-view-private'] = true;
$wgGroupPermissions['sysop','abusefilter']['abusefilter-revert'] =
true;

mayurdce wrote:

Hi you have spelled bureaucrat for bureaucrats which have given above desired
rights to a new group bureaucrats.and we had desired to give
"abusefilter-modify" right to bureaucrat,abusefilter group only.Please
reconfigure this extension as-

$wgGroupPermissions['bureaucrat','abusefilter']['abusefilter-modify'] = true;
$wgGroupPermissions['bureaucrat']['abusefilter-modify-restricted'] = true;
$wgGroupPermissions['*']['abusefilter-log-detail'] = true;
$wgGroupPermissions['*']['abusefilter-view'] = true;
$wgGroupPermissions['*']['abusefilter-log'] = true;
$wgGroupPermissions['bureaucrat']['abusefilter-private'] = true;
$wgGroupPermissions['bureaucrat']['abusefilter-view-private'] = true;
$wgGroupPermissions['sysop','abusefilter']['abusefilter-revert'] =
true;

mayurdce wrote:

Modify abuse filters (abusefilter-modify) is still attached with sysop rights, please grant this for bureaucrats and abuse filter group only

mayurdce wrote:

Hi the only think remaining is to enable abusefilter-modify-restricted, however you have assigned this rights to bureaucrats but it is not available for use while using this exetension. i mean options to degroup and block are not available

mayurdce wrote:

Enable some array in the configuration of the extension

$wgAbuseFilterAvailableActions array( 'flag', 'throttle', 'warn', 'disallow', 'blockautopromote', 'block', 'tag', 'rangeblock' )

(In reply to comment #23)

Enable some array in the configuration of the extension
$wgAbuseFilterAvailableActions array( 'flag', 'throttle', 'warn', 'disallow',
'blockautopromote', 'block', 'tag', 'rangeblock' )

No other wiki has 'block' or 'rangeblock' in their $wgAbuseFilterAvailableActions, and abusefilter.php even contains this code:

// Disable some potentially dangerous actions during testing
$wgAbuseFilterAvailableActions = array_diff( $wgAbuseFilterAvailableActions, array( 'block', 'rangeblock', 'degroup' ) );

Andrew, is this still current? Can hiwiki have block and rangeblock as AF actions?

mayurdce wrote:

As this options are available in test wiki abuse filter configuration, so it is technically possible to have "range block and block" as abuse filter actions.Kindly enable these options if that is possible

These actions aren't disabled for technical reasons. It's more a matter of whether or not you want MediaWiki itself applying blocks and rangeblocks to suspicious edits.

(In reply to comment #26)

These actions aren't disabled for technical reasons. It's more a matter of
whether or not you want MediaWiki itself applying blocks and rangeblocks to
suspicious edits.

Alright. Enabling them on hiwiki per this request then.

Index: wmf-config/abusefilter.php

  • wmf-config/abusefilter.php (revision 1350)

+++ wmf-config/abusefilter.php (working copy)
@@ -78,6 +78,8 @@

$wgGroupPermissions['*']['abusefilter-log-detail'] = true;
$wgGroupPermissions['*']['abusefilter-view'] = true;
$wgGroupPermissions['*']['abusefilter-log'] = true;

+ $wgAbuseFilterAvailableActions[] = 'block';
+ $wgAbuseFilterAvailableActions[] = 'rangeblock';
} elseif ($wgDBname == 'itwiki') {

$wgGroupPermissions['*']['abusefilter-view'] = false;
$wgGroupPermissions['*']['abusefilter-log'] = false;
Restricted Application added subscribers: JEumerus, Dereckson, Matanya. · View Herald TranscriptJan 28 2016, 6:04 PM