Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-2814

Logviewer HTTP server should return 403 instead of 200 if the user is unauthorized

    Details

      Description

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

      It returns OK which is confusing.

        Attachments

          Activity

            People

            • Assignee:
              ethanli Ethan Li
              Reporter:
              ethanli Ethan Li
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m