get_token_and_login tries to do a desktop integration but doesn't send the right values

Bug #712808 reported by Leonard Richardson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpadlib
Fix Released
Critical
Unassigned

Bug Description

The deprecated method get_token_and_login tries to ask for a desktop integration token, but it doesn't give Launchpad the necessary information. The user is taken to a page and given an exception:

Unauthorized: Consumer "foo" asked for desktop integration, but didn't say what kind of desktop it is, or name the computer being integrated.<br />

The URL looks like this: https://staging.launchpad.net/+authorize-token?oauth_token=fooallow_permission=DESKTOP_INTEGRATION

Related branches

Revision history for this message
Robert Collins (lifeless) wrote :

Is this a regression, or something that folk running old code will experience? does that method emit a deprecation warning?

Revision history for this message
Robert Collins (lifeless) wrote :

triaging to low because its a deprecated method; feel free to correct if thats wrong.

Changed in launchpadlib:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Leonard Richardson (leonardr) wrote :

It's a method that I just deprecated in the most recent version, and I also broke it in that version, so I think it's important to fix it and give anyone using it some breathing room.

Changed in launchpadlib:
importance: Low → Critical
Revision history for this message
Leonard Richardson (leonardr) wrote :

To answer your first question, anyone who uses old code without a cached token will get this problem. The main case where I can think of this happening is someone who copies old code onto another computer and runs it there.

Changed in launchpadlib:
status: Triaged → Fix Released
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.