Description of problem: 'Required' functionality is not working for smart class parameter type 'boolean'. Version-Release number of selected component (if applicable): Sat 6.2 snap 19.1 GA How reproducible: Always Steps to Reproduce: 1. Set default value for parameter type 'boolean' to true. 2. Select required checkbox to validate that value shouldnt be blank. 3. Create a matcher with empty/blank value. 4. Attempt to submit it. Actual results: The parameter is submitted by setting matcher value to 'false' automatically. Expected results: 1. The parameter should not be submitted and should throw an error 'Value can't be blank'. 2. Autoset of boolean value to false for matcher should not happen.
This is unrelated to the required flag. The flag only affects hosts but empty values for matchers in smart class parameters are not allowed.
Created redmine issue http://projects.theforeman.org/issues/17870 from this bug
Upstream bug assigned to orabin
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17870 has been resolved.
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/RHSA-2018:0336