Page MenuHomePhabricator

ContentTranslation saves JSON instead of translated text to articles in anpwiki
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

[[Kharghar]]

{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found#route","title":"Not found.","method":"post","uri":"/anp.wikipedia.org/v1/transform/html/to/wikitext/Kharghar"}
[[श्रेणी:नवी मुंबई केरौ नोड सब]]
[[श्रेणी:विकिडेटा प कोऔरडिनेट]]

[[Skiptvet]]

{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found#route","title":"Not found.","method":"post","uri":"/anp.wikipedia.org/v1/transform/html/to/wikitext/Skiptvet"}

This JSON is obviously not what I or User:Angpradesh typed into the tool.

What should have happened instead?:

  • Obviously, the ideal thing would be that the translation you entered is saved.
  • However, if that is not possible in the circumstance, CX should:
    • Refuse to save because of an error.
    • Or ideally even refuse to let you start translating, so you don't waste your efforts, since it can't be saved

I strongly suspect this is linked to RESTBase not yet being set up for anpwiki (see T332379), which is causing some other problems (notably Visual Editor not working properly, and the Reply Tool not letting you save replies).

If my suspicion is correct, this specific bug for anpwiki will be fixed once RESTBase is set up correctly. However, this task should be about sensible error handling by ContentTranslation in these cases.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

jhsoby renamed this task from ContentTranslation saves JSON to articles in anpwiki to ContentTranslation saves JSON instead of translated text to articles in anpwiki.Mar 27 2023, 9:21 PM
jhsoby moved this task from Needs Triage to Bugs on the ContentTranslation board.

@jhsoby Yes, it seems that RESTBase is yet to be setup. I'll test this bug again when it is done.

@KartikMistry Please do, but please also mind this part of the bug description:

If my suspicion is correct, this specific bug for anpwiki will be fixed once RESTBase is set up correctly. However, this task should be about sensible error handling by ContentTranslation in these cases.