DescriptionBeate Guldenschuh-Bihannic
2019-03-26 15:31:38 UTC
Created attachment 1548123[details]
image which describes problem
Description of problem:
Datepicker field allows to enter alphanumeric text, no validation against the text
Version-Release number of selected component (if applicable):
5.10.0.33.20190129203322_85a1e4e
How reproducible:
Create a service dialog with a datepicker field. Enter an alphanumeric value into the field (eg. "test"), the submit button will still be active and no validation of the content happens
Steps to Reproduce:
1. create a new service dialog with a datepicker field
2. add the service dialog to the catalog
3. in the service catalog select the service dialog and click on order
4. Clear the date from the field and enter "test" in the datepicker field
5. the Submit Button is still active and no validation of the invalid content happens
Actual results:
no validation on invalid datepicker field content
Expected results:
the field validation tells, that the content "test" is not a valid date
Additional info:
Please assess the impact of this issue and update the severity accordingly. Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.
If it's something like a tracker bug where it doesn't matter, please set the severity to Low.
New commit detected on ManageIQ/ui-components/master:
https://github.com/ManageIQ/ui-components/commit/799c80900e834e0d6e13656e274e3d7f7bda3547
commit 799c80900e834e0d6e13656e274e3d7f7bda3547
Author: Roman Blanco <rblanco>
AuthorDate: Mon Jun 10 12:51:04 2019 -0400
Commit: Roman Blanco <rblanco>
CommitDate: Mon Jun 10 12:51:04 2019 -0400
Mark datepicker field as valid only if it's value is an instance of Date
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1692863
src/dialog-user/services/dialogData.ts | 8 +-
1 file changed, 7 insertions(+), 1 deletion(-)
Comment 10Niyaz Akhtar Ansari
2019-07-17 07:14:16 UTC
Verified in Version 5.11.0.14.20190710225033_cb17ff0
Created attachment 1548123 [details] image which describes problem Description of problem: Datepicker field allows to enter alphanumeric text, no validation against the text Version-Release number of selected component (if applicable): 5.10.0.33.20190129203322_85a1e4e How reproducible: Create a service dialog with a datepicker field. Enter an alphanumeric value into the field (eg. "test"), the submit button will still be active and no validation of the content happens Steps to Reproduce: 1. create a new service dialog with a datepicker field 2. add the service dialog to the catalog 3. in the service catalog select the service dialog and click on order 4. Clear the date from the field and enter "test" in the datepicker field 5. the Submit Button is still active and no validation of the invalid content happens Actual results: no validation on invalid datepicker field content Expected results: the field validation tells, that the content "test" is not a valid date Additional info: