Project

General

Profile

Bug #27431

hammer upload-content does not validate content type of a package while uploading a package

Added by Vijay Singh over 1 year ago. Updated about 1 year ago.

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

Description

hammer upload-content does not validate content type of a package while uploading a package. The default behavior if not specified is rpm.

Steps:

[vagrant@srpm-centos7-hammer-devel ~]$ hammer repository upload-content --id 1 --path /home/vagrant/pkgs/i3lock-2.8-1.el7.src.rpm
Successfully uploaded file 'i3lock-2.8-1.el7.src.rpm'                  <==== Package type SRPM shows as 'Successfully uploaded'

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

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

Expected behavior:

 Should through an error, if package is other than RPM.

Related issues

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

History

#1 Updated by Justin Sherrill about 1 year ago

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

#2 Updated by Vijay Singh about 1 year ago

Also available in: Atom PDF