Image Create/Edit Description field cannot contain newlines
Bug #1370732 reported by
Nicolas Simonds
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Nicolas Simonds | ||
Juno |
Fix Released
|
Medium
|
Matthias Runge |
Bug Description
With the Glance v1 API, Horizon does no input sanitization on the Image Description field, so newlines in the Description will be sent along verbatim, breaking the session.
A simple test case to reproduce:
1. Stand up a Devstack, login to Horizon, and go to the Project » Images page
2. Edit an image
3. Set the description to "foo\n\nbar" (i.e., "foo", two newlines, then "bar")
4. Set the name to "foo bar"
Expected behaviour:
The name of the image changes to "foo bar", and the description (on the Detail page) changes to "foo\n\nbar"
Actual behaviour:
The name is unchanged, and the description is set to "foo" The glance-api session on Devstack will also report an HTTP 400 error.
Changed in horizon: | |
importance: | Undecided → Medium |
Changed in horizon: | |
milestone: | none → kilo-1 |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | kilo-1 → 2015.1.0 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/122257
Review: https:/