https://bugzilla.wikimedia.org/show_bug.cgi?id=41489

       Web browser: ---
             Bug #: 41489
           Summary: ULS: JSON loading problems
                    (Access-Control-Allow-Origin, repeated failures)
           Product: MediaWiki extensions
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: UniversalLanguageSelector
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


On: https://www.wikidata.org/wiki/Wikidata:Main_Page


[2x] XMLHttpRequest cannot load
https://bits.wikimedia.org/static-1.21wmf2/extensions/UniversalLanguageSelector/lib/jquery.uls/i18n/en.json.
Origin https://www.wikidata.org is not allowed by Access-Control-Allow-Origin.

[2x] XMLHttpRequest cannot load
https://bits.wikimedia.org/static-1.21wmf2/extensions/UniversalLanguageSelector/i18n/en.json.
Origin https://www.wikidata.org is not allowed by Access-Control-Allow-Origin.

ULS: Unknown language als. load.php:235
ULS: Unknown language bat-smg. load.php:235
ULS: Unknown language fiu-vro. load.php:235

[16x] XMLHttpRequest cannot load
https://bits.wikimedia.org/static-1.21wmf2/extensions/UniversalLanguageSelector/i18n/en.json.
Origin https://www.wikidata.org is not allowed by Access-Control-Allow-Origin.


* The extension documentation[1] contains nothing about requiring cross-domain
privileges to work. If this is a requirement, then it must be documented and
properly configured on Wikimedia (which it isn't right now)

* It repeatedly fails for the same stuff. 2x 2x for jquery.uls's en.json and a
whopping 16 shots at the main en.json file. Whatever caching mechanism is in
place, is broken. It probably doesn't cover for the fact that ajax is
asynchronous (storing result objects instead of promises/deferreds)

* 3 requests for unknown languages


And all this when merely viewing an English page in an English browser without
being logged-in before having touched anything on the page.

Should it be requesting all that data all the time? I suppose the trigger label
in the top corner is provided by the MediaWiki component, it should defer
further init until if/when needed.


[1] https://www.mediawiki.org/wiki/Extension:UniversalLanguageSelector

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to