yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #01977
[Bug 1111948] Re: Spaces in image id causes glance to fail
** Changed in: glance/grizzly
Importance: Undecided => High
** Changed in: glance/grizzly
Status: New => Fix Released
** Changed in: glance/grizzly
Milestone: None => 2013.1
** Changed in: glance/grizzly
Assignee: (unassigned) => Vish Ishaya (vishvananda)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1111948
Title:
Spaces in image id causes glance to fail
Status in OpenStack Image Registry and Delivery Service (Glance):
Fix Released
Status in Glance grizzly series:
Fix Released
Status in Python client library for Glance:
Fix Released
Bug description:
When you attempt to request an image_id with a space in it you get the
following from glance_api:
2013-01-31 16:05:40.641 DEBUG glance.common.client
[b7a2d118-8b22-4083-9d44-673bac11a57d 67020b77c5b04e6fa63fa4bd31c07826
0e609c73e9cb456e9a7dc68295566773] Constructed URL:
http://0.0.0.0:9191/images/invalid id _construct_url
/opt/stack/glance/glance/common/client.py:3972013-01-31 16:05:40.644
INFO glance.registry.client [b7a2d118-8b22-4083-9d44-673bac11a57d
67020b77c5b04e6fa63fa4bd31c07826 0e609c73e9cb456e9a7dc68295566773]
Registry client request GET /images/invalid id raised Invalid
and the following from glance_registry:
localhost - - [31/Jan/2013 16:05:40] code 400, message Bad request
syntax ('GET /images/invalid id HTTP/1.1')localhost - - [31/Jan/2013
16:05:40] "GET /images/invalid id HTTP/1.1" 400 -
This is because spaces are not urlquoted properly
glanceclient has a similar issue of not quoting strings before making
requests.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1111948/+subscriptions