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 1282657 - Typo in katello/repository.rb
Summary: Typo in katello/repository.rb
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: Bryan Kearney
QA Contact: Og Maciel
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-17 01:19 UTC by David O'Brien
Modified: 2019-09-26 15:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 09:20:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 12591 0 None None None 2016-04-22 15:00:23 UTC
Red Hat Product Errata RHBA-2016:1501 0 normal SHIPPED_LIVE Red Hat Satellite 6.2 Capsule and Server 2016-07-27 12:28:58 UTC

Description David O'Brien 2015-11-17 01:19:39 UTC
Description of problem:

$ find . -name *.rb|xargs grep -s 'to deleting it'
./app/models/katello/repository.rb: "Please delete all Content View versions containing this repository before attempting to deleting it."))

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

Master repo

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:

"...before attempting to deleting it"

Expected results:

"...before attempting to delete it"

Additional info:

Comment 1 Bryan Kearney 2015-11-24 16:27:15 UTC
Created redmine issue http://projects.theforeman.org/issues/12591 from this bug

Comment 2 Bryan Kearney 2015-11-24 17:05:10 UTC
Upstream bug assigned to bkearney

Comment 3 Bryan Kearney 2015-11-24 19:04:32 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/12591 has been closed
-------------
Bryan Kearney
Applied in changeset commit:katello|e0d72a956c45640f20b180416d362e9bbd7a8412.

Comment 6 Og Maciel 2016-03-24 20:18:30 UTC
Looked at file /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.9/app/models/katello/repository.rb in the local filesystem and it agrees with the change applied by this commit: https://github.com/Katello/katello/pull/5627/files


         errors.add(:base, _("Repository cannot be deleted since it has already been included in a published Content View. " \
                              "Please delete all Content View versions containing this repository before attempting to delete it."))

Comment 7 Og Maciel 2016-03-24 20:25:18 UTC
Also tested it via hammer by creating a new custom product, yum-based repo (synced) and add the repo to a content view which was then published. Attempting to delete the repo shows the error message with the correct text:

hammer> product list --organization-id 3
---|----------|-------------|--------------|--------------|------------------
ID | NAME     | DESCRIPTION | ORGANIZATION | REPOSITORIES | SYNC STATE
---|----------|-------------|--------------|--------------|------------------
16 | Zoo Repo |             | IBM          | 1            | Syncing Complete.
---|----------|-------------|--------------|--------------|------------------
hammer> repository list --organization-id 3
---|-----------------|----------|--------------|---------------------------------------------
ID | NAME            | PRODUCT  | CONTENT TYPE | URL
---|-----------------|----------|--------------|---------------------------------------------
38 | African Animals | Zoo Repo | yum          | https://omaciel.fedorapeople.org/fakerepo01/
---|-----------------|----------|--------------|---------------------------------------------
hammer> repository delete --id 38 --organization-id 3
Could not delete the Repository:
  Repository cannot be deleted since it has already been included in a published Content View. Please delete all Content View versions containing this repository before attempting to delete it.

Verified on Satellite 6.2.0 SNAP 5.1

Comment 9 David O'Brien 2016-04-18 00:48:55 UTC
Reset docs contact <> daobrien

Comment 11 errata-xmlrpc 2016-07-27 09:20:23 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-2016:1501


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