Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1338649 - Calamari API does not allow to edit user details after creating users
Calamari API does not allow to edit user details after creating users
Status: CLOSED WONTFIX
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Calamari (Show other bugs)
2.0
Unspecified Unspecified
unspecified Severity unspecified
: rc
: 2.3
Assigned To: Gregory Meno
ceph-qe-bugs
Bara Ancincova
:
Depends On:
Blocks: 1322504 1383917 1412948
  Show dependency treegraph
 
Reported: 2016-05-23 04:10 EDT by rakesh
Modified: 2017-04-04 14:21 EDT (History)
3 users (show)

See Also:
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 14:21:28 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description rakesh 2016-05-23 04:10:30 EDT
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 2016-06-16 08:28:12 EDT
looks good to me.

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