Page MenuHomePhabricator

After log in on mobile Beta Commons, user gets redirected to non-mobile page (and is not logged in there)
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:
The last step of central login happens on the desktop domain (https://commons.wikimedia.beta.wmflabs.org/wiki/Special:CentralLogin/complete?token=[redacted]), which fails with "No active login attempt is in progress for your session." (centralauth-error-nologinattempt) - probably due to the cookies not being available. The local login on the mobile domain works (but since the user ends up the desktop domain where they are not logged in, this isn't obvious).

Event Timeline

See https://www.mediawiki.org/wiki/Manual:How_to_debug/Login_problems in theory. Also, browser info and browser version info are always welcome.

See https://www.mediawiki.org/wiki/Manual:How_to_debug/Login_problems in theory. Also, browser info and browser version info are always welcome.

If you are trying to say you can't reproduce the problem, I'd like to know your browser info.

Or if you did manage to reproduce the problem, you should follow your own advice and share your browser info.

If you didn't even try, why not? It's so very simple.

I reproduced this just now with both Firefox and Chrome because predictably this isn't a browser issue. I suspect it might be because I'm directed to the desktop site when I log in on the mobile domain.

Aklapper renamed this task from No active login attempt is in progress for your session. to After log in on mobile Beta Commons, "No active login attempt is in progress for your session." (centralauth-error-badtoken) is displayed.Jul 24 2022, 2:42 PM
Tgr renamed this task from After log in on mobile Beta Commons, "No active login attempt is in progress for your session." (centralauth-error-badtoken) is displayed to After log in on mobile Beta Commons, "No active login attempt is in progress for your session." (centralauth-error-nologinattempt) is displayed.Jul 24 2022, 11:33 PM
Tgr renamed this task from After log in on mobile Beta Commons, "No active login attempt is in progress for your session." (centralauth-error-nologinattempt) is displayed to After log in on mobile Beta Commons, user gets redirected to non-mobile page (and is not logged in there).Jul 24 2022, 11:43 PM
Tgr updated the task description. (Show Details)
Tgr subscribed.

I guess something relating to mobile site autodetection / autoredirect is misconfigured on Beta? See T195494: Handle mobile domains in core and T214998: RFC: Serve mobile and desktop variants through the same URL (unified mobile routing) for some related tasks.

matmarex assigned this task to Tgr.
matmarex subscribed.

Looks resolved by @Tgr's changes in T257852.