Return-Path: Delivered-To: apmail-jakarta-httpclient-dev-archive@www.apache.org Received: (qmail 12116 invoked from network); 8 Feb 2005 07:36:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Feb 2005 07:36:28 -0000 Received: (qmail 24507 invoked by uid 500); 8 Feb 2005 07:36:27 -0000 Delivered-To: apmail-jakarta-httpclient-dev-archive@jakarta.apache.org Received: (qmail 24354 invoked by uid 500); 8 Feb 2005 07:36:27 -0000 Mailing-List: contact httpclient-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "HttpClient Project" Reply-To: "HttpClient Project" Delivered-To: mailing list httpclient-dev@jakarta.apache.org Received: (qmail 24340 invoked by uid 99); 8 Feb 2005 07:36:26 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 07 Feb 2005 23:36:26 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j187aNZq008424 for ; Tue, 8 Feb 2005 08:36:23 +0100 Received: (from nobody@localhost) by ajax.apache.org (8.12.11/8.12.11/Submit) id j187aNbs008422; Tue, 8 Feb 2005 08:36:23 +0100 Date: Tue, 8 Feb 2005 08:36:23 +0100 Message-Id: <200502080736.j187aNbs008422@ajax.apache.org> From: bugzilla@apache.org To: httpclient-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 33437] - URI.getHost() generates IllegalArgumentException X-Bugzilla-Reason: AssignedTo X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33437 ------- Additional Comments From rolweber@de.ibm.com 2005-02-08 08:36 ------- Hello Bisser, the getHost() method returns the host of URLs that follow the scheme protocol://host/path, which is not the case for the mailto: URL. I wouldn't say that you're doing something wrong, but I wouldn't call it a bug either. EMail addresses are usually not decomposed on the URI level, they are used opaque. The Javadocs of JDK 1.4's URI class even mention this explicitly: > An opaque URI is an absolute URI whose scheme-specific part does not > begin with a slash character ('/'). Opaque URIs are not subject to > further parsing. Some examples of opaque URIs are: > > mailto:java-net@java.sun.com > news:comp.lang.java > urn:isbn:096139210x Maybe we should update the JavaDocs of our URI class accordingly to prevent other users from falling into the same trap. cheers, Roland -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org