yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #37460
[Bug 1490505] [NEW] Glance create element to blob with null property when we remove null element to blob property
Public bug reported:
ENVIRONMENT: devstack, Glance (master, 30.08.2015)
STEPS TO REPRODUCE:
We tried remove element to blob property on artifact.
We have the artifact:
{"description": null, "published_at": null, "tags": [], "depends_on": null, "created_at": "2015-08-31T10:30:24.000000", "type_name": "MyArtifact", "updated_at": "2015-08-31T10:30:24.000000", "visibility": "private", "id": "3f931cb3-8715-4dff-9d79-639a6853ed14", "type_version": "2.0", "state": "creating", "version": "11.0.0", "references": [], "prop1": null, "prop2": null, "owner": "a82a48dc05df447baab0afe1770c2be8", "image_file": null, "deleted_at": null, "screenshots": [], "int_list": null, "name": "art"}
Send request:
curl -H "X-Auth-Token: 7df867f7b5ae42778b355a74b6d5d76c" -H "Content-Type:application/octet-stream" -X PATCH -d '[{"op": "remove", "path": "/image_file"}]' http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/3f931cb3-8715-4dff-9d79-639a6853ed14 -i
EXPECTED RESULT:
HTTP/1.1 204 OK
Content-Length: 640
Content-Type: application/json; charset=UTF-8
X-Openstack-Request-Id: req-42927006-cdaa-4a67-9143-8427830a1228
Date: Mon, 31 Aug 2015 10:34:39 GMT
{"description": null, "published_at": null, "tags": [], "depends_on":
null, "created_at": "2015-08-31T10:30:24.000000", "type_name":
"MyArtifact", "updated_at": "2015-08-31T10:30:24.000000", "visibility":
"private", "id": "3f931cb3-8715-4dff-9d79-639a6853ed14", "type_version":
"2.0", "state": "creating", "version": "11.0.0", "references": [],
"prop1": null, "prop2": null, "owner":
"a82a48dc05df447baab0afe1770c2be8", "image_file": {"checksum": null,
"download_link": "/artifacts/myartifact/v2.0/3f931cb3-8715-4dff-
9d79-639a6853ed14/image_file/download", "size": 0}, "deleted_at": null,
"screenshots": [], "int_list": null, "name": "art"}
ACTUAL RESULT:
HTTP/1.1 200 OK
Content-Length: 640
Content-Type: application/json; charset=UTF-8
X-Openstack-Request-Id: req-42927006-cdaa-4a67-9143-8427830a1228
Date: Mon, 31 Aug 2015 10:34:39 GMT
{"description": null, "published_at": null, "tags": [], "depends_on":
null, "created_at": "2015-08-31T10:30:24.000000", "type_name":
"MyArtifact", "updated_at": "2015-08-31T10:30:24.000000", "visibility":
"private", "id": "3f931cb3-8715-4dff-9d79-639a6853ed14", "type_version":
"2.0", "state": "creating", "version": "11.0.0", "references": [],
"prop1": null, "prop2": null, "owner":
"a82a48dc05df447baab0afe1770c2be8", "image_file": {"checksum": null,
"download_link": "/artifacts/myartifact/v2.0/3f931cb3-8715-4dff-
9d79-639a6853ed14/image_file/download", "size": 0}, "deleted_at": null,
"screenshots": [], "int_list": null, "name": "art"}
** Affects: glance
Importance: Undecided
Status: New
** Tags: artifacts
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1490505
Title:
Glance create element to blob with null property when we remove null
element to blob property
Status in Glance:
New
Bug description:
ENVIRONMENT: devstack, Glance (master, 30.08.2015)
STEPS TO REPRODUCE:
We tried remove element to blob property on artifact.
We have the artifact:
{"description": null, "published_at": null, "tags": [], "depends_on": null, "created_at": "2015-08-31T10:30:24.000000", "type_name": "MyArtifact", "updated_at": "2015-08-31T10:30:24.000000", "visibility": "private", "id": "3f931cb3-8715-4dff-9d79-639a6853ed14", "type_version": "2.0", "state": "creating", "version": "11.0.0", "references": [], "prop1": null, "prop2": null, "owner": "a82a48dc05df447baab0afe1770c2be8", "image_file": null, "deleted_at": null, "screenshots": [], "int_list": null, "name": "art"}
Send request:
curl -H "X-Auth-Token: 7df867f7b5ae42778b355a74b6d5d76c" -H "Content-Type:application/octet-stream" -X PATCH -d '[{"op": "remove", "path": "/image_file"}]' http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/3f931cb3-8715-4dff-9d79-639a6853ed14 -i
EXPECTED RESULT:
HTTP/1.1 204 OK
Content-Length: 640
Content-Type: application/json; charset=UTF-8
X-Openstack-Request-Id: req-42927006-cdaa-4a67-9143-8427830a1228
Date: Mon, 31 Aug 2015 10:34:39 GMT
{"description": null, "published_at": null, "tags": [], "depends_on":
null, "created_at": "2015-08-31T10:30:24.000000", "type_name":
"MyArtifact", "updated_at": "2015-08-31T10:30:24.000000",
"visibility": "private", "id": "3f931cb3-8715-4dff-9d79-639a6853ed14",
"type_version": "2.0", "state": "creating", "version": "11.0.0",
"references": [], "prop1": null, "prop2": null, "owner":
"a82a48dc05df447baab0afe1770c2be8", "image_file": {"checksum": null,
"download_link": "/artifacts/myartifact/v2.0/3f931cb3-8715-4dff-
9d79-639a6853ed14/image_file/download", "size": 0}, "deleted_at":
null, "screenshots": [], "int_list": null, "name": "art"}
ACTUAL RESULT:
HTTP/1.1 200 OK
Content-Length: 640
Content-Type: application/json; charset=UTF-8
X-Openstack-Request-Id: req-42927006-cdaa-4a67-9143-8427830a1228
Date: Mon, 31 Aug 2015 10:34:39 GMT
{"description": null, "published_at": null, "tags": [], "depends_on":
null, "created_at": "2015-08-31T10:30:24.000000", "type_name":
"MyArtifact", "updated_at": "2015-08-31T10:30:24.000000",
"visibility": "private", "id": "3f931cb3-8715-4dff-9d79-639a6853ed14",
"type_version": "2.0", "state": "creating", "version": "11.0.0",
"references": [], "prop1": null, "prop2": null, "owner":
"a82a48dc05df447baab0afe1770c2be8", "image_file": {"checksum": null,
"download_link": "/artifacts/myartifact/v2.0/3f931cb3-8715-4dff-
9d79-639a6853ed14/image_file/download", "size": 0}, "deleted_at":
null, "screenshots": [], "int_list": null, "name": "art"}
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1490505/+subscriptions
Follow ups