You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "Ethan Li (JIRA)" <ji...@apache.org> on 2017/11/14 18:29:00 UTC
[jira] [Created] (STORM-2814) Logviewer HTTP server should return
403 instead of 200 if the user is unauthorized
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)