Bug 1332406 - when "Use Puppet default" is checked in "smart class parameter", the form should not validate the content of "Default value".
Summary: when "Use Puppet default" is checked in "smart class parameter", the form sho...
Keywords:
Status: CLOSED DUPLICATE of bug 1229404
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.1.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-03 06:55 UTC by Ranjan Kumar
Modified: 2019-11-14 07:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-02 17:13:37 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Ranjan Kumar 2016-05-03 06:55:14 UTC
Description of problem:
Go to Configure -> "Puppet Classes" -> "Select any puppet class" -> Click on the tab "Smart class parameter" and click on any listed parameter.

When we submit the form with below settings: 

Parameter Type = Hash
Default value = any string value 
Use Puppet Default = checked

then satellite webui throws error: "is invalid - Value to use when there is no match" and here the text box is kept in read only mode. 
But it should not validate the "default value" field because "Use Puppet default" field is checked. it should store the previous original content of "Default value" into the database. 

Version-Release number of selected component (if applicable):6.1.8


How reproducible:always

Actual results: When "Use Puppet default" is checked the current content of "Default value" should be ignored.


Expected results: Form should save the result, even wrong value is used in "default value" incase of "Use puppet default" is checked


Additional info:


Note You need to log in before you can comment on or make changes to this bug.