Public bug reported: V2 Api's for create endpoint, create user, create tenant and create role raises 500 Internal Server Error when 4 byte data is passed as input for name or region parameter through curl command.
Steps to reproduce: Case I: Region passed as 4 byte data in endpoint create api curl -g -i -X POST <url>/v2.0/endpoints -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: <token>" -d ' {"endpoint": { "adminurl": null, "service_id": "18df03e7ad1e436298d9f1708039e1c0", "region": "🚓", "internalurl": null, "publicurl": "<public_url>" } }' Case II: Name passed as 4 byte data in role create api curl -g -i -X POST <url>/v2.0/OS-KSADM/roles -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: <token>" -d ' {"role": { "name": "🚓" } }' Case III: Name passed as 4 byte data in user create api curl -g -i -X POST <url>/v2.0/users -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: <token>" -d '{ "user": { "email": null, "password": null, "enabled": true, "name": "🚓", "tenantId": null } }' Case IV: Name or description passed as 4 byte data in teanant create api curl -g -i -X POST <url>/v2.0/tenants -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: <token>" -d '{ "tenant": { "enabled": true, "name": "🚓", "description": "🚓" } }' Output: HTTP/1.1 500 Internal Server Error {"error": {"message": "An unexpected error prevented the server from fulfilling your request.", "code": 500, "title": "Internal Server Error"}} ** Affects: keystone Importance: Undecided Assignee: Srushti Gadadare (srushti-gadadare) Status: New ** Changed in: keystone Assignee: (unassigned) => Srushti Gadadare (srushti-gadadare) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1586031 Title: V2 API's with 4 byte data as input raises 500 Status in OpenStack Identity (keystone): New Bug description: V2 Api's for create endpoint, create user, create tenant and create role raises 500 Internal Server Error when 4 byte data is passed as input for name or region parameter through curl command. Steps to reproduce: Case I: Region passed as 4 byte data in endpoint create api curl -g -i -X POST <url>/v2.0/endpoints -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: <token>" -d ' {"endpoint": { "adminurl": null, "service_id": "18df03e7ad1e436298d9f1708039e1c0", "region": "🚓", "internalurl": null, "publicurl": "<public_url>" } }' Case II: Name passed as 4 byte data in role create api curl -g -i -X POST <url>/v2.0/OS-KSADM/roles -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: <token>" -d ' {"role": { "name": "🚓" } }' Case III: Name passed as 4 byte data in user create api curl -g -i -X POST <url>/v2.0/users -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: <token>" -d '{ "user": { "email": null, "password": null, "enabled": true, "name": "🚓", "tenantId": null } }' Case IV: Name or description passed as 4 byte data in teanant create api curl -g -i -X POST <url>/v2.0/tenants -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: <token>" -d '{ "tenant": { "enabled": true, "name": "🚓", "description": "🚓" } }' Output: HTTP/1.1 500 Internal Server Error {"error": {"message": "An unexpected error prevented the server from fulfilling your request.", "code": 500, "title": "Internal Server Error"}} To manage notifications about this bug go to: https://bugs.launchpad.net/keystone/+bug/1586031/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp