Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-10841

[Hawtio] Improve handling of HTTP 403 responses

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • fuse-7.5-ER1
    • None
    • Hawtio
    • None
    • Fuse 7.5 Sprint 50 - Dev #1

    Description

      Follow up to ENTESB-10823.

      For some Hawtio endpoints, if the user is not authenticated, a HTTP 403 Forbidden response is returned. However ServletHelpers.doForbidden forces the return of a JSON response, which is not very user friendly if someone hits a secured endpoint in a web browser.

      It'd better to only return JSON if requested. E.g if application/json is present in the Accept header. Or via a URL parameter etc.

      Attachments

        Activity

          People

            jnethert@redhat.com James Netherton
            jnethert@redhat.com James Netherton
            Lucia Drozdova Lucia Drozdova
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: