Comment 1 for bug 1666818

Revision history for this message
zhaozhilong (zhaozhilong) wrote :

Find a solution.
My keystone use ldap, the user's UUID is not 32-bit.
So gnocchi recognized the illegal parameters.

----------------------------------------------------
    user_id = headers.get("X-User-Id")
    if user_id:
        try:
            user_id = six.text_type(uuid.UUID(user_id))
        except Exception:
            abort(400, "Malformed X-User-Id")

---------------------------------------------------