Bug #4931

No field validation when modifying a VM template

Added by EOLE Team over 4 years ago.

Status:PendingStart date:11/18/2016
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Sunstone
Target version:-
Resolution: Pull request:
Affected Versions:OpenNebula 5.0, OpenNebula 5.2

Description

Hello,

Step to reproduce:

  1. use a browser in a language where decimal separator is not dot (french use comma)
  2. change the CPU field of a VM template to 0.5, with a dot.
  3. click Update to save the modification
  4. the CPU vanish from the template, checked with onetemplate show

Now try the following:

  1. use a browser in a language where decimal separator is not dot (french use comma)
  2. change the CPU field of a VM template to 0,5, using the key decimal separator from the keypad, a comma is displayed by the browser
  3. click Update to save the modification
  4. the CPU is set to 0.5 in the template displayed by onetemplate 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.

Also available in: Atom PDF