← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1483688] [NEW] v1: correct x-image-meta-id header provokes E500

 

Public bug reported:

This bug addresses the problem where the id is correct.

$ curl -v -X PUT http://127.0.0.1:9292/v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439 -H 'X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042' -H 'x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8'
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 9292 (#0)
> PUT /v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439 HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 127.0.0.1:9292
> Accept: */*
> X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042
> x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8
>
< HTTP/1.1 500 Internal Server Error
< Content-Type: text/plain
< Content-Length: 0
< Date: Mon, 10 Aug 2015 17:00:00 GMT
< Connection: close
<
* Closing connection 0

Should return 403

** Affects: glance
     Importance: Undecided
         Status: New

** Description changed:

  This bug addresses the problem where the id is correct.
  
  $ curl -v -X PUT http://127.0.0.1:9292/v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439 -H 'X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042' -H 'x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8'
  * Hostname was NOT found in DNS cache
  * Trying 127.0.0.1...
  * Connected to 127.0.0.1 (127.0.0.1) port 9292 (#0)
  > PUT /v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439 HTTP/1.1
  > User-Agent: curl/7.35.0
  > Host: 127.0.0.1:9292
  > Accept: */*
  > X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042
  > x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8
  >
  < HTTP/1.1 500 Internal Server Error
  < Content-Type: text/plain
  < Content-Length: 0
  < Date: Mon, 10 Aug 2015 17:00:00 GMT
  < Connection: close
  <
  * Closing connection 0
+ 
+ Should return 403

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1483688

Title:
  v1: correct x-image-meta-id header provokes E500

Status in Glance:
  New

Bug description:
  This bug addresses the problem where the id is correct.

  $ curl -v -X PUT http://127.0.0.1:9292/v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439 -H 'X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042' -H 'x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8'
  * Hostname was NOT found in DNS cache
  * Trying 127.0.0.1...
  * Connected to 127.0.0.1 (127.0.0.1) port 9292 (#0)
  > PUT /v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439 HTTP/1.1
  > User-Agent: curl/7.35.0
  > Host: 127.0.0.1:9292
  > Accept: */*
  > X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042
  > x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8
  >
  < HTTP/1.1 500 Internal Server Error
  < Content-Type: text/plain
  < Content-Length: 0
  < Date: Mon, 10 Aug 2015 17:00:00 GMT
  < Connection: close
  <
  * Closing connection 0

  Should return 403

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