Comment 5 for bug 1206396

Revision history for this message
Dolph Mathews (dolph) wrote :

UTR against keystone directly (sounds like a bug between horizon and keystoneclient?). Attempting to create a role with a single space as the name behaves as expected (the name is stored correctly in the sql driver, not as a null value).

POST http://localhost:35357/v3/roles
{"role": {"name": " "}}

{
  "role": {
    "id": "9cf9fc40486947539a10400e638b9e65",
    "links": {
      "self": "http://localhost:5000/v3/roles/9cf9fc40486947539a10400e638b9e65"
    },
    "name": " "
  }
}

GET http://localhost:35357/v3/roles

{
  "roles": [
    {
      "id": "9cf9fc40486947539a10400e638b9e65",
      "links": {
        "self": "http://localhost:5000/v3/roles/9cf9fc40486947539a10400e638b9e65"
      },
      "name": " "
    }
  ],
  "links": {
    "self": "http://localhost:5000/v3/roles",
    "next": null,
    "previous": null
  }
}