Cannot log in Moin wikis after renaming accounts

Bug #342431 reported by Francis J. Lacoste
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Moin OpenID module
Confirmed
Medium
Unassigned

Bug Description

If you rename your account, you can't log on any Moin wiki that uses Launchpad as the OpenID provider.

The OpenID identifier stored by Moin doesn't change after an account rename, but the nickname returned by Launchpad does. And that seems to confuse Moin.

Changed in launchpad-foundations:
status: New → Triaged
Joey Stanford (joey)
Changed in moin-openid:
assignee: nobody → rowan
importance: Undecided → Medium
Revision history for this message
Rowan Kerr (rowan) wrote :

If I try and rename my account in Launchpad, it gives me a scary warning that my OpenID URL will be changed. If the OpenID URL changes, it doesn't much matter what Moin does with the username .. you will likely have trouble recovering your wiki account.

How did you change your nickname without Launchpad changing your OpenID URL?

Revision history for this message
Francis J. Lacoste (flacoste) wrote :

That's a different URL. The moin site shouldn't appear in the list.

That's only sites you've logged in using the profile page as openid identifier.

Moin uses the identity select identifier which returns a persistent identifier (that isn't affected by rename).

Revision history for this message
Rowan Kerr (rowan) wrote :

Haven't been able to duplicate this. My user object is updated correctly in my local Moin with new nickname.

What are you using as openidrp_sreg_username_field in your wikiconfig?

Do you have a page created in Moin for your username, or just the user profile?

Can you access UserPreferences in Moin (?action=userprefs) or is there a specific error when you try to log in.

Revision history for this message
Andrew Glen-Young (aglenyoung) wrote :

Rowan,

The wikiconfig has the following:
openidrp_sreg_username_field = 'nickname'

Revision history for this message
Francis J. Lacoste (flacoste) wrote :

For the other questions, I think it's a case where only the user profile is there.

I don't have any broken account to test accessing the UserPreferences though. But the error is happening whenever the user try to access any page on the wiki because the wiki is protected using ACL list. That might be a differentiating factor in the setup.

Revision history for this message
Rowan Kerr (rowan) wrote :

nickname field is good, that is what I had in my config. My nickname was updated correctly in user profile (without having username page in the wiki).

I'm no longer a member of any teams. Will have to find some to join to test the ACL part of this.

Revision history for this message
Rowan Kerr (rowan) wrote :

So, the ACL's for Teams do use user.name for access, which would explain the problem of access after renaming accounts.

Changed in moin-openid:
status: Triaged → Confirmed
Revision history for this message
Rowan Kerr (rowan) wrote :

When a user changes their name, the new name is added to any Team ACL's that they belong to. So the only time I can see a problem with this if there were ACL's specified by specific user name instead of Team.

Logging in and accessing team pages both work for me when I rename my account.

Francis: can you find some specific pages that aren't accessible and see what the conditions are that block access?

Revision history for this message
Francis J. Lacoste (flacoste) wrote :

Not really.

I'll ask IS, but I think this doesn't affect a lot of people. So my feeling is that we can drop the issue.

Revision history for this message
Leigh Honeywell (hypatia) wrote :

I'm affected by this and still can't get into the wiki. I've filed a question (https://answers.launchpad.net/moin-openid/+question/110123) but it hasn't gone anywhere. Can anyone else help me with restoring wiki access?

Thanks!

Revision history for this message
Andrew Glen-Young (aglenyoung) wrote :

Leigh, this should be fixed for you.

Revision history for this message
Fran Metcalfe (stu-test-lp-deactivatedaccount) wrote :

I've finally managed to reproduce this. It requires 2 launchpad accounts. Steps are:

 1. Log in to wiki with account 1
 2. Log out of wiki
 3. Change username of account in LP to something else.
 4. Log out of LP
 5. Log in to LP with account 2
 6. Change username of account 2 to the original username of account 1
 7. Log in to wiki with account 2

Result: "The username you have chosen is already taken. If it is your username, enter your password below to associate the username with your OpenID. Otherwise, please choose a different username and leave the password field blank."

Moin assumes you have a password on your wiki account, but it's never been set because we use only OpenID on wiki.u.c. Next step is to figure out how to fix for our users.

Revision history for this message
Leigh Honeywell (hypatia) wrote :

Hey folks,

This is now holding up my application for ops in #ubuntu-offtopic as I can't edit my wiki page. Can anyone follow up?

Thanks!

Revision history for this message
Gary Poster (gary) wrote :

I just wanted to highlight that we in Launchpad are getting a number of concerns about this issue lately. I linked all the questions I am aware of.

Revision history for this message
Leigh Honeywell (hypatia) wrote :

Just wondering if there's any update on this - my wiki access is still broken :(

Revision history for this message
andrew.46 (andrew.46-deactivatedaccount) wrote :

I feel your pain Leigh, my access has been broken for a little over 2 months now :(. My bug is linked to this one:

https://bugs.launchpad.net/moin-openid/+bug/621712

Revision history for this message
Kip Warner (kip) wrote :

Mine is still busted too.

Revision history for this message
Leigh Honeywell (hypatia) wrote :

Hey Rowan (and others on this bug) has there been any progress? It's been over six months since I've been able to edit the main Ubuntu wiki.

Joey Stanford (joey)
Changed in moin-openid:
assignee: Rowan Kerr (rowan) → nobody
Revision history for this message
Joey Stanford (joey) wrote :

Have just IRC'd with Stu M from Canonical. He's going to look into this as time permits. It may be fixed by simply moving away from the moin-openid module and using the upstream openid code which is different. We might decide to upgrade moin from 1.6 to 1.9 first.

Revision history for this message
Stuart Metcalfe (stuartmetcalfe) wrote :

Both options are non-trivial. If we want to resolve these issues in the meantime, we're going to have to ask IS to fix the user data on wiki.u.c.

Revision history for this message
Kip Warner (kip) wrote :

My wiki login is still broken =(

Revision history for this message
andrew.46 (andrew-david-strong) wrote :

Still problems here as well...

tags: added: u1-support
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers