Page MenuHomePhabricator

VisualEditor does not handle TitleBlacklist errors with custom error messages
Closed, ResolvedPublic1 Estimated Story Points

Description

VisualEditor does not handle TitleBlacklist errors with custom error messages.

Event Timeline

matmarex raised the priority of this task from to Needs Triage.
matmarex updated the task description. (Show Details)
matmarex added a subscriber: matmarex.
Jdforrester-WMF set Security to None.
Jdforrester-WMF edited a custom field.

Change 251193 had a related patch set uploaded (by Bartosz Dziewoński):
ve.init.mw.Target: Update TitleBlacklist error code

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

Change 251193 merged by jenkins-bot:
ve.init.mw.Target: Update TitleBlacklist error code

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

matmarex claimed this task.

So, right now VisualEditor will recognize all save failures caused by TitleBlacklist, but it will still show only the generic error message. The complete one should appear in notices, though.

The API now also provides information about the exact error message to display (error.message) and the TitleBlacklist rule that matched (error.line), but we probably don't have that message client-side, so we're not trying to display it. Maybe when we can load it (T40280).

I'm going to close this, good enough for me.