You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/11/14 18:35:00 UTC
[jira] [Updated] (STORM-2814) Logviewer HTTP server should return
403 instead of 200 if the user is unauthorized
[ https://issues.apache.org/jira/browse/STORM-2814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated STORM-2814:
----------------------------------
Labels: pull-request-available (was: )
> 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
> Labels: pull-request-available
>
> {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)