← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1468806] [NEW] attempt to communicate with non-existent properties

 

Public bug reported:

Steps to reproduce:

1. Create new artifact.

POST /v3/artifacts/myartifact/v2.0/drafts HTTP/1.1
Host: 172.18.78.38:9393
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Length: 85

{"description": "This is a sample plugin",  "name": "New Artifact",
"version": "1" }

2. Trying to update non-existent property  via PATCH method.

PATCH /v3/artifacts/myartifact/v2.0/a8c9c8c0-d357-4025-aaa1-5b51f54e74f5 HTTP/1.1
Host: 172.18.78.38:9393
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 99

[{"op": "remove", "path": "/something-non-existent-property/and-another-
one", "value":  "anydata"}]


Actual result:

HTTP/1.1 500 Internal Server Error
Content-Type: text/plain
Content-Length: 0
Date: Thu, 25 Jun 2015 15:32:30 GMT
Connection: close

** 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/1468806

Title:
  attempt to communicate with non-existent properties

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  Steps to reproduce:

  1. Create new artifact.

  POST /v3/artifacts/myartifact/v2.0/drafts HTTP/1.1
  Host: 172.18.78.38:9393
  User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
  Accept-Encoding: gzip, deflate
  Content-Length: 85

  {"description": "This is a sample plugin",  "name": "New Artifact",
  "version": "1" }

  2. Trying to update non-existent property  via PATCH method.

  PATCH /v3/artifacts/myartifact/v2.0/a8c9c8c0-d357-4025-aaa1-5b51f54e74f5 HTTP/1.1
  Host: 172.18.78.38:9393
  User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
  Accept-Encoding: gzip, deflate
  Connection: keep-alive
  Content-Length: 99

  [{"op": "remove", "path": "/something-non-existent-property/and-
  another-one", "value":  "anydata"}]

  
  Actual result:

  HTTP/1.1 500 Internal Server Error
  Content-Type: text/plain
  Content-Length: 0
  Date: Thu, 25 Jun 2015 15:32:30 GMT
  Connection: close

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1468806/+subscriptions


Follow ups

References