Project

General

Profile

Bug #27433

RPM Delete does not have any validation as it deletes from the same repo multiple time

Added by Vijay Singh 10 months ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

RPM Delete does not have any validation as it deletes from the same repo multiple time

Steps:

[vagrant@centos7-katello-devel ~]$ hammer -d repository upload-content --id 8 --organization-id 1 --path /home/vagrant/GtkAda-gl-2.24.2-8.el7.x86_64.rpm
[vagrant@centos7-katello-devel ~]$ hammer repository remove-content --id 8 --ids 40 --content-type rpm
Repository content removed.
[vagrant@centos7-katello-devel ~]$ hammer repository remove-content --id 8 --ids 40 --content-type rpm
Repository content removed.

Showing in the database still:


40 | ec404c4b-14e9-4f4f-8fcd-6bb5b0241dbd | 2019-07-23 16:20:10.784726 | 2019-07-23 16:20:10.790655 | GtkAda-gl     | 2.24.2   | 8.el7    | x86_64 | 0     | GtkAda-gl-2.24.2-8.el7.x86_64.rpm       | GtkAda-2.24.2-8.el7.src.rpm          | 0491e25142e8ce0
12e36889e87353c3a3658f46710bfde9107aa317c11497acb | 01-2.02-24.01-2   | 01-8.$el.01-7    | GtkAda binding to OpenGL      | GtkAda-gl-2.24.2-8.el7.x86_64       | f


Related issues

Related to Katello - Tracker #27539: [Tracker] SRPM IssuesNew

History

#1 Updated by Justin Sherrill 10 months ago

  • Triaged changed from No to Yes
  • Difficulty set to easy
  • Target version set to Katello Backlog
  • Category set to Repositories

#2 Updated by Vijay Singh 10 months ago

Also available in: Atom PDF