Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1646409

Summary: [Container Admin] Changing Registry Name Pattern in Library LE displays error; is saved anyway
Product: Red Hat Satellite Reporter: Mirek Długosz <mzalewsk>
Component: Lifecycle EnvironmentsAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Mirek Długosz <mzalewsk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: bkearney, egolov, jsherril, pcreech
Target Milestone: 6.5.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.10.0-0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-14 12:38:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mirek Długosz 2018-11-05 14:20:21 UTC
Trying to set Registry Name Pattern definition in default Lifecycle environment ("Library") results in following error message:
"An error occurred saving the Environment: Value (NilClass) '' is not any of: ForemanTasks::Concerns::ActionSubject."

Value is saved anyway.


Version:
Sat 6.5 snap 2
katello-3.9.0-0.11.rc2.el7sat.noarch
satellite-6.5.0-3.beta.el7sat.noarch
foreman-1.20.0-0.17.RC2.el7sat.noarch


Steps to reproduce:
1. Content -> Lifecycle Environments -> Library
2. Click "Registry Name Pattern" field
3. Put any valid data, e.g. '<%= organization.label %>/<%= repository.docker_upstream_name %>' (copied from examples below field)
4. Save


Expected results:
Value is saved without error


Actual results:
Error message "An error occurred saving the Environment: Value (NilClass) '' is not any of: ForemanTasks::Concerns::ActionSubject." is displayed. Value is saved anyway, which can be verified by opening any other tab and going back to "Details".

Comment 2 Justin Sherrill 2018-11-07 14:14:56 UTC
 Katello::Repository.safe_render_container_name( Katello::Repository.all[1],  '')  is returning empty string (''), when it should be defaulting to the default container repo name

Comment 3 Satellite Program 2018-11-14 15:10:01 UTC
Upstream bug assigned to jsherril

Comment 4 Satellite Program 2018-11-14 15:10:03 UTC
Upstream bug assigned to jsherril

Comment 5 Satellite Program 2018-11-14 21:09:57 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/25410 has been resolved.

Comment 8 Mirek Długosz 2018-12-03 12:52:42 UTC
Following path was tested:
- set pattern for Library to non-empty
- set pattern for Library back to empty
- create content view with docker repository and publish it
- set pattern for Library to non-empty
- set pattern for Library back to empty

No issues encountered. All changes were applied without errors and resulted in expected changes in the system.


Tested on:
Satellite 6.5 snap 6
pulp-server-2.18.0-0.1.rc.el7sat.noarch
satellite-6.5.0-5.beta.el7sat.noarch
foreman-1.20.0.2-1.el7sat.noarch
katello-3.10.0-0.6.rc1.el7sat.noarch

Comment 11 errata-xmlrpc 2019-05-14 12:38:40 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, 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-2019:1222