V2 API: enable a user doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Dave Chen |
Bug Description
Enable user
===========
PUT /v2.0/users/
The above API doesn't work, there are two issue here.
1. The API unnecessarily need a request body
url -g -i -X PUT http://
{"error": {"message": "set_user_enabled() takes exactly 4 arguments (3 given)", "code": 400, "title": "Bad Request"}}
2. If we pass a request body without 'enabled' property, it cannot enable the disabled user.
openstack user show acc163d0efa14fe
+------
| Field | Value |
+------
| default_project_id | e9b5b0575cad498
| domain_id | default |
| enabled | False |
| id | acc163d0efa14fe
| name | test_user |
+------
curl -g -i -X PUT http://
{"user": {"username": "test_user", "name": "test_user", "extra": {}, "enabled": false, "id": "acc163d0efa14f
Nothing is changed, the user is still disabled.
description: | updated |
description: | updated |
description: | updated |
Changed in keystone: | |
milestone: | none → newton-3 |
importance: | Undecided → High |
Fix proposed to branch: master /review. openstack. org/344057
Review: https:/