Skip to content

Commit

Permalink
RANGER-4720: Ranger Admin server gives empty response when user with …
Browse files Browse the repository at this point in the history
…user-role tries to update lastname or email address
  • Loading branch information
RakeshGuptaDev authored and dhavalshah9131 committed Mar 1, 2024
1 parent 0fdc598 commit dd01ab2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ public WebApplicationException generateRESTException(VXResponse gjResponse) {
* @return
*/
public WebApplicationException create403RESTException(String logMessage) {
RESTResponse resp = new RESTResponse();
resp.setMsgDesc(logMessage);

Response errorResponse = Response.status(
javax.servlet.http.HttpServletResponse.SC_FORBIDDEN).build();
javax.servlet.http.HttpServletResponse.SC_FORBIDDEN).entity(resp).build();

WebApplicationException restException = new WebApplicationException(
errorResponse);
Expand Down

0 comments on commit dd01ab2

Please sign in to comment.