API indicates to use a space separated list for tags with CreateBug

Bug #1199183 reported by Brian Murray
This bug report is a duplicate of:  Bug #971520: Comment for bug tags is wrong in API. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

This works if you use just one tag, but not two or more.

ipdb> lp.bugs.createBug(description='test bug', target=ubuntu, tags='precise quantal', title='awesome bug')
*** BadRequest: HTTP Error 400: Bad Request
Response headers:
---
-content-encoding: gzip
connection: close
content-length: 60
content-type: text/plain;charset=utf-8
date: Mon, 08 Jul 2013 23:27:56 GMT
server: zope.server.http (HTTP)
status: 400
strict-transport-security: max-age=2592000
vary: Accept,Accept-Encoding
via: 1.1 api.launchpad.net
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-lazr-notifications: []
x-powered-by: Zope (www.zope.org), Python (www.python.org)
x-xss-protection: 1; mode=block
---
Response body:
---
tags: ([ConstraintNotSatisfied(u'precise quantal')], 'tags')

Tags: api trivial
Revision history for this message
Robert Collins (lifeless) wrote :

Uhm you should try tags=['precise', 'quantal'].

Changed in launchpad:
status: New → Incomplete
Revision history for this message
Brian Murray (brian-murray) wrote :

Oh, I was just following what the documentation (https://launchpad.net/+apidoc/devel.html#bugs) indicated.

Tags
Space-separated keywords for classifying this bug report.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Launchpad itself because there has been no activity for 60 days.]

Changed in launchpad:
status: Incomplete → Expired
Changed in launchpad:
status: Expired → New
summary: - not possible to report a bug using the API with more than one tag
+ API indicates to use a space separated list for tags with CreateBug
Colin Watson (cjwatson)
tags: added: api trivial
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
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.