← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1784536] [NEW] issue token with project-scope get error: "object of type 'NoneType' has no len()"

 

Public bug reported:

/v3/auth/tokens POST method for "Password authentication with scoped
authorization".

When sets project-scoped with project ID key but the value is a domain id as following:
{
    "auth": {
        "identity": {
            "methods": [
                "password"
            ],
            "password": {
                "user": {
                    "id": "a83947b5fc594f3ca92f1f2f254f6459",
                    "password": "devstack"
                }
            }
        },
        "scope": {
            "project": {
                "id": "default"
            }
        }
    }
}

It returns:
{
    "error": {
        "message": "object of type 'NoneType' has no len()",
        "code": 400,
        "title": "Bad Request"
    }
}

This message is unreadable for users.

** 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/1784536

Title:
  issue token with project-scope get error: "object of type 'NoneType'
  has no len()"

Status in OpenStack Identity (keystone):
  New

Bug description:
  /v3/auth/tokens POST method for "Password authentication with scoped
  authorization".

  When sets project-scoped with project ID key but the value is a domain id as following:
  {
      "auth": {
          "identity": {
              "methods": [
                  "password"
              ],
              "password": {
                  "user": {
                      "id": "a83947b5fc594f3ca92f1f2f254f6459",
                      "password": "devstack"
                  }
              }
          },
          "scope": {
              "project": {
                  "id": "default"
              }
          }
      }
  }

  It returns:
  {
      "error": {
          "message": "object of type 'NoneType' has no len()",
          "code": 400,
          "title": "Bad Request"
      }
  }

  This message is unreadable for users.

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


Follow ups