• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • http-request-plugin
    • None
    • Jenkins 1.590. HTTP Request Plugin 1.8.6

      Some servers doesn't send a authentication challange response (401), so the authentication header is not sent in the next request attempt (default behaviour in the Apache Commons Http Client).
      To send always the authentication header, the preemptive authentication must be enabled. In the case of Apache Commons Http Client, the AuthCache must be present in the HttpContext. I attached a patch that solves this.

          [JENKINS-26014] No preemptive authentication

          Patch applied.

          Thanks.

          Janario Oliveira added a comment - Patch applied. Thanks.

          Code changed in jenkins
          User: Janario Oliveira
          Path:
          src/main/java/jenkins/plugins/http_request/HttpRequest.java
          src/main/java/jenkins/plugins/http_request/auth/Authenticator.java
          src/main/java/jenkins/plugins/http_request/auth/BasicDigestAuthentication.java
          src/main/java/jenkins/plugins/http_request/auth/FormAuthentication.java
          src/main/java/jenkins/plugins/http_request/util/HttpClientUtil.java
          http://jenkins-ci.org/commit/http-request-plugin/49fe66a3467283817c417bed91ee35f97f523cc0
          Log:
          JENKINS-26014 No preemptive authentication - applied patch (author Angel López Cima)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Janario Oliveira Path: src/main/java/jenkins/plugins/http_request/HttpRequest.java src/main/java/jenkins/plugins/http_request/auth/Authenticator.java src/main/java/jenkins/plugins/http_request/auth/BasicDigestAuthentication.java src/main/java/jenkins/plugins/http_request/auth/FormAuthentication.java src/main/java/jenkins/plugins/http_request/util/HttpClientUtil.java http://jenkins-ci.org/commit/http-request-plugin/49fe66a3467283817c417bed91ee35f97f523cc0 Log: JENKINS-26014 No preemptive authentication - applied patch (author Angel López Cima)

            janario Janario Oliveira
            anloci Angel López Cima
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: