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 790788

Summary: "Run errata" button for a system with 0 erratas to be applied: failure
Product: Red Hat Satellite Reporter: Garik Khachikyan <gkhachik>
Component: WebUIAssignee: Jason E. Rist <jrist>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.1CC: bkearney, cwelton, jsherril, mkoci, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-29 20:36:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
run errata - 0 erratas there none

Description Garik Khachikyan 2012-02-15 12:04:15 UTC
Created attachment 562200 [details]
run errata - 0 erratas there

Description of problem:
There is a red-alert "undefined method `errors' for #" when for a registered/subscribed system on the errata tab one tries to hit "Run" button.

attached is the screenshot with that.

so please either disable the button on empty errata list or handle it gracefully.

Version-Release number of selected component (if applicable):
katello-0.1.237-1.git.7.752d8de.el6.noarch
katello-cli-0.1.54-1.git.79.17c365f.el6.noarch
pulp-0.0.265-1.el6.noarch
candlepin-0.5.17-1.el6.noarch


How reproducible:
always on recent Katello

Steps to Reproduce:
1.repo sync famous Zoo 
2.get system subscribe to that repo
3.through UI refer to the "Errata" tab for that system.
4. assure that there is no errata for that system available. click "Run" button.
  
Actual results:
red-alert

Expected results:
no errors, system should gracefully respond to that "command" - either disable the button.

Additional info:

Comment 1 Corey Welton 2012-02-22 03:45:36 UTC
Dupe of bug #784356

Comment 2 Mike McCune 2012-02-23 22:32:40 UTC
*** Bug 784356 has been marked as a duplicate of this bug. ***

Comment 3 Mike McCune 2012-02-23 22:35:42 UTC
Closed #784356

Comment 4 Justin Sherrill 2012-02-29 20:36:57 UTC

*** This bug has been marked as a duplicate of bug 796360 ***

Comment 5 Mike McCune 2013-08-16 18:19:41 UTC
getting rid of 6.0.0 version since that doesn't exist