createPPA() api call fails if given text with newlines

Bug #868047 reported by Bryce Harrington
14
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.

Tags: api ppa

Related branches

Revision history for this message
Bryce Harrington (bryce) wrote :
Revision history for this message
Bryce Harrington (bryce) wrote :

Traceback (most recent call last):
  File "./test_ppa", line 33, in <module>
    description=description)
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py", line 558, in __call__
    url, in_representation, http_method, extra_headers=extra_headers)
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.py", line 281, in _request
    raise error
lazr.restfulclient.errors.BadRequest: HTTP Error 400: Bad Request

Revision history for this message
Данило Шеган (danilo) wrote :

This sounds like it should be considered an OOPS as well, and thus critical. Triaging as High for now though.

Changed in launchpad:
status: New → Triaged
importance: Undecided → High
tags: added: api ppa
Revision history for this message
William Grant (wgrant) wrote :

A 400 is not an OOPS.

Jürgen Gmach (jugmac00)
Changed in launchpad:
assignee: nobody → jugmac00 (jugmac00)
Colin Watson (cjwatson)
Changed in launchpad:
status: Triaged → In Progress
Colin Watson (cjwatson)
Changed in launchpad:
status: In Progress → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

Thank you, this is great to see fixed!

Revision history for this message
Jürgen Gmach (jugmac00) wrote :

Thank, you Bryce, I really appreciate the feedback!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.