hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HTTPCLIENT-1047) domain name umlaut issue
Date Wed, 26 Jan 2011 10:34:45 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-1047.
-------------------------------------------

    Resolution: Invalid

Non-ascii characters in domain names are illegal.

Oleg

> domain name umlaut issue
> ------------------------
>
>                 Key: HTTPCLIENT-1047
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1047
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>         Environment: OS: Microsoft Windows Vista
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
>            Reporter: Minhaj Mehmood
>            Priority: Critical
>
> I'm using httpclient 3.1 and getting exception while using fetching domain which contains
umlaut in it find the code & stack trace bellow:
> Code
> ==
>     @Test
>     public void test01() throws HttpException, IOException{
>         HttpClient theClient = new HttpClient();
>         GetMethod get = new GetMethod("http://thedömain.com/");
>         theClient.executeMethod(get);
>     }
> Stack Trace
> ==
> java.lang.IllegalArgumentException: Invalid uri 'http://thedömain.com/': Invalid authority
>     at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222)
>     at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
>     at de.crawler.loader.utils.UrlTest.test01(UrlTest.java:15)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
>     at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
>     at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
>     at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
>     at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
>     at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
>     at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
>     at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
>     at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
>     at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
>     at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
>     at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
>     at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
>     at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message