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:
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