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 1191662 - Repository delete results in failed task
Summary: Repository delete results in failed task
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1191705
TreeView+ depends on / blocked
 
Reported: 2015-02-11 16:58 UTC by Justin Sherrill
Modified: 2019-09-26 13:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1191705 (view as bug list)
Environment:
Last Closed: 2015-02-20 18:32:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 8598 0 None None None 2016-04-22 15:51:04 UTC
Red Hat Product Errata RHBA-2015:0247 0 normal SHIPPED_LIVE Red Hat Satellite 6 server bug fix update 2015-02-20 23:30:44 UTC

Description Justin Sherrill 2015-02-11 16:58:10 UTC
Deleting a Repository results in a failed task:

<pre>
NoMethodError

undefined method `can?' for nil:NilClass

---
- /home/vagrant/katello/app/models/katello/authorization.rb:22:in `authorized?'
- /home/vagrant/katello/app/models/katello/authorization/product.rb:30:in `editable?'
- /home/vagrant/katello/app/models/katello/authorization/repository.rb:25:in `deletable?'
- /home/vagrant/katello/app/models/katello/repository.rb:474:in `assert_deletable'
- /home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:407:in
  `_run__3721688161599193244__destroy__1563448023527611882__callbacks'
- /home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:405:in
  `__run_callback'
- /home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:385:in
  `_run_destroy_callbacks'
- /home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:81:in
  `run_callbacks'
- /home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.21/lib/active_record/callbacks.rb:254:in
  `destroy'
- /home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.21/lib/active_record/transactio
</pre>

Comment 1 Justin Sherrill 2015-02-11 16:58:11 UTC
Created from redmine issue http://projects.theforeman.org/issues/8598

Comment 2 Bryan Kearney 2015-02-11 17:05:24 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/8598 has been closed
-------------
Justin Sherrill
Applied in changeset commit:katello|0b489b5175df140f45eb9812d92d5a53b6e811ca.

Comment 6 jaudet 2015-02-11 22:40:07 UTC
Verified against two Satellite 6.0.8 applications, one running on RHEL 6.6 and the other on RHEL 7.0. They have package ruby193-rubygem-katello-1.5.0-95.el{6,7}sat.noarch installed, respectively. I am able to create a repository and delete it successfully. Fetching a deleted repository returns a response containing this message:

    u'{"displayMessage":"404 Resource Not Found","errors":["404 Resource Not Found"]}'

Comment 8 errata-xmlrpc 2015-02-20 18:32:26 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/RHBA-2015:0247


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