Project

General

Profile

Actions

Bug #27431

open

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

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

Status:
New
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
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 1 (1 open0 closed)

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

Actions
Actions #1

Updated by Justin Sherrill over 4 years ago

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

Updated by Vijay Singh over 4 years ago

Actions

Also available in: Atom PDF