Actions
Bug #21623
closedhammer repository upload-content is successful even with incorrect product ID
Difficulty:
Triaged:
Bugzilla link:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1434871
Description of problem:
When using hammer to upload a new package, it tells it is successful even if the product ID and repository combination is invalid
Version-Release number of selected component (if applicable):
How reproducible: Always
Steps to Reproduce:- hammer repository upload-content --id 454 --product-id 54 --path CS_COLLECTD_CODE-2.1-1.x86_64.rpm
Successfully uploaded file 'CS_COLLECTD_CODE-2.1-1.x86_64.rpm'.
- hammer repository info --id 454 --product-id 54
ID: 454
Name: R_Operations_Yum
Label: R_Operations_Yum
Organization: org1
Red Hat Repository: no
Content Type: yum
URL:
Publish Via HTTP: no
Published At: https://usl10149341.am.hedani.net/pulp/repos/org1/ENG/CV_CSL3_1_0/custom/P_Operations/R_Operations_Yum/
Relative Path: org1/ENG/CV_CSL3_1_0/custom/P_Operations/R_Operations_Yum
Download Policy: immediate
Product:
ID: 40
Name: P_Operations
GPG Key:
Sync:
Status: Not Synced
Created: 2016/09/29 12:09:19
Updated: 2016/11/16 15:15:01
Content Counts:
Packages: 8
Package Groups: 0
Errata: 0
(NOTE product-id is 40 in this output)
Actual results: It says that the content is successfully uploaded
Expected results:
It should give a proper error message if product Id is incorrect
Additional info:
Actions