Closed Bug 738900 Opened 14 years ago Closed 14 years ago

Unable to edit after signing in with BrowserID, content pages look like you're signed out

Categories

(developer.mozilla.org Graveyard :: Wiki pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Paolo, Assigned: groovecoder)

Details

(Whiteboard: u=contributor c=bug p= s=2012-05-22 p=1)

I linked my existing MDN account "P.A." to a BrowserID login. Signing in and editing my profile works, and I can see my previous edit history, but when I navigate to any content page other than the main page, the website looks as if I'm not signed in, and I cannot edit the page. I observed this also with a clean Firefox profile (Release channel), both today and two days ago, so this looks like a server infrastructure or permission issue. Let me know if you need any other detail to identify the issue.
Whiteboard: u=contributor c=browserid p= s=2012-04-10
Target Milestone: --- → 2.7
Raymond, can you replicate this?
Assignee: nobody → mozbugs.retornam
Keywords: qawanted
Whiteboard: u=contributor c=browserid p= s=2012-04-10 → u=contributor c=browserid p=
Target Milestone: 2.7 → ---
I logged in and was able to edit pages successfully. Would be nice if you gave me a reduced testcase like the locale you are using and the pages you are trying to edit
Assignee: mozbugs.retornam → nobody
So, I downloaded the MDN source code and tried to investigate the sign in process. It looks like I'm hitting a code path labeled "# TODO: decide WTF to do here" :-) <https://github.com/mozilla/kuma/blob/638dffe6f0/apps/dekicompat/backends.py#L200> This is confirmed by the fact I received various session and login cookies ("sessionid", "PHPSESSID", and "browserid_explained"), but not "authtoken". <https://github.com/mozilla/kuma/blob/b3ad28d0/apps/users/views.py#L61> I tried to navigate to the DekiWiki authentication API URL manually: <https://developer.mozilla.org/@api/deki/users/authenticate> I get the HTTP authentication prompt, until I enter my correct username and password (meaning that the username and password still exist in the DekiWiki database). But at that point, I get this response: Bad Request (400) User validation failed: username 'P.A.' is invalid So I got to the classical login form using the locale "it" (cool... that turns off BrowserID login!), and even classical login didin't work for me anymore, but this time it was notified by a failure message. So this issue is not strictly related to BrowserID, but to the fact that when it's used for login, there is an error path that doesn't notify the backend error. Overall, this leads me to think that the current version of DekiWiki has problems with the fact that my username has dots in it. Besides fixing the error notification (that is a separate issue), do you have any suggestions on how to resolve the backend login issue?
Thanks for the info! Sorry, that was my TODO. :\ That does sound pretty nasty with Deki's authentication api. Raymond, can you try to create a new user with dots in the username and see if that works okay? That would tell us if it's an issue with migrated user accounts or all user accounts. If you can register but then get the same behavior as Paolo, let me know and I'll try changing the username manually to see if that fixes it. Then we'll know we can use the same approach to fix Paolo's account.
Any update on this issue?
I'll pull this into our next sprint.
Whiteboard: u=contributor c=browserid p= → u=contributor c=bug p= s=2012-05-08
(In reply to Luke Crouch [:groovecoder] from comment #6) > I'll pull this into our next sprint. Thanks!
Whiteboard: u=contributor c=bug p= s=2012-05-08 → u=contributor c=bug p= s=2012-05-08 p=2
Whiteboard: u=contributor c=bug p= s=2012-05-08 p=2 → u=contributor c=bug p= s=2012-05-22 p=2
Investigating in 5/22 sprint
Whiteboard: u=contributor c=bug p= s=2012-05-22 p=2 → u=contributor c=bug p= s=2012-05-22 p=1
Assignee: nobody → lcrouch
This is indeed a bug in MindTouch. I was able to fix locally by changing the username in both django and MindTouch to 'pdotadot' :paolo, if you like, find my on IRC or just let me know what new username you'd like. (You won't lose data) This will not be an issue when we drop MindTouch.
I'm marking this as WONTFIX since we won't be able to fix the MindTouch error. :paolo let me know a new account name for you either here or on IRC and I'll change you over until we drop MindTouch.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
(In reply to Luke Crouch [:groovecoder] from comment #10) > :paolo let me know a new account name for you either here or on IRC > and I'll change you over until we drop MindTouch. Thanks for looking into this Luke. If just "paolo" as a username is not available, then "pamadini" is fine. Looking forward to recovering my MDN account in the production site!
Paolo, I updated your username to pamadini. Please try to sign in with BrowserID again.
(In reply to Luke Crouch [:groovecoder] from comment #12) > Paolo, I updated your username to pamadini. Please try to sign in with > BrowserID again. Now I can sign in and edit pages. Thanks!
Resolution: WONTFIX → FIXED
Component: Website → Landing pages
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.