[
https://issues.apache.org/jira/browse/RANGER-3885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17604006#comment-17604006
]
Ramachandran commented on RANGER-3885:
--------------------------------------
The review is available here --https://reviews.apache.org/r/74119/
> 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
> Priority: Major
> 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)