Bug 1148395
Summary: | Hammer : Uploading content to repository allows to upload text file whereas it should allow only rpms to upload | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Tazim Kolhar <tkolhar> |
Component: | Hammer | Assignee: | David Davis <daviddavis> |
Status: | CLOSED ERRATA | QA Contact: | Sanket Jagtap <sjagtap> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2.6 | CC: | bbuckingham, bmbouter, brubisch, cwelton, daviddavis, dkliban, ggainey, ipanova, kbidarka, ktordeur, mhrivnak, pcreech, rchan, sghai, sjagtap, sreber, ttereshc |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
URL: | https://pulp.plan.io/issues/1747 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-02-21 16:49:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tazim Kolhar
2014-10-01 11:41:01 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release. Excpected result it should not allow to upload normal text files I think this applies to the UI as well. Created a pulp bug to deal with the problem: https://pulp.plan.io/issues/1747 Going to look into adding a workaround in Katello as I am not sure this fix will be added to pulp 2.8. It sounds like this might be a regression so maybe this'll be fixed in 2.8? Confirmed as fixed: $ hammer repository upload-content --id 2 --path test.txt Failed to upload file 'test.txt' to repository. Please check the file and try again. The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug. The Pulp upstream bug priority is at High. Updating the external tracker on this bug. The pulp change fixes the issue. However, we need two upstream changes to deal with this fix in pulp: foreman-tasks https://github.com/theforeman/foreman-tasks/pull/199 katello https://github.com/Katello/katello/pull/6298 Build: Satellite 6.3 Snap 6 Verified hammer -u admin -p changeme --output csv repository upload-content --path='/tmp/apple' --product-id='23' --name='JWlmECsxUDxBBFn' --organization='Rewuql' Message Failed to upload file 'apple' to repository. Please check the file and try again. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0336 |