Wrong Launchpad ID when changed "name"

Bug #625120 reported by costales
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
LoCo Team Portal
Confirmed
High
Unassigned
Summit
Confirmed
Undecided
Unassigned
django-openid-auth
Confirmed
Undecided
Unassigned

Bug Description

Hi!
By example, you have a Launchpad ID: https://launchpad.net/~my_name. You're ownership of a LoCo team and you will be "Logged in as: my_name" in the footer of http://loco.ubuntu.com.

And you choose here: https://launchpad.net/~my_name/+edit another "name" (The field is: "A short unique name, beginning with a lower-case letter or number, and containing only letters, numbers, dots, hyphens, or plus signs").
By example, you will choose "my_new_name", then your new Launchpad ID will be: https://launchpad.net/~my_new_name

The bug is: You will see again "Logged in as: my_name" in the footer of http://loco.ubuntu.com, it must be "Logged in as: my_new_name", and you will LOSE the ownership of your LoCo Teams for change the LoCo details.

Best regards and thanks.

Revision history for this message
Daniel Holbach (dholbach) wrote :

I have a question: is the new team owner not updated to my_new_name some time later?

Changed in loco-directory:
status: New → Incomplete
Revision history for this message
costales (costales) wrote :

@Daniel: I don't understand your doubt: Not exists a "new" team owner, the team owner change his Launchpad ID, and he will lose him ownership in http://loco.ubuntu.com.
Best regards :)

Revision history for this message
Daniel Holbach (dholbach) wrote :

But the LoCo Directory gets exactly this data from Launchpad regularly (like every few minutes).

Do you have a conrete example?

Revision history for this message
costales (costales) wrote :

@Daniel: Yes, my user xD I'm the owner of ubuntu-ast: http://loco.ubuntu.com/teams/ubuntu-ast.

All is right in the web (The owner is update in the web), but http://loco.ubuntu.com identify me with my old Launchpad ID, then I can't change any information in the team.

See this pictures, please:
My actual name in Launchpad: http://flic.kr/p/8vJZXv
How http://loco.ubuntu.com identify me: http://flic.kr/p/8vJZXx

Revision history for this message
Daniel Holbach (dholbach) wrote :

Did you try logging in and out again?

Revision history for this message
costales (costales) wrote :

Yes, of course ;) See this image: http://flic.kr/p/8vKbRZ
All is correct, unless the identification with the old Launchpad ID.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Not sure why this is, but bug 622183 seems to be the same.

Changed in loco-directory:
status: Incomplete → Confirmed
importance: Undecided → High
Revision history for this message
costales (costales) wrote :

Yes, It's the same issue for me ;)

Revision history for this message
Daniel Holbach (dholbach) wrote :

<dholbach> I'm not sure I understand. Let's say I rename my LP ID from A to B, the directory knew that A was the admin of a team before, but with the next cronjob run it knows that B is an admin and after logging out and logging back in again, B should be logged in and have the right permissions?
<stuartm> right. except the openid auth doesn't seem to be detecting to the change to B so it thinks I'm still A
<dholbach> why is that? if I give it my email address and everything, why doesn't it pass back B as username?
<dholbach> maybe I'm a bit thick today, it's Friday :)
<stuartm> dholbach: the directory should do an openid lookup against the new username. this is available from the <head> of launchpad.net/~<username>
<stuartm> so if you look at the source of https://launchpad.net/~dholbach , a little way down you'll see https://login.launchpad.net/+id/htDDpRh which is your real (unchanging) openid
<stuartm> the openid lib has code which does that already. I'll pastebin something for you
<dholbach> aha!
<dholbach> thanks a lot
<stuartm> dholbach: http://pastebin.ubuntu.com/484405/
<dholbach> thanks a bunch stuartm! mind if I add the last snippet of our conversation to the bug?
<stuartm> that way you can cross-reference your perms updates with the openid which is stored on your system. because of the way you're using lp login (you should be using ubuntu sso btw ;) ) the openid won't change even if the username does
<stuartm> dholbach: sure
* dholbach hugs stuartm
<dholbach> thanks muchly

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

This issue affects me both at Loco Directory and Summit.

Revision history for this message
Michael Hall (mhall119) wrote :

It's something that would need to be fixed in django-openid-auth

Changed in summit:
status: New → Confirmed
Changed in django-openid-auth:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.