yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #44915
[Bug 1490903] Re: Glance returned 500 status code when we specify headers "Content-Type: application/json" when work with blob/bloblist
Reviewed: https://review.openstack.org/221056
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=a11ba6d4cde8e861ebce77dd19986aa6a3072c66
Submitter: Jenkins
Branch: master
commit a11ba6d4cde8e861ebce77dd19986aa6a3072c66
Author: Darja Shakhray <dshakhray@xxxxxxxxxxxx>
Date: Mon Sep 7 18:18:54 2015 +0300
Fix 500 error when we specify invalid headers when work with blob/bloblist
When specify header "Content-Type: application/json" when work
with blob/bloblist, Glance returns 500 status code.
Added check for compliance "Content-Type".
ApiImpact
FastTrack
Change-Id: Ic89d6b6697d808e9ace37ac6de40c8d0e06bb345
Closes-bug: #1490903
** Changed in: glance
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1490903
Title:
Glance returned 500 status code when we specify headers "Content-Type:
application/json" when work with blob/bloblist
Status in Glance:
Fix Released
Bug description:
ENVIRONMENT: devstack, Glance (master, 31.08.2015)
STEPS TO REPRODUCE:
Send request
1) curl -H "X-Auth-Token: 9863593190284361af174f3b9ec39e8c" -H "Content-Type:application/json" -X POST -d '{"data": "ssss"}' http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/2a787efd-c724-46ab-9de2-6f2e896be473/image_file -i
2) curl -H "X-Auth-Token: 9863593190284361af174f3b9ec39e8c" -H
"Content-Type:application/json" -X POST -d '{"data": "ssss"}'
http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/2a787efd-c724
-46ab-9de2-6f2e896be473/screenshots -i
EXPECTED RESULT:
status code 400 and error message
ACTUAL RESULT:
HTTP/1.1 500 Internal Server Error
Content-Length: 228
Content-Type: text/html; charset=UTF-8
X-Openstack-Request-Id: req-3210dabf-baf8-4d0b-9afa-ab826a1a5d36
Date: Tue, 01 Sep 2015 09:33:29 GMT
<html>
<head>
<title>500 Internal Server Error</title>
</head>
<body>
<h1>500 Internal Server Error</h1>
The server has either erred or is incapable of performing the requested operation.<br /><br />
</body>
</html>
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1490903/+subscriptions
References