'Unknown' is not valid status when using searchTasks() via the API

Bug #676189 reported by Jamu Kakar on 2010-11-16
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
High
Unassigned

Bug Description

The list of statuses listed here:

https://launchpad.net/+apidoc/1.0.html#bug_task

includes 'Unknown', but actually specifying that status causes a
failure:

  ...
    for bug_task in milestone.searchTasks(status=ALL_STATUSES):
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/resource.py", line 528, in __call__
    url, in_representation, http_method, extra_headers=extra_headers)
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/_browser.py", line 277, in _request
    raise HTTPError(response, content)
lazr.restfulclient.errors.HTTPError: HTTP Error 400: Bad Request
Response headers:
---
connection: close
content-length: 230
content-type: text/plain
date: Tue, 16 Nov 2010 18:30:57 GMT
server: zope.server.http (HTTP)
status: 400
vary: Accept,Accept-Encoding
via: 1.1 wildcard.edge.launchpad.net
x-powered-by: Zope (www.zope.org), Python (www.python.org)
---
Response body:
---
status: Invalid value "Unknown". Acceptable values are: New, Incomplete (with response), Incomplete (without response), Incomplete, Opinion, Invalid, Won't Fix, Expired, Confirmed, Triaged, In Progress, Fix Committed, Fix Released
---

Notice also that 'Incomplete (with response)' and 'Incomplete (without
response)' are not included in the documentation.

Aaron Bentley (abentley) on 2010-11-17
affects: launchpad → malone
Deryck Hodge (deryck) on 2010-12-06
tags: added: api documentation
Changed in malone:
status: New → Triaged
importance: Undecided → High
tags: added: easy
Curtis Hovey (sinzui) on 2012-03-08
summary: - 'Unknown' is not valid status when using milestone.searchTasks via the
- API
+ 'Unknown' is not valid status when using searchTasks() via the API
Eike (eike-welk) on 2012-03-08
Changed in bug-repo-syncer:
importance: Undecided → Low
status: New → Confirmed
Eike (eike-welk) on 2012-03-26
no longer affects: bug-repo-syncer
William Grant (wgrant) on 2015-09-11
tags: added: bug-search
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers