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 1934427 - cloning a role without supplying name leads to undefined method `id' for nil:NilClass
Summary: cloning a role without supplying name leads to undefined method `id' for nil:...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Users & Roles
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: 6.10.0
Assignee: Ondřej Ezr
QA Contact: Danny Synk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-03 08:49 UTC by Peter Ondrejka
Modified: 2021-11-16 14:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:10:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 32026 0 Normal New Saving invalid cloned role ends up with 500. 2021-03-06 00:40:42 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:10:35 UTC

Description Peter Ondrejka 2021-03-03 08:49:57 UTC
Description of problem:

Error message displayed when cloning a role without supplying name: 
Oops, we're sorry but something went wrong undefined method `id' for nil:NilClass

Version-Release number of selected component (if applicable):
Sat 6.9 snap 15

How reproducible:
always

Steps to Reproduce:
1. In Satellite UI: Administer > Roles
2. Pick a role, select Clone from the dropdown
3. Don't input any information in the form and click Submit

Actual results:
Red box with the aforementioned error

Expected results:
Information about the required field

Additional info:

Comment 1 Brad Buckingham 2021-03-04 15:14:12 UTC
Is this a regression from 6.8?

Comment 2 Ondřej Ezr 2021-03-06 00:40:41 UTC
Created redmine issue https://projects.theforeman.org/issues/32026 from this bug

Comment 3 Ondřej Ezr 2021-03-06 01:03:35 UTC
This was introduced in BZ#1488908 so it is in from 6.6.
It can be quite annoying, but probably not a show stopper. I filed a upstream PR, if we get it in fast, I'd suggest 6.9, if not I'd not push it.

Comment 4 Bryan Kearney 2021-03-06 04:06:21 UTC
Upstream bug assigned to oezr

Comment 5 Bryan Kearney 2021-03-06 04:06:23 UTC
Upstream bug assigned to oezr

Comment 6 Bryan Kearney 2021-03-08 16:06:29 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/32026 has been resolved.

Comment 8 Danny Synk 2021-06-01 18:00:21 UTC
Steps to Test:

1. Deploy Satellite 6.10, snap 2.
2. In the webUI, navigate to Administer > Roles.
3. Select the "Clone" option from the dropdown menu in the "Actions" column for any role.
4. When the "Create Role" page loads, click the "Submit" button without entering any information in the form.

Expected Results:
A descriptive error message is displayed.

Actual Results:
The required "Name" input field is outlined in red, and the message "can't be blank" is displayed in red text next to the input field.

Verified on Satellite 6.10, snap 2 (foreman-2.5.0-0.8.rc3.el7sat.noarch).

Comment 11 errata-xmlrpc 2021-11-16 14:10:21 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 (Moderate: Satellite 6.10 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-2021:4702


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