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
CPU
field of a VM template to0.5
, with a dot. - click
Update
to save the modification - the
CPU
vanish 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
CPU
field of a VM template to0,5
, using the keydecimal separator
from the keypad, a comma is displayed by the browser - click
Update
to save the modification - the
CPU
is set to0.5
in 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.