Page MenuHomePhabricator

Reporting deleted user results in "You must provide an existing username to report"
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

  • An API error (no user facing error message) of {"errorKey":"reportincident-dialog-violator-nonexistent","messageTranslations":{"en":"You must provide an existing username to report."},"httpCode":404,"httpReason":"Not Found"}

What should have happened instead?:

  • A user facing error message should be shown for API errors. For the emergency flow, it appears, because there is a username field. The non-emergency flow doesn't have a username field, so no error message is shown.
  • We should allow non existing users to be reported. Otherwise, a bad actor could make a harassing comment, then change their name in the wikitext of the talk page to a non existing username, and users would not be able to report the comment with our incident reporting system

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

kostajh updated the task description. (Show Details)

Change #1099062 had a related patch set uploaded (by Máté Szabó; author: Máté Szabó):

[mediawiki/extensions/ReportIncident@master] Allow submitting reports without a reported user

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

mszabo changed the task status from Open to In Progress.Thu, Nov 28, 10:45 PM
mszabo claimed this task.
mszabo triaged this task as Medium priority.
mszabo removed a subscriber: Aklapper.

Change #1099062 merged by jenkins-bot:

[mediawiki/extensions/ReportIncident@master] Allow submitting reports without a reported user

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

Djackson-ctr subscribed.

QA is completed... Deleted Users/Non-existing users are allowed to be reported.