No validation of discovered cookie - leading to requestsync erroneously assuming that I am in core-dev
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-dev-tools (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ubuntu-dev-tools
I just experienced requestsync falsely believing I'm a core-dev.
It turned out to be that it was picking up a dead launchpad logincookie from an old firefox user profile instead of my active firefox profile.
This was compounded by there being no checking whether the discovered cookie is still valid, and further compounded by ubuntutools.
1) ubuntu-dev-tools needs to be intelligent about using the *right* firefox profile when there is more than one.
2) When a launchpad cookie is discovered, it must not blindly assumed to be valid
3) isLPTeamMember needs to understand the difference between a page asking you to login, and a page telling you you are a member of a team
[ And 4) isLPTeamMember refers to the sys and urllib2 modules in the error handling code, but doesn't import them, so if an error occurs, it dies messily ]
This patch rewrites isLPTeamMember to use launchpadlib instead.