Ethan Li created STORM-2814:
-------------------------------

             Summary: Logviewer HTTP server should return 403 instead of 200 if 
the user is unauthorized
                 Key: STORM-2814
                 URL: https://issues.apache.org/jira/browse/STORM-2814
             Project: Apache Storm
          Issue Type: Bug
            Reporter: Ethan Li
            Assignee: Ethan Li
            Priority: Minor



{code:java}
    public static Response buildResponseUnautohrizedUser(String user) {
        String entity = buildUnauthorizedUserHtml(user);
        return Response.status(OK)
                .entity(entity)
                .type(MediaType.TEXT_HTML_TYPE)
                .build();
    }
{code}

It returns OK which is confusing.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to