Last modified: 2014-08-02 11:45:12 UTC
Click in the URL above or follow the following steps: 1. Go to [[pt:Special:Sandbox]] 2. Select the action "abusefiltercheckmatch" in the drop-down menu 3. Type in the filter field: length(user_name)>0 4. Type in the vars field: {"user_name":"Foo"} After this, click in "Make the request". == Expected result == { "abusefiltercheckmatch": { "result": true } } == Actual result == { "abusefiltercheckmatch": { "result": false } } A similar test with e.g. the filter "user_name===null" and the same JSON in the vars field gives { "abusefiltercheckmatch": { "result": true } } So, it seems AbuseFilter is not setting the variables properly. Notes: 1. If you don't have the appropriate user rights you'll see something like { "servedby": "mw1141", "error": { "code": "unknownerror", "info": "Unknown error: \"permissiondenied\"" } } 2. In case I'm using the wrong syntax to test this, maybe this bug could be reused to request an improved documentation for this API?
Change 150456 had a related patch set uploaded by Helder.wiki: Do not ignore the "vars" parameter on action=abusefiltercheckmatch https://gerrit.wikimedia.org/r/150456
Change 150456 merged by jenkins-bot: Do not ignore the "vars" parameter on action=abusefiltercheckmatch https://gerrit.wikimedia.org/r/150456