Pillar aliases redirect outside of webservice on webservice calls
Bug #715992 reported by
j.c.sackett
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:/
As another example, calling GET on http://
Related branches
lp:~jcsackett/launchpad/api-pillar-redirects-715992
- Robert Collins (community): Approve
-
Diff: 89 lines (+35/-7)3 files modifiedlib/canonical/launchpad/browser/launchpad.py (+2/-1)
lib/canonical/launchpad/webapp/publisher.py (+5/-6)
lib/lp/registry/tests/test_product_webservice.py (+28/-0)
Changed in launchpad: | |
importance: | High → Critical |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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.