[ 
https://issues.apache.org/jira/browse/RANGER-3885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Madhan Neethiraj resolved RANGER-3885.
--------------------------------------
    Fix Version/s: 3.0.0
                   2.4.0
       Resolution: Fixed

[~ramackri]  - thank you for the patch. Committed in master and ranger-2.4 
branches.

 
{noformat}
commit ab7e6e254d40b0c3dc339045978f79be6818a744 (HEAD -> master, origin/master, 
origin/HEAD)
Author: Ramachandran Krishnan <ramac...@gmail.com>
Date:   Wed Sep 14 15:39:43 2022 +0530

    RANGER-3885: removed unimplemented REST API /users/firstnames

    Signed-off-by: Madhan Neethiraj <mad...@apache.org>
{noformat}
 
{noformat}
commit 0f844877c28d17c2ad112c03cf5c1e5a9fb1f6fd (HEAD -> ranger-2.4, 
origin/ranger-2.4)
Author: Ramachandran Krishnan <ramac...@gmail.com>
Date:   Wed Sep 14 15:39:43 2022 +0530

    RANGER-3885: removed unimplemented REST API /users/firstnames

    Signed-off-by: Madhan Neethiraj <mad...@apache.org>
    (cherry picked from commit ab7e6e254d40b0c3dc339045978f79be6818a744)
{noformat}

> User REST API /users/firstnames returns only null with status code 204
> ----------------------------------------------------------------------
>
>                 Key: RANGER-3885
>                 URL: https://issues.apache.org/jira/browse/RANGER-3885
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: Abhishek
>            Assignee: Ramachandran
>            Priority: Major
>             Fix For: 3.0.0, 2.4.0
>
>         Attachments: 
> 0001-RANGER-3885-User-REST-API-users-firstnames-returns-o.patch
>
>
> According to the documentation, the API 
> [resource_UserREST_suggestUserFirstName_GET|https://ranger.apache.org/apidocs/resource_UserREST.html#resource_UserREST_suggestUserFirstName_GET]
>  should return status code 200 when a request is made, but the API always 
> returns a status code 204 No Content.
> From the code, it is clear that the API call just returns null without 
> performing any operations.
> {code:java|bgColor=#f4f5f7}
> @GET
>       @Path("/firstnames")
>       @Produces({ "application/json", "application/xml" })
>       public String suggestUserFirstName(@QueryParam("letters") String 
> letters,
>                       @Context HttpServletRequest req) {
>               return null;
>       }
> {code}
> If this API is used by the customers, then this API has to be fixed, 
> otherwise this API has to be removed from the code file and from
> the documentation



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to