Bug 1129937

Summary: YaST Configuration Management module do not validate all field types
Product: [SUSE Linux Enterprise Server] Beta SUSE Linux Enterprise Server 15 SP1 Reporter: Joaquín Rivera <jeriveramoya>
Component: YaST2Assignee: YaST Team <yast-internal>
Status: CONFIRMED --- QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: igonzalezsosa, lubos.kocman
Version: RC 1   
Target Milestone: ---   
Hardware: x86-64   
OS: SLES 15   
URL: https://trello.com/c/BdE2MUbU/
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 1129936    
Bug Blocks: 1129938, 1129940    

Description Joaquín Rivera 2019-03-20 14:47:38 UTC
During testing of jsc#SLE-2995 and playing editing form.yml to create different visualizations, it was found that:

- Validation are missing for types: `number`, `url`
- For `date` even there is a visual validation, we can put cursor at the end and go backward writing '9999-99-99'. 
- Dialog with error validation only contains the first error found, instead of a list of them.

It is easy to check using a small portion of this example:
https://github.com/yast/yast-configuration-management/blob/master/test/fixtures/formulas-ng/test-formula/form.yml

Expectation:
An error is displayed if something that is not a number is introduced in that field, the same for url. Date field should avoid that specific trick and be validated. Regarding usability, give errors one by one perhaps not the best choice, I note that only just as an observation.
Comment 1 Imobach Gonzalez Sosa 2019-03-21 09:13:44 UTC
Moving the bug to our Trello board: https://trello.com/c/BdE2MUbU/