Page MenuHomePhabricator

Handle RuntimeExceptions from TranslatorSandboxActionApi on user creation
Closed, ResolvedPublic2 Estimated Story Points

Description

In TranslatorSandboxActionApi, when user creation fails due to IP blocks the API throws a RuntimeException. The API logs this error which may contain private information. This log is readable on IRC and Slack

Skip logging this exception into the error log.

Event Timeline

abi_ triaged this task as High priority.Aug 17 2023, 7:20 AM
abi_ created this task.

Change 949630 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[translatewiki@master] Skip logging RuntimeException on IRC / Slack

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

abi_ renamed this task from Avoid logging RuntimeExceptions from translatewiki.net on IRC / Slack to Handle RuntimeExceptions from TranslatorSandboxActionApi on user creation.Aug 17 2023, 7:45 AM
abi_ updated the task description. (Show Details)

Change 949840 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] TranslatorSandboxActionApi: Handle uncaught exceptions

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

Change 949630 abandoned by Abijeet Patro:

[translatewiki@master] Skip logging RuntimeException on IRC / Slack

Reason:

Not intended

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

Change 949840 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] TranslatorSandboxActionApi: Handle exceptions on user addition

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

This change is a bit difficult to specifically QA on translatewiki.net. We've not had this error pop out in our logs since this change was deployed. Marking this as done for now.