Actions
Bug #27431
openhammer upload-content does not validate content type of a package while uploading a package
Status:
New
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
-
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.
Updated by Justin Sherrill over 5 years ago
- Category set to Repositories
- Target version set to Katello Backlog
- Triaged changed from No to Yes
Updated by Vijay Singh over 5 years ago
- Related to Tracker #27539: [Tracker] SRPM Issues added
Actions