Red Hat Bugzilla – Bug 803441
Users cannot upload manifests to orgs with spaces in the name.
Last modified: 2015-01-04 16:59:15 EST
Description of problem:
h/t to bcrochet for this one.
If user creates an org with spaces in the name and attempts to upload a manifest, the action fails. Furthermore, said manifest can no longer be used -- even with "Force" -- in other new orgs w/o spaces due to this manifest already being in use by another (broken) org.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create an org, "My Org" (note space in the name)
2. Attempt to upload manifest, note error.
3. Create an org, "MyNewOrg"
4. Attempt to upload same manifest to second org. Note error.
When attempting to upload to "My Org":
Subscription manifest upload for provider 'Red Hat' failed.
Reason: "Traceback (most recent call last):\n File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py\", line 48, in report_error\n return method(self, *args, **kwargs)\n File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py\", line 127, in _auth_decorator\n value = method(self, *args, **kwargs)\n File \"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/repositories.py\", line 333, in POST\n publish=repo_data.get('publish', None),)\n File \"/usr/lib/python2.6/site-packages/pulp/server/api/repo.py\", line 229, in create\n self.check_for_whitespace(relative_path, \"relative_path\")\n File \"/usr/lib/python2.6/site-packages/pulp/server/api/base.py\", line 68, in check_for_whitespace\n raise PulpValidationError(_(\"Given %s:[%s] is invalid. %s should not contain whitespace characters.\" % (entity_name, id, entity_name)))\nPulpValidationError: Given relative_path:[My Org/Library/content/beta/rhel/server/5/5.7/i386/source/iso] is invalid. relative_path should not contain whitespace characters.\n"
If you are uploading an older manifest, you can use the Force checkbox to overwrite existing data.
It's not readily apparent in bugzilla, but note the line break above for
A second error occurs when trying to upload to MyNewOrg, but I've not included it here as I think it's a standard error.
User can upload manifest
Only slightly lessening the severity of this bug is the fact that there's a workaround: You can apparently delete your busted "My Org" and create a 'valid' one, whereupon the manifest appears to work.
on my katello server (Katello Version: 0.2.13-1.git.3.bd54a84.el6) I see the problem where you cannot upload a manifest on an org with a space in the name.
However, the same manifest can still be uploaded to other orgs (with no spaces in the name).
Appears to be 100% reproducible.
added support for spaces in system tests --rand-prefix command in commit adbd8c8bde321957560a0bdbfc951f969a9e2ad5
Allows the automation of detection of problems when spaces are in names of
organizations, products, repos etc.
scripts/system-test/cli_system-test "all" --rand-prefix "a a"
Besides manifest import, also org subscriptions are failing with space in the org name.
Fixed in commit 62d8da25ea7bc40386413c05400b45ad2a43a3cf, including also org subscriptions problem
Having an org with "space" in its name - was able to import manifest there.
and after that - syncing process also goes fine. so moving to verified.
getting rid of 6.0.0 version since that doesn't exist