Bug 1338649

Summary: Calamari API does not allow to edit user details after creating users
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: rakesh-gm <rgowdege>
Component: CalamariAssignee: Christina Meno <gmeno>
Calamari sub component: Back-end QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Status: CLOSED WONTFIX Docs Contact: Bara Ancincova <bancinco>
Severity: medium    
Priority: unspecified CC: ceph-eng-bugs, hnallurv, rgowdege
Version: 2.0   
Target Milestone: rc   
Target Release: 2.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
.The Calamari REST-based API fails to edit user details An attempt to use the Calamari REST-based API to edit user details fails with an error. To change user details, use the `calamari-ctl` command-line utility.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-04 18:21:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1322504, 1383917, 1412948    

Description rakesh-gm 2016-05-23 08:10:30 UTC
Description of problem:
I was trying to create and edit couple of user using the following APIs. 

1. api/v2/user 	 
2. api/v2/user/<pk>

the User gets created fine using the 1st API. but when try to edit the user details (using PATCH request or PUT request) like email id. I get the error 403 FORBIDDEN error saying that "permission denied". know that I am logged as admin with admin privileges. There is also a note saying that "Users can only modify their own account (i.e.
the user being modified must be the user associated with the current login session)." 

SO i try to login to the created user and do a GET request with 2nd API. 
and then I GET 403 FORBIDDEN ERROR.

how do i edit user details using the APIs.

Comment 4 rakesh-gm 2016-06-16 12:28:12 UTC
looks good to me.