Bug #28386
closedhammer settings content_default_http_proxy does not have validation for provided values
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1777730
Description of problem:
hammer setting content_default_http_proxy does not have validation for provided values
Version-Release number of selected component (if applicable):
@Satellite 6.7.0 snap 3,0
How reproducible:
Always
Steps to Reproduce:
1. Set settings as below:
[root@hp-dl180-04 ~]# hammer settings set --name content_default_http_proxy --value xyz
Setting [content_default_http_proxy] updated to [xyz].
[root@hp-dl180-04 ~]# hammer settings list |grep -i content_default_http_proxy
content_default_http_proxy | Default http proxy | xyz | Default HTTP Proxy for syncing content
[root@hp-dl180-04 ~]#
2. No check on UI for same setting , the value filed shows empty.
Administer => Settings => Content => 'Default HTTP Proxy'
Actual results:
Any value could pass with '--value'
Expected results:
It should only set the setting if provided value is correct (i.e. already created proxy name)
Additional info: