← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1205207] Re: Internal server error when creating image with an invalid name

 

** Changed in: glance
       Status: New => Invalid

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

Title:
  Internal server error when creating image with an invalid name

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

Bug description:
  I got HTTP/1.1 500 Internal Server Error when I am trying to create
  an image with an invalid header.

  - The header should be MIME encoded, so this request is invalid anyway.
  - The service should not accept invalid UTF-8 names.
  - The 5xx  responses must be logged.
  - The invalid headers should be rewarded by 400 response and not by an 5xx response.

  A simple script to reproduce the issue is attached.

  Note: I used swift backend.

  HTTP/1.1 500 Internal Server Error
  Content-Type: text/plain
  Content-Length: 0
  Date: Fri, 26 Jul 2013 06:47:47 GMT
  Connection: close

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