You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Ramachandran (Jira)" <ji...@apache.org> on 2022/09/14 10:18:00 UTC

[jira] [Updated] (RANGER-3885) User REST API /users/firstnames returns only null with status code 204

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

Ramachandran updated RANGER-3885:
---------------------------------
    Attachment: 0001-RANGER-3885-User-REST-API-users-firstnames-returns-o.patch

> 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)