Glance returned 404 status code when we specify bad headers or we do not specify headers when updated artifact
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Undecided
|
Unassigned |
Bug Description
ENVIRONMENT: devstack, Glance (master, 31.08.2015)
STEPS TO REPRODUCE:
We are trying to upgrade artifact
1) curl -H "X-Auth-Token: 3b4e028c1e6f457
2)curl -H "X-Auth-Token: 3b4e028c1e6f457
EXPECTED RESULT:
status code 400 and message error
ACTUAL RESULT:
curl: (6) Could not resolve host: POST
HTTP/1.1 404 Not Found
Content-Length: 154
Content-Type: text/html; charset=UTF-8
X-Openstack-
Date: Tue, 01 Sep 2015 13:08:38 GMT
<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>404 Not Found</h1>
The resource could not be found.<br /><br />
</body>
</html>
You need to add -X in front of POST as curl thinks that POST is the host name.
curl -H "X-Auth-Token: 3b4e028c1e6f457 595497afc1df37f fb" -X POST -d '{"data":"la-la"}' http:// 172.18. 76.44:9292/ v3/artifacts/ myartifact/ v2.0/91671992- c84e-4723- 9024-3c9b6dddf0 79/description -i