Page MenuHomePhabricator

Accept and explain publish API errors
Closed, ResolvedPublic

Description

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":"youtube.com","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.

{F5242902}

List :

  • invalidtitle : {"error\":{"code":"invalidtitle","info":"Bad title \"tttt'rzzr|rerr(st\".","*":"..."}
  • spamblacklist : {"spamblacklist":"youtube.com","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