jvenant commented on PR #11501: URL: https://github.com/apache/pinot/pull/11501#issuecomment-1715048423
Hi, Following the suggestion from @abhioncbr about using [javax.ws.rs.NotAuthorizedException](https://docs.oracle.com/javaee/7/api/javax/ws/rs/NotAuthorizedException.html), this is the fix I currently use in my pinot broker : ```java if (httpHeaders.getHeaderString(HttpHeader.AUTHORIZATION) == null) { throw new NotAuthorizedException("Basic") } else { throw new WebApplicationException("Permission Denied", Response.Status.FORBIDDEN) } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
