Project

General

Profile

Bug #27432

RPM uploads does not have any validation as it uploads to same repo multiple time

Added by Vijay Singh almost 3 years ago. Updated almost 3 years ago.

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

Description

RPM uploads does not have any validation as it uploads to same repo multiple time

Steps:

[vagrant@srpm-centos7-hammer-devel ~]$ hammer repository info --id 1
ID:                 1
Name:               repo1
Label:              repo1
Organization:       Default Organization
Red Hat Repository: no
Content Type:       yum
Mirror on Sync:     yes
URL:                
Publish Via HTTP:   yes
Published At:       http://srpm-centos7-katello-devel.vijsingh.example.com/pulp/repos/Default_Organization/Library/custom/TProd1/repo1/
Relative Path:      Default_Organization/Library/custom/TProd1/repo1
Download Policy:    on_demand
Product:            
    ID:   1
    Name: TProd1
GPG Key:            

Sync:               
    Status: Not Synced
Created:            2019/07/18 15:37:17
Updated:            2019/07/18 15:37:27
Content Counts:     
    Packages:       0
    Source RPMS:    0
    Package Groups: 0
    Errata:         0
    Module Streams: 0

[vagrant@srpm-centos7-hammer-devel ~]$

[vagrant@srpm-centos7-hammer-devel ~]$ hammer repository upload-content --id 1 --path /home/vagrant/pkgs/Agda-2.3.2.2-5.el7.x86_64.rpm 
Successfully uploaded file 'Agda-2.3.2.2-5.el7.x86_64.rpm' <==========

[vagrant@srpm-centos7-hammer-devel ~]$ hammer repository info --id 1 --organization-id 1 --product-id 1 --fields 'Content Counts'
Content Counts:
Packages: 1       <==========
Source RPMS: 0
Package Groups: 0
Errata: 0
Module Streams: 0

[vagrant@srpm-centos7-hammer-devel ~]$ hammer repository upload-content --id 1 --path /home/vagrant/pkgs/Agda-2.3.2.2-5.el7.x86_64.rpm --content-type=srpm
Successfully uploaded file 'Agda-2.3.2.2-5.el7.x86_64.rpm' <==========

[vagrant@srpm-centos7-hammer-devel ~]$ hammer repository info --id 1 --organization-id 1 --product-id 1 --fields 'Content Counts'
Content Counts:
Packages: 1        <==========
Source RPMS: 0
Package Groups: 0
Errata: 0
Module Streams: 0


Related issues

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

History

#1 Updated by Justin Sherrill almost 3 years ago

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

#2 Updated by Vijay Singh almost 3 years ago

Also available in: Atom PDF