Question methods on API have errors from redirection
Bug #771891 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
When you fetch a question over the API via the top level resource, 'questions', you end up being redirected to the canonical_url for the question within the API layer. When you then call a method, the API sees a redirect when trying to process it at the HTTP level, and an error gets thrown.
Related branches
lp:~jcsackett/launchpad/bloody-question-api-redirect
- Curtis Hovey (community): Approve (code)
-
Diff: 63 lines (+10/-12)2 files modifiedlib/lp/answers/browser/question.py (+8/-1)
lib/lp/answers/tests/test_question_webservice.py (+2/-11)
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Triaged |
status: | Triaged → Fix Released |
To post a comment you must log in.
Fixed in stable r12932 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 12932>.