Project: usergrid
Issue USERGRID-216: GET an non-exists entity by ID or Name throws 401 if no authorisation is required
for example get /sandbox/users/non-exist-username throws 401 error code this is because below code {code} @Provider public class ServiceResourceNotFoundExceptionMapper extends AbstractExceptionMapper { @Override public Response toResponse( ServiceResourceNotFoundException e ) { if ( SubjectUtils.getSubjectUserId() == null ) { return toResponse( UNAUTHORIZED, e ); } else { return toResponse( NOT_FOUND, e ); } } } {code}
Story points: 2