/subscriptions 'qa mode' cancel subscription oopses

Bug #917685 reported by Dave Morley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Software Center Agent
Fix Released
Medium
Michael Nelson

Bug Description

Bug Description:
goto /subscriptions and then into an app, It should show a cancel subscription if you are in the correct team, this oopses when you click on it

Version:
n/a

OS:
64bit Oneiric

Browser:
FF 9.0.1

Problem URL:
https://software-center.ubuntu.com/subscription
(Error ID: ) 2208satsuma89944 as example oopes

Steps To Reproduce:
1. goto https://software-center.ubuntu.com/subscription
2. Select an application
3. Click on the Cancel Subscription button

Expected Result:
I expect the Subscription to be cancelled

Revision history for this message
Michael Nelson (michael.nelson) wrote :

We're erroring when hitting the LP API for the subscription object: https://pastebin.canonical.com/59475/

I'll see if there's another way to get a handle on it.

Revision history for this message
Michael Nelson (michael.nelson) wrote :

The problem comes down to us not actually using the Launchpad api version which we specify in the configs, together with the wadllib.application.Applicatiion.lookup_xml_id method at:

http://bazaar.launchpad.net/~lazr-developers/wadllib/trunk/view/head:/src/wadllib/application.py#L1123

which raises a NotImplemented error if the requested resource definition (this_uri) doesn't match the api uri (markup_uri) which, thanks to the debug info saved by django, shows:

markup_uri: URI('https://api.launchpad.net/1.0')
this_uri: URI('https://api.launchpad.net/devel')

Changed in software-center-agent:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Michael Nelson (michael.nelson)
milestone: none → 12.02.2
Dave Morley (davmor2)
Changed in software-center-agent:
status: Fix Committed → 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.