← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1490903] [NEW] Glance returned 500 status code when we specify headers "Content-Type: application/json" when work with blob/bloblist

 

Public bug reported:

ENVIRONMENT: devstack, Glance (master, 31.08.2015)

STEPS TO REPRODUCE:
Send request
1) curl -H "X-Auth-Token: 9863593190284361af174f3b9ec39e8c" -H "Content-Type:application/json" -X POST -d '{"data": "ssss"}' http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/2a787efd-c724-46ab-9de2-6f2e896be473/image_file -i

2) curl -H "X-Auth-Token: 9863593190284361af174f3b9ec39e8c" -H "Content-
Type:application/json" -X POST -d '{"data": "ssss"}'
http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/2a787efd-c724
-46ab-9de2-6f2e896be473/screenshots -i

EXPECTED RESULT:
status code 400 and error message

ACTUAL RESULT:
HTTP/1.1 500 Internal Server Error
Content-Length: 228
Content-Type: text/html; charset=UTF-8
X-Openstack-Request-Id: req-3210dabf-baf8-4d0b-9afa-ab826a1a5d36
Date: Tue, 01 Sep 2015 09:33:29 GMT

<html>
 <head>
  <title>500 Internal Server Error</title>
 </head>
 <body>
  <h1>500 Internal Server Error</h1>
  The server has either erred or is incapable of performing the requested operation.<br /><br />


 </body>
</html>

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

Title:
  Glance returned 500 status code when we specify headers "Content-Type:
  application/json" when work with blob/bloblist

Status in Glance:
  New

Bug description:
  ENVIRONMENT: devstack, Glance (master, 31.08.2015)

  STEPS TO REPRODUCE:
  Send request
  1) curl -H "X-Auth-Token: 9863593190284361af174f3b9ec39e8c" -H "Content-Type:application/json" -X POST -d '{"data": "ssss"}' http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/2a787efd-c724-46ab-9de2-6f2e896be473/image_file -i

  2) curl -H "X-Auth-Token: 9863593190284361af174f3b9ec39e8c" -H
  "Content-Type:application/json" -X POST -d '{"data": "ssss"}'
  http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/2a787efd-c724
  -46ab-9de2-6f2e896be473/screenshots -i

  EXPECTED RESULT:
  status code 400 and error message

  ACTUAL RESULT:
  HTTP/1.1 500 Internal Server Error
  Content-Length: 228
  Content-Type: text/html; charset=UTF-8
  X-Openstack-Request-Id: req-3210dabf-baf8-4d0b-9afa-ab826a1a5d36
  Date: Tue, 01 Sep 2015 09:33:29 GMT

  <html>
   <head>
    <title>500 Internal Server Error</title>
   </head>
   <body>
    <h1>500 Internal Server Error</h1>
    The server has either erred or is incapable of performing the requested operation.<br /><br />


   </body>
  </html>

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


Follow ups