Pillar aliases redirect outside of webservice on webservice calls

Bug #715992 reported by j.c.sackett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
j.c.sackett

Bug Description

Trying to use a pillar with its alias from the webservice causes a redirect outside of the api layer, as explained in bug 623099 (https://bugs.launchpad.net/launchpad/+bug/623099/comments/1).

As another example, calling GET on http://api.launchpad.net/1.0/ubuntufontbetatesting will provide a redirect to https://launchpad.net/ubuntu-font-family. You can see this in your browser.

Tags: qa-ok

Related branches

Revision history for this message
j.c.sackett (jcsackett) wrote :

The problem occurs in canonical.launchpad.browser.launchpad, where canonical_url is called on the provided name, in this instance the alias, and the non-api link is returned.

j.c.sackett (jcsackett)
Changed in launchpad:
importance: High → Critical
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
milestone: none → 11.03
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
Robert Collins (lifeless) wrote :

The redirect stayed on the api layer on qastaging.

tags: added: qa-ok
removed: qa-needstesting
Changed in launchpad:
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.