Keta Patel created AMBARI-15979:
-----------------------------------
Summary: Provide UI validation for widget_name and description
fields in Create/Edit Widget pop-up.
Key: AMBARI-15979
URL: https://issues.apache.org/jira/browse/AMBARI-15979
Project: Ambari
Issue Type: Improvement
Components: ambari-web
Affects Versions: trunk
Reporter: Keta Patel
Assignee: Keta Patel
The UI validation at present checks only the length of the user input for
widget_name and description fields. All characters are allowed to be stored in
the database through them. A more strict UI validation that limits the type of
characters entered for these fields will provide a good first line of defense.
Steps to reproduce:
1. Make sure you have Ambari Metrics service installed on your cluster.
2. On the Dashboard, select any service that makes use of Ambari Metrics, say
HDFS.
3. In the "Metrics" section, click the "Actions" button in the top-right
corner, and select "Create a new widget" option from the drop-down.
4. Create widget pop-up is displayed.
5. On Step-1, select any type for the widget and click "Next".
6. On Step-2, select any valid metrics parameter and click "Next".
7. On Step-3, for widget_name and description fields, you can enter any
character. No validation is present to check the contents. The only validation
present checks the length of the input text.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)