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 913682

Summary: NoMethodError: undefined method `contents_readable?' for nil:NilClass, when trying to fetch list of errata via api's
Product: Red Hat Satellite Reporter: Kedar Bidarkar <kbidarka>
Component: APIAssignee: Ivan Necas <inecas>
Status: CLOSED WONTFIX QA Contact: Jitendra Yejare <jyejare>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: 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: 2014-03-18 17:37:49 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:
Attachments:
Description Flags
listing errata fails via api none

Description Kedar Bidarkar 2013-02-21 19:10:28 UTC
Created attachment 700767 [details]
listing errata fails via api

Description of problem:

[ERROR: 2013-02-22 00:22:28 #353] NoMethodError: undefined method `contents_readable?' for nil:NilClass
/usr/share/katello/app/controllers/api/errata_controller.rb:27:in `rules'
/usr/share/katello/lib/authorization_rules.rb:28:in `call'
/usr/share/katello/lib/authorization_rules.rb:28:in `authorize'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:463:in `_run__1172733944__process_action__1960531120__callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:221:in `_conditional_callback_around_3545'
/usr/share/katello/lib/util/threadsession.rb:79:in `thread_locals'



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


How reproducible:
When using api's to fetch, List of errata.

We are trying with the below format,

GET /api/repositories/:repository_id/errata

Steps to Reproduce:
1.
2.
3.
  
Actual results:
fails with the above error

Expected results:
should return list of errata

Additional info:

Comment 1 Kedar Bidarkar 2013-02-21 19:15:48 UTC
Face this issue with almost any version of katello, tried with katello-1.2 and also katello-1.3

Comment 3 Mike McCune 2013-08-16 17:52:23 UTC
getting rid of 6.0.0 version since that doesn't exist

Comment 4 Mike McCune 2014-03-18 17:37:49 UTC
This bug was closed because of a lack of activity.  If you feel this bug should be reconsidered for attention please feel free to re-open the bug with a comment stating why it should be reconsidered.