yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #37519
[Bug 1490976] [NEW] Glance ignores a headers when created artifact
Public bug reported:
ENVIRONMENT: devstack, Glance (master, 31.08.2015)
STEPS TO REPRODUCE:
1) curl -H "X-Auth-Token: 3b4e028c1e6f457595497afc1df37ffb" -H "bla-
bla" POST -d '{"name": "name1", "version": "2"}'
http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/drafts -i
2)curl -H "X-Auth-Token: 3b4e028c1e6f457595497afc1df37ffb" POST -d
'{"name": "name1", "version": "2"}'
http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/drafts -i
EXPECTED RESULT:
status code 400 and message error
ACTUAL RESULT:
Artifact is created
curl: (6) Could not resolve host: POST
HTTP/1.1 201 Created
Content-Length: 512
Content-Type: application/json; charset=UTF-8
Location: http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/91671992-c84e-4723-9024-3c9b6dddf079
X-Openstack-Request-Id: req-8d193d56-1e24-48cf-a409-82a016d443b8
Date: Tue, 01 Sep 2015 13:02:40 GMT
{"description": null, "published_at": null, "tags": [], "depends_on":
null, "created_at": "2015-09-01T13:02:40.000000", "type_name":
"MyArtifact", "updated_at": "2015-09-01T13:02:40.000000", "visibility":
"private", "id": "91671992-c84e-4723-9024-3c9b6dddf079", "type_version":
"2.0", "state": "creating", "version": "2.0.0", "references": [],
"prop1": null, "prop2": null, "owner":
"e883b496995f42e988e9c6c07c16d2da", "image_file": null, "deleted_at":
null, "screenshots": [], "int_list": null, "name": "name1"}
** Affects: glance
Importance: Undecided
Assignee: dshakhray (dshakhray)
Status: New
** Changed in: glance
Assignee: (unassigned) => dshakhray (dshakhray)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1490976
Title:
Glance ignores a headers when created artifact
Status in Glance:
New
Bug description:
ENVIRONMENT: devstack, Glance (master, 31.08.2015)
STEPS TO REPRODUCE:
1) curl -H "X-Auth-Token: 3b4e028c1e6f457595497afc1df37ffb" -H "bla-
bla" POST -d '{"name": "name1", "version": "2"}'
http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/drafts -i
2)curl -H "X-Auth-Token: 3b4e028c1e6f457595497afc1df37ffb" POST -d
'{"name": "name1", "version": "2"}'
http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/drafts -i
EXPECTED RESULT:
status code 400 and message error
ACTUAL RESULT:
Artifact is created
curl: (6) Could not resolve host: POST
HTTP/1.1 201 Created
Content-Length: 512
Content-Type: application/json; charset=UTF-8
Location: http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/91671992-c84e-4723-9024-3c9b6dddf079
X-Openstack-Request-Id: req-8d193d56-1e24-48cf-a409-82a016d443b8
Date: Tue, 01 Sep 2015 13:02:40 GMT
{"description": null, "published_at": null, "tags": [], "depends_on":
null, "created_at": "2015-09-01T13:02:40.000000", "type_name":
"MyArtifact", "updated_at": "2015-09-01T13:02:40.000000",
"visibility": "private", "id": "91671992-c84e-4723-9024-3c9b6dddf079",
"type_version": "2.0", "state": "creating", "version": "2.0.0",
"references": [], "prop1": null, "prop2": null, "owner":
"e883b496995f42e988e9c6c07c16d2da", "image_file": null, "deleted_at":
null, "screenshots": [], "int_list": null, "name": "name1"}
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1490976/+subscriptions
Follow ups