Glance returned 500 status code when we specify headers "Content-Type: application/json" when work with blob/bloblist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Undecided
|
Darja Shakhray |
Bug Description
ENVIRONMENT: devstack, Glance (master, 31.08.2015)
STEPS TO REPRODUCE:
Send request
1) curl -H "X-Auth-Token: 986359319028436
2) curl -H "X-Auth-Token: 986359319028436
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-
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>
Changed in glance: | |
assignee: | nobody → dshakhray (dshakhray) |
There is couple of moments:
1. We should not allow to have content_type: octet-stream for PATCH
2. When I tried to execute the same query with application/json it is still failing:)