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
Change-Id: I0231eaa693e7f36699fda6e011db8c976b639411
(cherry picked from commit 363ccf7b39bb14624e60ee1aa1f08f4e3f5f0642)
Reviewed: https:/ /review. openstack. org/165067 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=04d07dab7fe 15cf1b773326c66 2018ea9fa8ef75
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit 04d07dab7fe15cf 1b773326c662018 ea9fa8ef75
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 24e60ee1aa1f08f 4e3f5f0642)
Change-Id: I0231eaa693e7f3
(cherry picked from commit 363ccf7b39bb146