Closed Bug 1119476 Opened 10 years ago Closed 10 years ago

Login Loop Discourse

Categories

(Infrastructure & Operations :: Community IT: Discourse, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: emma.irwin, Unassigned)

Details

Having a (new) community member trying to login to discourse https://discourse.mozilla-community.org/ From Heather: I seem to be getting some kind of login loop. It won't let me login with my gmail email and it won't let me create a new account. Should I just clear my cache or is this a known bug
This sounds similar to what Emin Mastizada was saying in a post to reps-general: I cannot login in discourse. After persona login system asks for registration, after clicking create account button it shows that there is such account and asks for using lost password. Problem is https://discourse.mozilla-community.org/users returns internal server error (500). Emma, does that sound similar? Emin, does Heather's issue sound like yours? Yousef, Tanner: found any relevant logs in Discourse?
Flags: needinfo?(yousef)
Flags: needinfo?(tanner.sumo.bugs)
Flags: needinfo?(emma.irwin)
Flags: needinfo?(emin)
her issue was described as a'loop' not sure she saw a 500, but it could be related.
Flags: needinfo?(emma.irwin)
Login loop happened too: 1-> click to login button 2-> it will open new login windows with login button 3-> persona will popup 4-> after login in persona it will be closed and opened again and so on. Another error is 500 error while trying to register, thats why Emma cannot register too. I think this both error are connected. System cannot create account, as javascript gets error it thinks that user is already registered, so tries to login. And gives error message that you already registered. Error for already registered user should be 4xx and javascript should check that code, and report errors with 500 code.
Flags: needinfo?(emin)
That's not good. It'd be interesting to see what happens on the staging server, and if this is an issue there: http://csa-discourse.mofostaging.net/ If it isn't, it might point to a bug in this version of Discourse. I'm not sure when it was last updated, but it might explain this bug only popping up now, but for multiple people.
We've updated Discourse, could you try again?
Flags: needinfo?(yousef)
Flags: needinfo?(tanner.sumo.bugs)
(In reply to Yousef Alam [:yalam96] from comment #5) > We've updated Discourse, could you try again? Registration successful. Loop for persona popup stays
(In reply to Emin Mastizada from comment #6) > Loop for persona popup stays I remember that loop from when I was adding mozillians.org integration to the existing persona plugin... I can't for the life of me remember how I managed to get it to loop, but from what I remember I couldn't get it to stop. I think it's just a fundamental problem with how persona login is implemented in the plugin. Moving to SSO should fix all of these problems, but that's still a bit of a way off.
So this is working, should I ask Heather to try again? Thanks
(In reply to Emma Irwin from comment #8) > So this is working, should I ask Heather to try again? Thanks Yes, now she can register, and when persona popup will start again, ask her to close it and continue registration process. After registration this popups will disappear.
The update seems to have fixed it, but I'm closing as WFM because Yousef and I have not been able to reproduce it.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.