Improper handling/validation for fields passed in "flavor create" command.

Bug #1545731 reported by Sheel Rana
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Sheel Rana

Bug Description

nova flavor-create sheel_flavor🌋 09 1 1 1
ERROR (BadRequest): Invalid input for field/attribute name. Value: sheel_flavor🌋. u'sheel_flavor\U0001f30b' does not match u'^(?![\\ \\\xa0\\\u1680\\\u180e\\\u2000\\\u2001\\\u2002\\\u2003\\\u2004\\\u2005\\\u2006\\\u2007\\\u2008\\\u2009\\\u200a\\\u202f\\\u205f\\\u3000])[\\ \\!\\"\\#\\$\\%\\&\\\'\\(\\)\\*\\+\\,\\-\\.\\/0123456789\\:\\;\\<\\=\\>\\?\\@ABCDEFGHIJKLMNOPQRSTUVWXYZ\\[\\\\\\]\\^\\_\\`abcdefghijklmnopqrstuvwxyz\\{\\|\\}\\~\\\xa0\\\xa1\\\xa2\\\xa3\\\xa4\\\xa5\\\xa6\\\xa7\\\xa8\\\xa9\\\xaa\\\xab\\\xac\\\xae\\\xaf\\\xb0\\\xb1\\\xb2\\\xb3\\\xb4\\\xb5\\\xb6\\\xb7\\\xb8\\\xb9\\\xba\\\xbb\\\xbc\\\xbd\\\xbe\\\xbf\\\xc0\\\xc1\\\xc2\\\xc3\\\xc4\\\xc5\\\xc6\\\xc7\\\xc8\\\xc9\\\xca\\\xcb\\\xcc\\\xcd\\\xce\\\xcf\\\xd0\\\xd1\\\xd2\\\xd3\\\xd4\\\xd5\\\xd6\\\xd7\\\xd8\\\xd9\\\xda\\\xdb\\\xdc\\\xdd\\\xde\\\xdf\\\xe0\\\xe1\\\xe2\\\xe3\\\xe4\\\xe5\\\xe6\\\xe7\\\xe8\\\xe9\\\xea\\\xeb\\\xec\\\xed\\\xee\\\xef\\\xf0\\\xf1\\\xf2\\\xf3\\\xf4\\\xf5\\\xf6\\\xf7\\\xf8\\\xf9\\\xfa\\\xfb\\\xfc\\\xfd\\\xfe\\\xfff\\\

++++++++++++++++++++====
large string of same kind of characters for almost 1000 lines "eb\\\xec\\\xed\\\xee\\\xef\\"
++++++++++++++++++++====

\\\uffa7\\\uffa8\\\uffa9\\\uffaa\\\uffab\\\uffac\\\uffad\\\uffae\\\uffaf\\\uffb0\\\uffb1\\\uffb2\\\uffb3\\\uffb4\\\uffb5\\\uffb6\\\uffb7\\\uffb8\\\uffb9\\\uffba\\\uffbb\\\uffbc\\\uffbd\\\uffbe\\\uffc2\\\uffc3\\\uffc4\\\uffc5\\\uffc6\\\uffc7\\\uffca\\\uffcb\\\uffcc\\\uffcd\\\uffce\\\uffcf\\\uffd2\\\uffd3\\\uffd4\\\uffd5\\\uffd6\\\uffd7\\\uffda\\\uffdb\\\uffdc\\\uffe0\\\uffe1\\\uffe2\\\uffe3\\\uffe4\\\uffe5\\\uffe6\\\uffe8\\\uffe9\\\uffea\\\uffeb\\\uffec\\\uffed\\\uffee\\\ufffc\\\ufffd]*(?<![\\ \\\xa0\\\u1680\\\u180e\\\u2000\\\u2001\\\u2002\\\u2003\\\u2004\\\u2005\\\u2006\\\u2007\\\u2008\\\u2009\\\u200a\\\u202f\\\u205f\\\u3000])$' (HTTP 400) (Request-ID: req-46964e9f-d9ee-4535-b21f-53240a990e8a)

Tags: api
Changed in nova:
assignee: nobody → Sheel Rana (ranasheel2000)
summary: - Improper handling of error check in flavor create operation
+ Improper handling/validation for fields passed in "flavor create"
+ command.
Revision history for this message
jichenjc (jichenjc) wrote :

can you try a REST API directly? I think it's a novaclient bug instead of nova thing

tags: added: api
Revision history for this message
Sheel Rana (ranasheel2000) wrote :

jichenjc,

It seems related to jsonschema valdiation.

Revision history for this message
jichenjc (jichenjc) wrote :

yes you are right, and you can refer to the duplicate bug 1541691
I think most of the problem is fixed or about to be fixed, thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.