Project

General

Profile

Actions

Bug #27432

open

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

Added by Vijay Singh over 5 years ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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 1 (1 open0 closed)

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

Actions
Actions

Also available in: Atom PDF