Bug 783251 - [RFE] Can't create repos or any other pulp artifact with an i18n ID
Summary: [RFE] Can't create repos or any other pulp artifact with an i18n ID
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Sayli Karmarkar
QA Contact: dgao
URL:
Whiteboard:
Depends On:
Blocks: 747827 782239 782959
TreeView+ depends on / blocked
 
Reported: 2012-01-19 18:51 UTC by Partha Aji
Modified: 2015-03-23 01:11 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-05-25 14:14:39 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.