Page MenuHomePhabricator

Message for API error when publishing: invalidtitle
Closed, ResolvedPublic

Description

Fix UI error message when publish and API return invalidtitle error : {"error\":{"code":"invalidtitle","info":"Bad title \"tttt'rzzr|rerr(st\".","*":"..."}

Event Timeline

Framawiki renamed this task from publish API error: invalidtitle to API error when publishing: invalidtitle.Feb 25 2017, 7:18 PM
Framawiki renamed this task from API error when publishing: invalidtitle to Messgae for API error when publishing: invalidtitle.
Nikerabbit renamed this task from Messgae for API error when publishing: invalidtitle to Message for API error when publishing: invalidtitle.Feb 25 2017, 7:22 PM
Nikerabbit subscribed.

Can you clarify what should be changed?

Change 339839 had a related patch set uploaded (by Framawiki):
DON'T MERGE: UI: message for API error when publishing: invalidtitle

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

Hello, currently API errors are directly printed, and users haven't readable errors messages. See parent task for context.

This is currently shown as

image.png (210×1 px, 30 KB)

A dedicated and translated error message would still be nice.

Change 339839 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] UI message for API error when publishing: invalidtitle

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