Bug 1016847 - package upload doesn't handle wildcards in filepath as one might expect
package upload doesn't handle wildcards in filepath as one might expect
Status: CLOSED WONTFIX
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Hammer (Show other bugs)
Nightly
Unspecified Unspecified
unspecified Severity medium (vote)
: Unspecified
: --
Assigned To: satellite6-bugs
Katello QA List
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-08 15:47 EDT by Corey Welton
Modified: 2017-02-09 14:53 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-02-09 14:53:15 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Corey Welton 2013-10-08 15:47:26 EDT
Description of problem:
Using a wildcard in the filepath parameter for a package upload via the CLI only seems to grab the first and only rpm etc. available.

Version-Release number of selected component (if applicable):
Satellite-6.0.2-RHEL-6-20131007.0


How reproducible:


Steps to Reproduce:
1. place more than one rpm file in localdir
2. create provider/product/repo on katello
3. attempt to upload rpms via CLI via the following command:

repo content_upload --repo Foobar_repo --product Foobar_product --org ACME_Corporation --filepath ./*.rpm 

Actual results:
[root@cloud-qe-21 ~]# ls *.rpm
packagea.rpm  packageb.rpm
[root@cloud-qe-21 ~]# kk repo content_upload --repo Foobar_repo --product Foobar_product --org ACME_Corporation --filepath ./*.rpm   --content_type yum
Successfully uploaded 'packagea.rpm' into repository

Expected results:
[root@cloud-qe-21 ~]# ls *.rpm
packagea.rpm  packageb.rpm
[root@cloud-qe-21 ~]# kk repo content_upload --repo Foobar_repo --product Foobar_product --org ACME_Corporation --filepath ./*.rpm   --content_type yum
Successfully uploaded 'packagea.rpm' into repository
Successfully uploaded 'packageb.rpm' into repository


Additional info:
Comment 6 Bryan Kearney 2017-02-09 14:53:15 EST
I do no see us addressing this in the next few releases. I am therefore closing this out. If you believe this was done in error, please feel free to re-open with additional information.

Note You need to log in before you can comment on or make changes to this bug.