← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1472589] [NEW] nova quota-class-update returns wrong HTTP error code if <class> name length exceeds 255 characters

 

You have been subscribed to a public bug:

The quota-class-update API in Nova returns wrong HTTP error code if the
<class> name passed to it has length more than 255 characters.

If you pass <class> (name of the class)  parameter with more than 255
characters to this API, it returns HTTP 500 error code whereas HTTP 400
(HttpBadRequest) should be returned to the user.

Run below command to reproduce this issue. 
$ nova quota-class-update abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv --instances 2

Expected output should have contained (HTTP 400) but actual output is:
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-55f9faea-f971-46f2-bf5c-0d854404f11e)

** Affects: nova
     Importance: Undecided
     Assignee: Aniket Anikhindi (aniketanikhindi)
         Status: New


** Tags: nova
-- 
nova quota-class-update returns wrong HTTP error code if <class> name length exceeds 255 characters
https://bugs.launchpad.net/bugs/1472589
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova).