| Summary: | Jetty does not recognize internationalized (IDN) SUB domain names | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | Boris Hamanov <bsh666> | ||||
| Component: | server | Assignee: | Greg Wilkins <gregw> | ||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | bsh666, janb, jetty-inbox | ||||
| Version: | unspecified | Keywords: | core, greatbug | ||||
| Target Milestone: | 7.2.x | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| URL: | http://XN--80AHAIUUGL4G.citadelait.com | ||||||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=319057 | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 319057 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Boris Hamanov
Boris, Have a read of https://bugs.eclipse.org/bugs/show_bug.cgi?id=319057 How are you trying to access the url? If in the browser, then you should type in the non-encoded form of the name. In your case that is: http://поддръжка.citadelait.com If that's what you're doing, can you capture a tcpdump/wireshark trace of the http dialog with jetty, and ensure you have DEBUG enabled and send the relevant sections of the jetty log file. thanks Jan Created attachment 193413 [details]
Complete session log
I read https://bugs.eclipse.org/bugs/show_bug.cgi?id=319057 It seems that I do everything correctly. Indeed, it would be nicer to use the original form of the url. Thanks for that guys, I will use it when it is ready. I tried using both http://поддръжка.citadelait.com and http://xn--80ahaiuugl4g.citadelait.com NOTHING works This is the log from fidler2 GET http://xn--80ahaiuugl4g.citadelait.com/ HTTP/1.1 Accept: text/html, application/xhtml+xml, */* Accept-Language: en-US,bg-BG;q=0.5 User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) Accept-Encoding: gzip, deflate Connection: Keep-Alive Host: xn--80ahaiuugl4g.citadelait.com HTTP/1.1 301 Moved Permanently Date: Sat, 16 Apr 2011 08:13:54 GMT Location: http://www.citadelait.com/ Content-Length: 0 This is the jetty debug log about that particular request. I will atach the complete session log 16 IV 2011 13:16:48,704 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - REQUEST / on org.eclipse.jetty.server.nio.SelectChannelConnector$2@ee31e33 16 IV 2011 13:16:48,706 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - servlet=org.eclipse.jetty.servlet.DefaultServlet-1388314661 16 IV 2011 13:16:48,706 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - servlet holder= 16 IV 2011 13:16:48,706 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - chain= 16 IV 2011 13:16:48,711 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - resource base = null 16 IV 2011 13:16:48,711 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - RESOURCE /=file:/C:/jetty/webroot/ 16 IV 2011 13:16:48,712 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - uri=/ resource=file:/C:/jetty/webroot/ content 16 IV 2011 13:16:48,713 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - RESOURCE /index.html=file:/C:/jetty/webroot/index.html 16 IV 2011 13:16:48,713 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - welcome=index.html 16 IV 2011 13:16:48,715 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - servlet=org.eclipse.jetty.servlet.DefaultServlet-1388314661 16 IV 2011 13:16:48,715 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - servlet holder= 16 IV 2011 13:16:48,715 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - chain= 16 IV 2011 13:16:48,716 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - RESOURCE /index.html.gz=file:/C:/jetty/webroot/index.html.gz 16 IV 2011 13:16:48,717 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - uri=/index.html resource=file:/C:/jetty/webroot/index.html.gz content 16 IV 2011 13:16:48,719 [qtp2106232034-25 - /] DEBUG org.eclipse.jetty.util.log - RESPONSE / 304 Additional note: I have removed UTF-8 encoding from my default.xml (default context) I added that in the hope that the unicode coded form (поддръжка) will work. It did not, so I reverted it back to ISO-8859-1. Anyway why Jetty fails to handle plain ANSI domain name is beyond me. Maybe the "--" part bothers it somehow? Can you reproduce that on your side? Does the top level IDN domain name work in this Jetty version? I just added your domain to the ManyContexts example and used telnet to send the following request: GET http://xn--80ahaiuugl4g.citadelait.com/context/foobar HTTP/1.1 Accept: text/html, application/xhtml+xml, */* Accept-Language: en-US,bg-BG;q=0.5 User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) Accept-Encoding: gzip, deflate Connection: Keep-Alive Host: xn--80ahaiuugl4g.citadelait.com to which I got the response: HTTP/1.1 200 OK Content-Type: text/html;charset=UTF-8 Content-Length: 188 Server: Jetty(7.x.y-SNAPSHOT) <h1>A Virtual Context</h1> <a href='/'>root context</a><br/><a href='http://127.0.0.1:8080/context'>normal context</a><br/><a href='http://127.0.0.2:8080/context'>virtual context</a><br/> So the virtual host mechanism does look to be working. Can you look at ManyContexts example and convert that into a test that fails for you. Then reopen this issue with that test attached. |