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 1192573 - Content View Remove fails with error 'undefined method `locations=' for nil:NilClass'
Summary: Content View Remove fails with error 'undefined method `locations=' for nil:N...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: Jan Hutař
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1193076
TreeView+ depends on / blocked
 
Reported: 2015-02-13 18:18 UTC by Justin Sherrill
Modified: 2017-02-23 20:30 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1193076 (view as bug list)
Environment:
Last Closed: 2015-08-12 05:25:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 9317 0 None None None 2016-04-22 16:32:54 UTC
Red Hat Product Errata RHSA-2015:1592 0 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 09:04:35 UTC

Description Justin Sherrill 2015-02-13 18:18:50 UTC
Description of problem:

Content View remove fails with error: NoMethodError: undefined method `locations=' for nil:NilClass

regression introduced by:  https://bugzilla.redhat.com/show_bug.cgi?id=1173613


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


How reproducible:
Always

Steps to Reproduce:
1.  Create a content view, add a repo to it, publish it
2.  Attempt to remove the newly published version from library

Actual results:
Fails 

Expected results:
Success!

Comment 1 RHEL Program Management 2015-02-13 18:23:09 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Justin Sherrill 2015-02-13 18:48:09 UTC
Connecting redmine issue http://projects.theforeman.org/issues/9317 from this bug

Comment 5 jaudet 2015-02-13 18:53:33 UTC
I can vouch for this bug. Here's a slightly more verbose verification procedure:

1. Create a repository. You can easily create a repository at Content > Red Hat Repositories if you've uploaded a manifest at Content > Red Hat Subscriptions.
2. Create a content view at Content > Content Views. Add at least one repository to this content view.
3. Publish this content view. This will automatically cause the content view to be promoted into the Library lifecycle environment.
4. Remove this content view from a lifecycle environment (probaby Library).

It's important that the content view be associated with at least one repository. If the content view is not associated with any repositories, the bug will not manifest itself.

Comment 6 Bryan Kearney 2015-02-13 19:05:30 UTC
Upstream bug assigned to jsherril

Comment 8 Justin Sherrill 2015-02-16 02:05:01 UTC
Connecting redmine issue http://projects.theforeman.org/issues/9317 from this bug

Comment 9 Bryan Kearney 2015-02-16 17:05:14 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/9317 has been closed
-------------
Justin Sherrill
Applied in changeset commit:katello|8ba142df062c580361bfec72aafecdcd55b57f50.

Comment 13 Bryan Kearney 2015-08-11 13:28:35 UTC
This bug is slated to be released with Satellite 6.1.

Comment 14 errata-xmlrpc 2015-08-12 05:25:43 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-2015:1592


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