Red Hat Bugzilla – Bug 1192573
Content View Remove fails with error 'undefined method `locations=' for nil:NilClass'
Last modified: 2017-02-23 15:30:57 EST
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!
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.
Connecting redmine issue http://projects.theforeman.org/issues/9317 from this bug
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.
Upstream bug assigned to jsherril@redhat.com
Moving to POST since upstream bug http://projects.theforeman.org/issues/9317 has been closed ------------- Justin Sherrill Applied in changeset commit:katello|8ba142df062c580361bfec72aafecdcd55b57f50.
This bug is slated to be released with Satellite 6.1.
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