[ 
https://issues.apache.org/jira/browse/RANGER-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14267325#comment-14267325
 ] 

Don Bosco Durai commented on RANGER-205:
----------------------------------------

We should avoid returning error code 500. This is should be used only when 
there is a server side non-recoverable error. We should use error code 400 for 
user errors.

For REST APIs, all deletes should be honored. E.g. If an user is deleted from 
LDAP, then it should be removed/disabled from our DB. If there policies using 
this user, then they should be removed from the policy.

REST APIs being programatic, it will be mostly reliable, so we should some 
level of trust and avoid giving error message.

> Delete rest api of User not deleting user completely from system
> ----------------------------------------------------------------
>
>                 Key: RANGER-205
>                 URL: https://issues.apache.org/jira/browse/RANGER-205
>             Project: Ranger
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Hanish Bansal
>
> Delete rest api of user is removing entry from x_user table of database and 
> not from x_portal_user table so user get invisible from UI and api return 
> success status.
> Due to which if a user is updated to have username/email-id of deleted user, 
> it will error message that this username/email-id already exists.
> Also if a new user is created with user-name of deleted user, user get 
> successfully created but his/her details are mapped with deleted user.
> Rest apis used are:
> {quote}
> DELETE http://<ip>:6080/service/xusers/users/userName/<username>
> DELETE http://<ip>:6080/service/xusers/users/<id>
> {quote}
> Expected result:
> Apis should remove entry from both tables x_user and x_portal_user.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to