Public bug reported:

Data in the extra is stored in the form of key=value.

If the key value on the multibyte-character is created by using such as 
projects API and users API, projects and users that have the created data
will not be able to refer in the portal of the Horizon and CLI.

Therefore, to limit the input of the multi-byte character.

Example:

user@ubuntu1404-7065:~$ curl -s \
>  -H "X-Auth-Token: 6d6fe7eab11d45968c4ac1f8e4b559c5" \
>  -H "Content-Type: application/json" \
>  -d '{
>     "project": {
>         "name": "multibyte-test",
>         "テスト" : "test"
>     }
> }
> ' \
>  http://localhost:5000/v3/projects | python -mjson.tool

{
    "project": {
        "description": "",
        "domain_id": "default",
        "enabled": true,
        "id": "d20df48e0f2343cf8c09dc9dbbc69f25",
        "is_domain": false,
        "links": {
            "self": 
"http://localhost:5000/v3/projects/d20df48e0f2343cf8c09dc9dbbc69f25";
        },
        "name": "multibyte-test",
        "parent_id": null,
        "\u30c6\u30b9\u30c8": "test"
    }
}
user@ubuntu1404-7065:~$ openstack
(openstack) project list
'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
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/1551513

Title:
  Multi-byte character input limit to the key value of the extra

Status in OpenStack Identity (keystone):
  New

Bug description:
  Data in the extra is stored in the form of key=value.

  If the key value on the multibyte-character is created by using such as 
  projects API and users API, projects and users that have the created data
  will not be able to refer in the portal of the Horizon and CLI.

  Therefore, to limit the input of the multi-byte character.

  Example:

  user@ubuntu1404-7065:~$ curl -s \
  >  -H "X-Auth-Token: 6d6fe7eab11d45968c4ac1f8e4b559c5" \
  >  -H "Content-Type: application/json" \
  >  -d '{
  >     "project": {
  >         "name": "multibyte-test",
  >         "テスト" : "test"
  >     }
  > }
  > ' \
  >  http://localhost:5000/v3/projects | python -mjson.tool

  {
      "project": {
          "description": "",
          "domain_id": "default",
          "enabled": true,
          "id": "d20df48e0f2343cf8c09dc9dbbc69f25",
          "is_domain": false,
          "links": {
              "self": 
"http://localhost:5000/v3/projects/d20df48e0f2343cf8c09dc9dbbc69f25";
          },
          "name": "multibyte-test",
          "parent_id": null,
          "\u30c6\u30b9\u30c8": "test"
      }
  }
  user@ubuntu1404-7065:~$ openstack
  (openstack) project list
  'ascii' codec can't encode characters in position 0-2: ordinal not in 
range(128)

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1551513/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to