Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2256452 - Adding a new boolean-type parameter to a host causes an error
Summary: Adding a new boolean-type parameter to a host causes an error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning
Version: 6.12.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 6.15.0
Assignee: Girija Soni
QA Contact: sganar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-02 12:21 UTC by Girija Soni
Modified: 2024-04-23 17:16 UTC (History)
4 users (show)

Fixed In Version: foreman-3.9.1.3-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-23 17:16:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 37012 0 Normal New Adding a new boolean-type parameter to a host causes an error 2024-01-02 12:21:37 UTC
Red Hat Issue Tracker SAT-22189 0 None None None 2024-01-02 12:22:49 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:16:50 UTC

Description Girija Soni 2024-01-02 12:21:35 UTC
Steps to reproduce:

1. On the Host details page, navigate to the Parameters tab and click on 'Add Parameter.'
2. Enter the parameter name and set the type as boolean.
3. Retain the default value and click on 'Save.'

This results in the following error
"TypeError: Cannot read properties of null (reading 'toString')"

Comment 1 Girija Soni 2024-01-02 12:21:46 UTC
Created from redmine issue https://projects.theforeman.org/issues/37012

Comment 2 Girija Soni 2024-01-02 12:21:48 UTC
Upstream bug assigned to None

Comment 4 sganar 2024-01-24 08:05:25 UTC
Verified.

Tested on Satellite 6.15.0 Snap 7.0

Steps followed: 
1. On the Host details page, navigate to the Parameters tab and click on 'Add Parameter.'
2. Enter the parameter name and set the type as boolean.
3. Keep the default value empty and click on 'Save'

Observation:
No error is observed when keeping the host parameter value blank.

Comment 7 errata-xmlrpc 2024-04-23 17:16:49 UTC
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 (Important: Satellite 6.15.0 release), 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-2024:2010


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