Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0A25116F9 for ; Sun, 20 Apr 2014 18:55:24 +0000 (UTC) Received: (qmail 20142 invoked by uid 500); 20 Apr 2014 18:55:19 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 19902 invoked by uid 500); 20 Apr 2014 18:55:16 -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 19869 invoked by uid 99); 20 Apr 2014 18:55:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Apr 2014 18:55:15 +0000 Date: Sun, 20 Apr 2014 18:55:15 +0000 (UTC) From: "Sebastiano Vigna (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HTTPCLIENT-1498) "java.lang.IllegalArgumentException: Host name may not be blank" thrown during redirect (regression?) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sebastiano Vigna created HTTPCLIENT-1498: -------------------------------------------- Summary: "java.lang.IllegalArgumentException: Host name may not be blank" thrown during redirect (regression?) Key: HTTPCLIENT-1498 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1498 Project: HttpComponents HttpClient Issue Type: Bug Components: HttpClient Affects Versions: 4.3.3 Reporter: Sebastiano Vigna The bug we reported some time ago about null hosts in redirects seems to have regressed, albeit the old problem was with "null" and the new problem is with "blank": 2014-04-20 04:20:09,169 19319369 ERROR [FetchingThread-197] i.u.d.l.b.f.FetchingThread - Unexpected exception java.lang.IllegalArgumentException: Host name may not be blank at org.apache.http.util.Args.notBlank(Args.java:68) ~[httpcore.jar:4.3.2] at org.apache.http.HttpHost.(HttpHost.java:81) ~[httpcore.jar:4.3.2] at org.apache.http.client.utils.URIUtils.extractHost(URIUtils.java:370) ~[httpclient.jar:4.3.3] at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:132) ~[httpclient.jar:4.3.3] at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) ~[httpclient.jar:4.3.3] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) ~[httpclient.jar:4.3.3] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:214) ~[httpclient.jar:4.3.3] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:185) ~[httpclient.jar:4.3.3] at it.unimi.di.law.bubing.util.FetchData.fetch(FetchData.java:322) ~[bubing-0.9.3.jar:na] This is caused by this site: > wget --max-redirect=0 http://www.thegamersedge.co.uk/robots.txt --2014-04-20 20:47:43-- http://www.thegamersedge.co.uk/robots.txt Resolving www.thegamersedge.co.uk (www.thegamersedge.co.uk)... 72.1.201.156, 72.1.201.152 Connecting to www.thegamersedge.co.uk (www.thegamersedge.co.uk)|72.1.201.156|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://robots.txt [following] 0 redirections exceeded. -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org