Bug 783251

Summary: [RFE] Can't create repos or any other pulp artifact with an i18n ID
Product: [Retired] Pulp Reporter: Partha Aji <paji>
Component: user-experienceAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: dgao
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 747827, 782239, 782959    

Description Partha Aji 2012-01-19 18:51:35 UTC
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:

Comment 1 Sayli Karmarkar 2012-01-27 13:11:00 UTC
Fixed. Entities like repos, filters, consumergroups, users now support i18n ids/logins.

Comment 2 Jeff Ortel 2012-01-27 22:27:44 UTC
build: 0.263

Comment 3 Preethi Thomas 2012-04-25 13:35:45 UTC
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

Comment 4 Preethi Thomas 2012-05-25 14:14:39 UTC
Pulp v1.1 Release