Created attachment 1080535 [details] Screenshot of Validation failed. Description of problem: After Overriding the value of Smart class Parameter and validating the new default value with validator type 'list' fails. Version-Release number of selected component (if applicable): foreman-1.10.0-0.develop.201510011619git0033595.el7.noarch foreman-release-scl-1-1.el7.x86_64 How reproducible: Always Steps to Reproduce: 1. Override the default value of a smart class parameter. 2. Select the key type as array/string. 3. Give new default value as [1]/1. (Just an example, anything can be provided) 4. In Optional Input Validator, Select validator type as list. 5. In Validator Rule, give some list of values in which the new default value should be present. In my case its [1,2]. 6. Try to submit this change. Actual results: 1. Validation Failed. 2. Not allowing to submit the change and labelling '[1] is not one of [1,2]' or '1 is not one of [1,2]' for Default Value field. Expected results: Should be allowed to submit the change and validation should pass as obvious in above case. Additional info:
VERIFIED: # rpm -qa | grep foreman dell-pem600-01.rhts.eng.bos.redhat.com-foreman-proxy-client-1.0-1.noarch foreman-release-1.11.0-0.develop.201511111740gitb2a959e.el7.noarch foreman-ovirt-1.11.0-0.develop.201511111740gitb2a959e.el7.noarch foreman-libvirt-1.11.0-0.develop.201511111740gitb2a959e.el7.noarch foreman-postgresql-1.11.0-0.develop.201511111740gitb2a959e.el7.noarch foreman-selinux-1.11.0-0.develop.201510071426git6234447.el7.noarch tfm-rubygem-foreman_hooks-0.3.9-1.el7.noarch tfm-rubygem-hammer_cli_foreman_tasks-0.0.8-1.el7.noarch tfm-rubygem-foreman_gutterball-0.0.1-3.el7.noarch dell-pem600-01.rhts.eng.bos.redhat.com-foreman-client-1.0-1.noarch dell-pem600-01.rhts.eng.bos.redhat.com-foreman-proxy-1.0-2.noarch tfm-rubygem-foreman_discovery-4.1.2-1.fm1_11.el7.noarch foreman-1.11.0-0.develop.201511111740gitb2a959e.el7.noarch tfm-rubygem-foreman_docker-1.4.1-2.fm1_10.el7.noarch tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3-3.el7.noarch foreman-debug-1.11.0-0.develop.201511111740gitb2a959e.el7.noarch foreman-proxy-1.11.0-0.develop.201511111339git7cbe47a.el7.noarch foreman-compute-1.11.0-0.develop.201511111740gitb2a959e.el7.noarch tfm-rubygem-hammer_cli_foreman_docker-0.0.3-4.el7.noarch tfm-rubygem-foreman_bootdisk-6.0.0-2.fm1_10.el7.noarch tfm-rubygem-hammer_cli_foreman-0.4.0-1.201511111650gitdda13df.el7.noarch foreman-gce-1.11.0-0.develop.201511111740gitb2a959e.el7.noarch foreman-release-scl-1-1.el7.x86_64 foreman-vmware-1.11.0-0.develop.201511111740gitb2a959e.el7.noarch tfm-rubygem-foreman-tasks-0.7.6-1.fm1_10.el7.noarch steps: 1. Override the default value of a smart class parameter. 2. Select the key type as array/string. 3. Give new default value as [1]/1. (Just an example, anything can be provided) 4. In Optional Input Validator, Select validator type as list. 5. In Validator Rule, give some list of values in which the new default value should be present. In my case its [1,2]. 6. Try to submit this change. It allows to submit the change and validation passes as obvious in above case.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1500