Page MenuHomePhabricator

Accept and explain publish API errors
Closed, ResolvedPublic


After this topic about spamblacklist and this about titleblacklist on Talk:CX

Sometimes when user try to publish the translated article, blacklists disallow it. So CX print hard coded errors like ⧼titleblacklist-forbidden-apostrophes⧽ and/or {"spamblacklist":"","result":"Failure"}", or Error: Bad title without other explanation (ie. |).

CX should print readable error and if it is possible explain what is the problem, and ask to change the title / suppress the problematic link.


List :

  • invalidtitle : {"error\":{"code":"invalidtitle","info":"Bad title \"tttt'rzzr|rerr(st\".","*":"..."}
  • spamblacklist : {"spamblacklist":"","result":"Failure"}"
  • message that is not registered : ⧼titleblacklist-forbidden-apostrophes⧽

Event Timeline

The interesting part of js code is here

Framawiki renamed this task from Accept and explain spamblacklist & titleblacklist errors to Accept and explain publish API errors.Feb 23 2017, 11:10 PM
Framawiki updated the task description. (Show Details)
Petar.petkovic claimed this task.

Content Translation treats some API publish errors specifically, like:

  • spamblacklist
  • abusefilter
  • invalidtitle
  • badtoken
  • assertuserfailed
  • titleblacklist-forbidden
  • readonly