| Summary: | [RFE] Can't create repos or any other pulp artifact with an i18n ID | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Partha Aji <paji> |
| Component: | user-experience | Assignee: | Sayli Karmarkar <skarmark> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | dgao |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | cperry, pthomas |
| Target Milestone: | --- | Keywords: | FutureFeature, Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-05-25 14:14:39 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 747827, 782239, 782959 | ||
Fixed. Entities like repos, filters, consumergroups, users now support i18n ids/logins. build: 0.263 moving to verified [root@pulp-v1-1-server ~]# rpm -q pulp pulp-1.1.4-1.fc16.noarch All the bugs that are associated with i18n are in verified now Pulp v1.1 Release |
Pulp has a restriction on ids with i18n characters in them. So for example the following script will not create a repository with id ರೆಪೊಸಿಟರಿ.. export AUTH=`python -c "import base64; print base64.encodestring(\"admin:admin\")[:-1]"` curl -k -H "Authorization: Basic $AUTH" -u admin:admin -H "Accept: application/json" -H "Content-Type: application/json" -d '{"id": "ರೆಪೊಸಿಟರಿ", "name":"goo", "feed":"http://redhat.com","arch":"noarch"}' -X POST https://localhost/pulp/api/repositories/ Expected results: Successful creation of the repo Actual results: Note the message in the end of the stack trace below "Given ID is invalid. ID may contain numbers(0-9), upper and lower case letters(A-Z, a-z), hyphens(-), underscore(_) and periods(.)\") "Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py\", line 48, in report_error\n return method(self, *args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py\", line 127, in _auth_decorator\n value = method(self, *args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/repositories.py\", line 253, in POST\n content_types=repo_data.get('content_types', 'yum'))\n File \"/usr/lib/python2.7/site-packages/pulp/server/api/repo.py\", line 224, in create\n self.check_id(id)\n File \"/usr/lib/python2.7/site-packages/pulp/server/api/base.py\", line 67, in check_id\n raise PulpException(\"Given ID is invalid. ID may contain numbers(0-9), upper and lower case letters(A-Z, a-z), hyphens(-), underscore(_) and periods(.)\")\nPulpException: Given ID is invalid. ID may contain numbers(0-9), upper and lower case letters(A-Z, a-z), hyphens(-), underscore(_) and periods(.)\n" Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Expected results: