Bug 1305478 - calamari API :api/v2/user - reports to input password, but no password field in UI
Summary: calamari API :api/v2/user - reports to input password, but no password field ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Calamari
Version: 1.3.2
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: 1.3.4
Assignee: Christina Meno
QA Contact: ceph-qe-bugs
Bara Ancincova
URL:
Whiteboard:
Depends On:
Blocks: 1299303 1372735
TreeView+ depends on / blocked
 
Reported: 2016-02-08 11:21 UTC by rakesh-gm
Modified: 2018-01-18 08:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
.Missing password field in Calamari An attempt to create a new user in the Calamari UI fails with the `password field is required` error because the password field is missing from the Calamari UI. To work around this issue, use the Raw data form and create the new user by using the JSON format, for example: ---- { "username": "user", "email": "user@example.com", "password": "password" } ----
Clone Of:
Environment:
Last Closed: 2018-01-18 08:21:49 UTC
Embargoed:


Attachments (Terms of Use)
Screen shot showing password is required. (163.03 KB, image/png)
2016-02-08 11:21 UTC, rakesh-gm
no flags Details

Description rakesh-gm 2016-02-08 11:21:36 UTC
Created attachment 1122147 [details]
Screen shot showing password is required.

Description of problem:

This rest API: http://10.8.128.8/api/v2/user is for creating users. 
when api call is used with JSON post with the fields username, password and email, the user gets created. But the same does not apply for creating users using calamari UI. we get the error saying that "password field is required" but in calamari UI, there is no password field.  

The error snapshot is attached.

Comment 3 rakesh-gm 2016-02-16 14:17:14 UTC
Hi bara, 

there are two options one with HTML and other is Raw data form. You can choose Media type as application/Json create the users, with json data in the form as shown below :

{
    "username": "abc", 
    "email": "abc",
    "password": "abc123"

}

Comment 5 rakesh-gm 2016-02-22 11:39:23 UTC
That looks fine Bara, thanks a lot.

Comment 6 Christina Meno 2016-05-06 04:11:22 UTC
The preferred method of creating users in 1.3 is http://calamari.readthedocs.io/en/latest/operations/users.html#how-do-i-administer-it

Comment 7 Christina Meno 2018-01-18 08:21:49 UTC
No customer cases associated with an old bug -- closing this. If you think it still needs fixing feel free to re-open


Note You need to log in before you can comment on or make changes to this bug.