Page MenuHomePhabricator

"Cross-Origin Request Blocked" JS errors when translating into be-tarask
Closed, ResolvedPublic

Description

When I'm translating into the be-tarask Wikipedia, I see errors such as this:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://be-x-old.wikipedia.org/w/api.php?action=query&format=json&origin=*&formatversion=2&titles=%D7%92%27%D7%90%D7%A0%D7%9C%D7%95%D7%90%D7%99%D7%92%27%D7%99+%D7%91%D7%95%D7%A4%D7%95%D7%9F&redirects=1. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://be-x-old.wikipedia.org/w/api.php?action=query&format=json&origin=*&formatversion=2&titles=%D7%A9%D7%93%D7%92%D7%9B&redirects=1. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://be-x-old.wikipedia.org/w/api.php?action=query&format=json&origin=*&formatversion=2&titles=User%3AAmire80%2F&redirects=1. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://be-x-old.wikipedia.org/w/api.php?action=query&format=json&origin=*&formatversion=2&titles=User%3AAmire80%2FBuffon&redirects=1. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://be-x-old.wikipedia.org/w/api.php?action=query&format=json&origin=*&titles=1+2+3&prop=pageimages&piprop=thumbnail&pithumbsize=150&redirects=true. (Reason: CORS header 'Access-Control-Allow-Origin' missing).

Note that the outdated domain/language code "be-x-old" is used instead of "be-tarask".

Possibly related to T129470 and T112285.

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
StalledNone
StalledNone
InvalidNone
StalledNone
StalledNone
StalledNone
StalledNone
StalledFeatureNone
StalledNone
StalledFeatureNone
StalledFeatureNone
StalledFeatureNone
StalledNone
StalledNone
OpenNone
ResolvedWinston_Sung
ResolvedWinston_Sung

Event Timeline

Publishing leads to errors like,

{"batchcomplete":true,"query":{"normalized":[{"fromencoded":false,"from":"User:KartikMistry/IPL","to":"Удзельнік:KartikMistry/IPL"}],"pages":[{"ns":2,"title":"Удзельнік:KartikMistry/IPL","missing":true}]}}
Amire80 triaged this task as High priority.Jun 25 2017, 9:06 PM
Amire80 moved this task from Needs Triage to Bugs on the ContentTranslation board.
Arrbee renamed this task from "Cross-Origin Request Blocked" JS errors when translating into be-tarask to [triage] "Cross-Origin Request Blocked" JS errors when translating into be-tarask.Jun 25 2018, 1:44 PM
Arrbee moved this task from Bugs to Check & Move on the ContentTranslation board.
Arrbee renamed this task from [triage] "Cross-Origin Request Blocked" JS errors when translating into be-tarask to "Cross-Origin Request Blocked" JS errors when translating into be-tarask.Jun 25 2018, 2:19 PM
Arrbee assigned this task to Amire80.
Arrbee subscribed.

Assigned to Amir for checking and assigning tracker

Still happens in CX2, most likely related to the domain renaming.

Winston_Sung claimed this task.
Winston_Sung subscribed.

Should now be fixed by this change:

Change 882172 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[mediawiki/extensions/ContentTranslation@master] Remove subdomain-migrated language code "be-tarask" / "be-x-old" from DomainCodeMapping

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

Change 882172 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Reverse key-value for subdomain-migrated language code "be-tarask" / "be-x-old" for DomainCodeMapping

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