Page MenuHomePhabricator

Exception related to OAuthAuthentication on Translate pages
Closed, ResolvedPublic

Description

Splited from T280972. See this backtrace:

image.png (594×1 px, 73 KB)

LinguaLibre currently uses OAuthAuthentication derived from https://gerrit.wikimedia.org/r/c/mediawiki/extensions/OAuthAuthentication/+/251930/33 with some other changes that I will push soon.

Original message : Also, the translation on wiki pages cannot be edited. By clicking on "Save changes", an error appears. Try on one page. @Tgr , you may be interested in the result of the error Thank you in advance.

Event Timeline

Seb35 updated the task description. (Show Details)
Eihel triaged this task as High priority.Apr 30 2021, 9:36 AM
Seb35 lowered the priority of this task from High to Medium.Apr 30 2021, 3:05 PM

It should be solved on LinguaLibre, I edited and saved the page Translations:Help:Main/14/fr without issue (null edit so it does not appear).

@Tgr : I will publish the derived version from your change, this specific issue is the following diff:

diff --git a/extension.json b/extension.json
index 0c42470..3d8c8f1 100644
--- a/extension.json
+++ b/extension.json
@@ -37,2 +37,3 @@
                "MediaWiki\\Extensions\\OAuthAuthentication\\AuthManagerSessionStore": "store/AuthManagerSessionStore.php",
+               "MediaWiki\\Extensions\\OAuthAuthentication\\AuthBlacklist": "auth/AuthBlacklist.php",
                "MediaWiki\\Extensions\\OAuthAuthentication\\OAuthAuthenticationAccountRequest": "auth/OAuthAuthenticationAccountRequest.php",
Eihel raised the priority of this task from Medium to High.Apr 30 2021, 4:27 PM

I'd recommend using WSOAuth instead. OAuthAuthentication will have more features when (if) it's finished, but using a WIP patchset that was written years ago is invitation for trouble.