edit flavor deletes the flavor if special char is used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Lin Hua Cheng |
Bug Description
Steps to reproduce:
1. Go to Syspanel > Flavors
2. Edit an existing flavor
3. Edit the name field to 'bug()'
4. Click Save
Current result:
The dialog opens again and says Error: There was an error submitting the form. Please try again.
After refreshing the page the flavor got deleted and isn't seen anymore
Expected result:
Save correctly even if there is a ( in the name or show a proper error to the user.
Wasn't sure yet if it's a bug in nova. why shouldn't a name be supported which contains ( ? We currently also support spaces.
Additional info:
The following characters are also known to cause this issue %* , probably a lot more but didn't test those.
This bug also applies to create flavor, as create flavor also just shows Error submitting form when invalid char is being used. This is because edit does a Delete flavor first and then a Create Flavor.
description: | updated |
description: | updated |
Changed in horizon: | |
status: | New → Confirmed |
Changed in horizon: | |
milestone: | havana-1 → grizzly-rc2 |
Changed in horizon: | |
milestone: | grizzly-rc2 → 2013.1 |
Investigated the issue, it seems like nova validating is blocking the special character in the flavor name.
Nova is returning 400 error with "names can only contain [a-zA-Z0-9_.- ]"
I can open a question to nova why we have this restriction