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

Francesco Chicchiriccò commented on SYNCOPE-42:
-----------------------------------------------

Hi Colm,
the patch seems to work as expected.

Some remarks:
 * UserController.delete(String) can be modified to act as a bare frontend to 
UserController.delete(Long), instead of replicating the same code; or a new 
private delete() method can incapsulate the logic currently implemented in 
UserController.delete(Long), and both frontend methods can delegate to this new 
one
 * Why UserController.delete(String) does not take input coherently with 
UserController.delete(Long), i.e. "/delete?username={username}" instead of 
"/delete/{username}"?
 * Could you please use a unique (in integration tests context) e-mail address 
for test user in UserTestITCase.deleteByUsername()? The one currently used is 
the same as UserTestITCase.delete()
                
> Add the ability to delete a user by username via the REST API
> -------------------------------------------------------------
>
>                 Key: SYNCOPE-42
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-42
>             Project: Syncope
>          Issue Type: Improvement
>    Affects Versions: 1.0.0-incubating
>            Reporter: Colm O hEigeartaigh
>            Assignee: Colm O hEigeartaigh
>             Fix For: 1.0.0-incubating
>
>         Attachments: syncope-42.patch
>
>
> It is currently not possible to delete a user by username via the REST API, 
> only via the user Id. This task is to add support for this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to