Last modified: 2013-07-22 09:37:29 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 T53784, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51784 - AbuseFilter should short-circuit boolean conditions such as "false & something"
AbuseFilter should short-circuit boolean conditions such as "false & something"
Status: RESOLVED DUPLICATE of bug 41693
Product: MediaWiki extensions
Classification: Unclassified
AbuseFilter (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
https://www.mediawiki.org/wiki/Extens...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-21 21:26 UTC by Helder
Modified: 2013-07-22 09:37 UTC (History)
4 users (show)

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


Attachments

Description Helder 2013-07-21 21:26:34 UTC
Currently, if I create a filter having the code
-------------------------------------
false & false & false & false & false
-------------------------------------
and then make an edit in any page, the filter's page will have a message saing
"... it consumes 5 conditions of the condition limit."

There is no reason for it to consume the last 4 conditions, because the first one is already false.

Notice the behavior is a little better if the code is changed to
-----------------------------------------
false & ( false & false & false & false )
-----------------------------------------
because it will now consume just 2 conditions. Ideally, it should consume only 1 condition in both cases (see [[Short-circuit evaluation]]).
Comment 1 Kunal Mehta (Legoktm) 2013-07-22 09:37:29 UTC

*** This bug has been marked as a duplicate of bug 41693 ***

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


Navigation
Links