https://bugzilla.wikimedia.org/show_bug.cgi?id=46218
Web browser: ---
Bug ID: 46218
Summary: API enable to guess user language
Product: MediaWiki
Version: 1.19
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: API
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
Here is the recipe to guess the language configured by a user using the API:
* Select a user wiki page where there is some links to some other user page,
i.e. containing links like [[User:<sameuser>/<otherpage>]]
* Get last revision of this page using the API
* Links returned from the page content contains links whose namespace is
localized to the language configured by the user (ex: [[Utilisateur:...]] for
French)
This bug also disallow API usage to process links contained in a page.
Examples:
*
https://en.wikibooks.org/w/api.php?action=query&titles=User%3ADavidL%2FSignature&prop=revisions&rvlimit=1&rvdir=newer&rvprop=timestamp%7Cuser%7Ccomment%7Ccontent&format=json
--> DavidL account language set to French because links use "Utilisateur"
namespace
*
https://en.wikibooks.org/w/api.php?action=query&titles=User%3ABryanBot&prop=revisions&rvlimit=1&rvdir=newer&rvprop=timestamp|user|comment|content&format=json
--> BryanBot account language set to English because links use "User" namespace
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l