Abhishek created RANGER-3885:
--------------------------------

             Summary: 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


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