Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1316

API 404 responses should not contain server details

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • Server
    • None

    Description

      For an invalid resource request, which results in a 404 response:

      GET /gatewayipxllql46j/manager/api/v1/topologies/my-new-desc

      Knox currently returns some server details and the request URL.

      HTTP/1.1 404 Not Found
      Date: Thu, 10 May 2018 12:16:13 GMT
      Cache-Control: must-revalidate,no-cache,no-store
      Content-Type: text/html; charset=ISO-8859-1
      Content-Length: 333
      Connection: close
      Server: Jetty(9.2.15.v20160210)
      <html><head><meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/><title>Error 404 </title></head><body><h2>HTTP ERROR: 404</h2><p>Problem accessing /gatewayipxllql46j/manager/api/v1/topologies/my-new-desc. Reason:<pre>    Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i></body></html>

      Generic responses are preferred for security reasons, and Jetty should support the configuration of such a generic response for these cases. 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pzampino Philip Zampino
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: