Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1F33E200C49 for ; Fri, 17 Mar 2017 16:52:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1D825160B6D; Fri, 17 Mar 2017 15:52:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 63499160B80 for ; Fri, 17 Mar 2017 16:52:47 +0100 (CET) Received: (qmail 62653 invoked by uid 500); 17 Mar 2017 15:52:46 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 62642 invoked by uid 99); 17 Mar 2017 15:52:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2017 15:52:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0055CC028B for ; Fri, 17 Mar 2017 15:52:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.451 X-Spam-Level: * X-Spam-Status: No, score=1.451 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id IAoKbP-PAoKU for ; Fri, 17 Mar 2017 15:52:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E24C45F46F for ; Fri, 17 Mar 2017 15:52:44 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D4889E04FE for ; Fri, 17 Mar 2017 15:52:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8C4BA243A6 for ; Fri, 17 Mar 2017 15:52:41 +0000 (UTC) Date: Fri, 17 Mar 2017 15:52:41 +0000 (UTC) From: "Karl Wright (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (HTTPCLIENT-1833) RuntimeException from WindowsNegotiateScheme: Unexpected token MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 17 Mar 2017 15:52:48 -0000 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Wright reassigned HTTPCLIENT-1833: --------------------------------------- Assignee: Karl Wright > RuntimeException from WindowsNegotiateScheme: Unexpected token > -------------------------------------------------------------- > > Key: HTTPCLIENT-1833 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1833 > Project: HttpComponents HttpClient > Issue Type: Bug > Affects Versions: 4.5.3 > Environment: Client: Windows 8.1, Proxy: Squid 3.5.20 on Centos 7.0 > Reporter: Antony Helliwell > Assignee: Karl Wright > > We have a test setup using Squid 3.5.20 as an authenticating proxy configured with NEGOTIATE+NTLM. When attempting to connect to a target host we get the following traceback: > java.lang.RuntimeException: Unexpected token > at org.apache.http.impl.auth.win.WindowsNegotiateScheme.parseChallenge(WindowsNegotiateScheme.java:152) > at org.apache.http.impl.auth.AuthSchemeBase.processChallenge(AuthSchemeBase.java:126) > at org.apache.http.impl.auth.HttpAuthenticator.handleAuthChallenge(HttpAuthenticator.java:137) > at org.apache.http.impl.execchain.MainClientExec.needAuthentication(MainClientExec.java:579) > at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:293) > at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) > at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) > at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) > at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) > at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) > at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) > ... > I've tracked this down to WindowsNegotiateScheme using the SPN HTTP/ to authenticate with the proxy rather than the SPN HTTP/. > Applying https://github.com/apache/httpclient/pull/28 fixes the problem. > The request is from early 2015 and doesn't seem to have been applied due to a pending rewrite, however the bug still exists at 4.5.3. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org