createPPA() api call fails if given text with newlines
Bug #868047 reported by
Bryce Harrington
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Jürgen Gmach |
Bug Description
createPPA() returns HTTP Error 400: Bad Request if its description parameter includes text that has newlines.
See attached script and output.
Related branches
~jugmac00/launchpad:update-webservice-api-for-iperson.createppa
Merged
into
launchpad:master
- Colin Watson (community): Approve
-
Diff: 52 lines (+19/-1)2 files modifiedlib/lp/registry/interfaces/person.py (+1/-1)
lib/lp/soyuz/tests/test_person_createppa.py (+18/-0)
tags: | added: api ppa |
Changed in launchpad: | |
assignee: | nobody → jugmac00 (jugmac00) |
Changed in launchpad: | |
status: | Triaged → In Progress |
Changed in launchpad: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Traceback (most recent call last): =description) python2. 7/dist- packages/ lazr/restfulcli ent/resource. py", line 558, in __call__ extra_headers) python2. 7/dist- packages/ lazr/restfulcli ent/_browser. py", line 281, in _request ent.errors. BadRequest: HTTP Error 400: Bad Request
File "./test_ppa", line 33, in <module>
description
File "/usr/lib/
url, in_representation, http_method, extra_headers=
File "/usr/lib/
raise error
lazr.restfulcli