Make Image Description an input field instead of a textarea
The glanceclient passes the value of the "Description" field as
HTTP headers to the API, completely unmodified. If there are
newlines in the content, it corrupts the headers and creates havoc.
Encoding/decoding the results is not viable, since arbitrary (and
not necessarily controlled by anyone) clients can retrieve the data. So as
a dodge, use a normal <input> field for Description instead of
<textarea> field, as newlines are not permitted in the former.
Reviewed: https:/ /review. openstack. org/122257 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=363ccf7b39b b14624e60ee1aa1 f08f4e3f5f0642
Committed: https:/
Submitter: Jenkins
Branch: master
commit 363ccf7b39bb146 24e60ee1aa1f08f 4e3f5f0642
Author: Nicolas Simonds <email address hidden>
Date: Wed Sep 17 14:49:08 2014 -0700
Make Image Description an input field instead of a textarea
The glanceclient passes the value of the "Description" field as
HTTP headers to the API, completely unmodified. If there are
newlines in the content, it corrupts the headers and creates havoc.
Encoding/ decoding the results is not viable, since arbitrary (and
not necessarily controlled by anyone) clients can retrieve the data. So as
a dodge, use a normal <input> field for Description instead of
<textarea> field, as newlines are not permitted in the former.
Closes-Bug: 1370732 6699fda6e011db8 c976b639411
Change-Id: I0231eaa693e7f3