Page MenuHomePhabricator

Don't allow submitting a report with revision ID 0 or with an empty page
Closed, DeclinedPublic

Description

To help reduce abuse vectors for the intake endpoint, make sure that we reject:

  • submissions where revision ID is 0
  • pages where the revision ID is associated with a blank page

See also T341261: Add report menu item to Minerva and Vector 2022 tools which would prevent the report menu item from appearing in blank pages.

Event Timeline

@kostajh, from my testing the API already rejects requests with the revisionId as 0 with the rest-nonexistent-revision error.

With the second point, perhaps the harassment could be blanking someone's user talk page?

With the second point, perhaps the harassment could be blanking someone's user talk page?

Good point; maybe the rule should be to check if there has ever been content on that page?

@kostajh, from my testing the API already rejects requests with the revisionId as 0 with the rest-nonexistent-revision error.

I am declining this task. T348322: Set up anti abuse measures helps deal with the anti-abuse angles and as @Dreamy_Jazz noted, we are already rejecting requests where revision ID is 0. cc @Madalina @JSengupta-WMF in case you want to reopen this or add further clarification to the scenarios.