Bug #4931
No field validation when modifying a VM template
| Status: | Pending | Start date: | 11/18/2016 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | Sunstone | |||
| Target version: | - | |||
| Resolution: | Pull request: | |||
| Affected Versions: | OpenNebula 5.0, OpenNebula 5.2 |
Description
Hello,
Step to reproduce:
- use a browser in a language where decimal separator is not dot (french use comma)
- change the
CPUfield of a VM template to0.5, with a dot. - click
Updateto save the modification - the
CPUvanish from the template, checked withonetemplate show
Now try the following:
- use a browser in a language where decimal separator is not dot (french use comma)
- change the
CPUfield of a VM template to0,5, using the keydecimal separatorfrom the keypad, a comma is displayed by the browser - click
Updateto save the modification - the
CPUis set to0.5in the template displayed byonetemplate show
The javascript is expecting a comma as decimal separator, this comma is then translated somewhere a dot to save it.
The problem is that there is no feedback, I found nothing in the logs.
I can even enter foobar as value in Sunstone.
I'm not a web developper but a solution could be to defining different input types, I see that the form only use text.
Regards.