Page MenuHomePhabricator

abuselogprivatedetails api: error info not returned
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:
Visit https://en.wikipedia.org/wiki/Special:ApiSandbox#action=abuselogprivatedetails&format=json&logid=1&reason=example&token=ABC123 with an account that does not have permission to query abuse filter private details
Auto-fill token
Click make request

Actual Results
    "error": {
        "code": "abusefilter-log-cannot-see-private-details",
        "info": "\u29fcabusefilter-log-cannot-see-private-details\u29fd",
        "*": "See https://en.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."
    },
    "servedby": "mw1317"
}
Expected Results
    "error": {
        "code": "abusefilter-log-cannot-see-privatedetails",
        "info": "You do not have permission to see private details of this entry.",
        "*": "See https://en.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."
    },
    "servedby": "mw1317"
}

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 557740 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/extensions/AbuseFilter@master] abuselogprivatedetails api: private-details should be privatedetails

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

Change 557740 merged by jenkins-bot:
[mediawiki/extensions/AbuseFilter@master] ApiAbuseLogPrivateDetails: private-details should be privatedetails

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