Issue #717
closedPulp-admin fails to publish rpm repo with serve-http and serve-https set false
Description
Log output
Description of problem:
If an rpm repository has both serve-http and serve-https set to false, and if at least one rpm in its contents, publish fails. Pulp-admin displays the following error:
Task Failed
coercing to Unicode: need string or buffer, NoneType found
I am attaching a text file with the contents of ~/.pulp/server_calls.log.
The publish succeeds if there is no content in the repo.
Version-Release number of selected component (if applicable):
pulp-admin-client-2.5.3-1.el6.noarch
How reproducible:
100%
Steps to Reproduce:
1. pulp-admin rpm repo create --repo-id foo --serve-http false --serve-https false
2. Upload or copy an RPM into this repo
3. pulp-admin rpm repo publish run --repo-id foo
Actual results:
Task Failed
coercing to Unicode: need string or buffer, NoneType found
Expected results:
Publish should succeed and remove any previously published data.
Additional info:
Extra thanks to bcourt on IRC who helped track this down and asked that I open this bug
+ This bug was cloned from Bugzilla Bug #1196390 +
Files
Adding validation that http and https cannot be set both to false.
With settings both set to false no publish will occur.
closes #717 https://pulp.plan.io/issues/717