Strong Liu created USERGRID-216: ----------------------------------- Summary: GET an non-exists entity by ID or Name throws 401 if no authorisation is required Key: USERGRID-216 URL: https://issues.apache.org/jira/browse/USERGRID-216 Project: Usergrid Issue Type: Story Reporter: Strong Liu
for example get /sandbox/users/non-exist-username throws 401 error code this is because below code {code} @Provider public class ServiceResourceNotFoundExceptionMapper extends AbstractExceptionMapper<ServiceResourceNotFoundException> { @Override public Response toResponse( ServiceResourceNotFoundException e ) { if ( SubjectUtils.getSubjectUserId() == null ) { return toResponse( UNAUTHORIZED, e ); } else { return toResponse( NOT_FOUND, e ); } } } {code} -- This message was sent by Atlassian JIRA (v6.2#6252)