Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1487

Avatica{Json,Protobuf}Handler inadvertently returns HTTP/404 after authentication failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • avatica-1.11.0
    • avatica

    Description

      I'm looking into a case where there are some authentication issues into an Avatica server. The SPNEGO handshake obviously failed via error in the server, but the client ultimately saw an HTTP/404 error which doesn't make sense (they should see a 401 or 403).

      I think I see why this happens. In the handlers, when the server is configured to require authenticated users and a user is not authenticated, the handle() method just returns.

      I believe the Handler implementation should set the Request as handled and set the appropriate response code. I believe the 404 is coming from the DefaultHandler (which has no html to serve for requests to "/").

      Attachments

        Activity

          People

            elserj Josh Elser
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: