You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Sandeep More (JIRA)" <ji...@apache.org> on 2017/09/26 15:10:02 UTC

[jira] [Created] (KNOX-1068) Knox returns HTTP 405 Method Not Allowed error with HTTP HEAD method

Sandeep More created KNOX-1068:
----------------------------------

             Summary: Knox returns HTTP 405 Method Not Allowed error with HTTP HEAD method
                 Key: KNOX-1068
                 URL: https://issues.apache.org/jira/browse/KNOX-1068
             Project: Apache Knox
          Issue Type: Bug
          Components: Server
            Reporter: James Jones
            Assignee: Sandeep More


Load balancer (Netscalar) probes receives HTTP 405 Method Not Allowed errors from Knox with HEAD request. Doing a HEAD requests is the preferred (and common) way to probe status of a service from LB's.

Test as follows:

curl -k --head  https://gateway.domain.com:8443/gateway/default/ambari/

Knoxgateway-audit.log gives this error:

17/09/25 17:46:04 ||60da43b2-97c3-4d32-ac10-b6d566a69e90|audit|AMBARIUI||||authorization|uri|/gateway/default/ambari|success|
17/09/25 17:46:04 ||60da43b2-97c3-4d32-ac10-b6d566a69e90|audit|AMBARIUI||||access|uri|/gateway/default/ambari|success|Response status: 405
17/09/25 17:46:04 ||36137fd2-3643-4225-943d-1213cb0bfafd|audit|||||access|uri|/gateway/default/yarngateway/default/ambari|unavailable|Request method: HEAD
17/09/25 17:46:04 ||36137fd2-3643-4225-943d-1213cb0bfafd|audit|||||access|uri|/gateway/default/yarngateway/default/ambari|success|Response status: 404
17/09/25 17:46:09 ||1e4f6bce-cbf7-43da-858d-d43166fa1dcb|audit|||||access|uri|/gateway/default/yarngateway/default/ambari|unavailable|Request method: HEAD

The error is coming from Knox. When doing the same curl directly to Ambari, we get an HTTP 200 back. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)