Project

General

Profile

Actions

Bug #27372

closed

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

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

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
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
Actions #1

Updated by Vijay Singh almost 5 years ago

  • Found in Releases 1.23.0 added
Actions #2

Updated by Vijay Singh almost 5 years ago

On this issue: Unable to remove "Fixed in Releases:1.23.0" as accidental selected. please remove it.

Actions #3

Updated by Amit Upadhye almost 5 years ago

  • Fixed in Releases deleted (1.23.0)
Actions #4

Updated by Vijay Singh almost 5 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF