Page MenuHomePhabricator

Can't exclude Wikidata edits from a filter's matches
Closed, DeclinedPublic

Description

Task :need exception or how to avoid wikidata changes in filter's abuse log

Present Status:
English Wikipedia and several other Wikis use edit filter to detect abuse or misuse using a foreign language and/or scripts.

Most of these edit filters are simmiller to english wikipedia edit filter Special:AbuseFilter/346

Filters works very well with Variable 'edit_delta > 500' .But there are instances where in admins may also need to monitor edit_delta > 0|edit_delta <499.But currently this is not possible due to following problem.

Problem area :
*If one makes a little change to one line in this filter syntax of
http://en.wikipedia.org/wiki/Special:AbuseFilter/346

Present is & (old_size == 0|edit_delta > 500|length (rmwhitespace(added_lines))

If you change this to & (old_size == 0|edit_delta >0)

It shows all false positive changes from Wikidata in filter's abuse log .I dont know how it work,We tried to give few exceptions but that did not work.

Please suggest a solution if already available.

Or please provide a new variable "Wikidata" which if used as !Wikidata should not show wikidata changes in abuse log.And only with variable Wikidata + wikidata page id should show specific logs for asked page only.

Thanks and regards


Version: unspecified
Severity: normal
URL: https://mr.wikipedia.org/wiki/Special:Abusefilter/7
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=45853

Details

Reference
bz48152

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:43 AM
bzimport added a project: AbuseFilter.
bzimport set Reference to bz48152.
bzimport added a subscriber: Unknown Object (MLST).

Placed importance to high since if some abusrs know this bug may try to exploit the situation.Developers can hide the bug if they want.

Rgds

-Mahitgar

Hi Mahitgar,

(In reply to comment #1)

Placed importance to high since if some abusrs know this bug may try to
exploit the situation.

Could you please elaborate how exactly somebody could "exploit" the situation and what that exploit would be exactly? What exactly is the problem here currently? Surely you can make a filter behave completely different if you radically change its settings. :)
As I don't see a software bug yet, could you explain which behavior you would have expected, instead of the current behavior?

Note that http://en.wikipedia.org/wiki/Special:AbuseFilter/346 can only be edited by users with specific rights.

(In reply to comment #2)
Subject comment 1 ,Here bug need not mean necessarilly a software bug.If certain thing is not coverd by an edit filter abusive people if they get to know through a public discussion, they can start exploiting the situation.Discussing it openly will give ideas to people who are still unaware,Please see [http://en.wikipedia.org/wiki/Wikipedia:BEANS].

I reffered you en wiki edit filter since it is easy to access and understand.The language wiki I work primarilly on uses Devanagri Script, For genuine requirements of english/foreign language we have given exceptions and those are working fine(except the Wikidata ).

The rest we need to avoid foreign languages/language scripts on our wiki,since we do not need those.There are multiple reasons to avoid foreign languages/language scripts can be discussed separately.One example is this contribution doing advert using english language http://mr.wikipedia.org/wiki/विशेष:योगदान/117.223.17.133 where edit delta is less than 100.

If I dont reduce edit delta condition in edit filter the filter wont catch such smaller edits which are using foreign language sript.The problem is when I reduce edit delta condition it is showing me wikidata edits those are not relevant to this filter's purpose.My efforts to give exception to wikidata did not work.

May be it is not software bug but I want the solution. I want our purpose getting served and do not want certain filter to catch/(positive to) wikidata.

Thanks and Regards

Thanks (I think I understand the problem better now), though it's still not clear to me whether you request changes in the code of AbuseFilter, or changes to the configuration of AbuseFilter on one of the Wikimedia servers. :)

(said relevant filter on our wiki is currently disabled due to wikidata entries showing up) only relevant part for this discussion of the edit filter present code on our wiki is as follows

article_namespace == 0
!contains_any (summary,"विकिडाटा","Wikidata","wikidata")&
!contains_any (added_lines,"Q","विकिडाटा","Wikidata","wikidata")&
(old_size >= 0|edit_delta > 0|edit_delta <499 )
(rcount ("[अ-ॠ०-९]", added_lines) / (length (rmwhitespace(added_lines)) + 1)) < 0.2

*word "विकिडाटा" stands for "Wikidata" in our language.But this exception is not effective and Wikidata entries are giving false positive.I could not find any help on relevant mediawiki help pages.If strait away PCRE suggession available from your side on how to give exception then no need to do any thing on Wikimedia server side.

But if there is no provision available in with help of currently available expressions then we will need to upgrade AbuseFilter extension,may be.

Rgds

Can you please provide a link to how a Wikidata change shows up in AbuseFilter? This is about your [[mr:Special:Abusefilter/7]], isn't it?

(In reply to comment #6)

Can you please provide a link to how a Wikidata change shows up in
AbuseFilter?
This is about your [[mr:Special:Abusefilter/7]], isn't it?

Ya you are right its filter 7 but said issue I have only tried on batch testing. Ok will try to provide a screen shot sooner the better.

(In reply to comment #7)

Ya you are right its filter 7 but said issue I have only tried on batch
testing. Ok will try to provide a screen shot sooner the better.

Screenshots are less useful than links, especially if they're not in English interface. Thanks.

(In reply to comment #8)

(In reply to comment #7)

Ya you are right its filter 7 but said issue I have only tried on batch
testing. Ok will try to provide a screen shot sooner the better.

Screenshots are less useful than links, especially if they're not in English
interface. Thanks.

Sorry could not be reproduced during the repeat tests after discussion with you.Seems to have got fixed some how and now the filter also has got functional.

Updating status to Resolved to Worksnow i.e.Worksforme

Thanks for your kind support

warm regards