History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SRC-415
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Hendrik Seffler
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Selenium Remote Control

URLs starting with digits cause trouble for SSL

Created: 20/Jan/08 09:54 AM   Updated: 12/Aug/08 05:35 PM
Component/s: SSL Support
Affects Version/s: 0.9.2
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: As seen on Windows XP SP2 with both Firefox 2.0 and IE 7, proxy injection mode


 Description  « Hide
In the application I am testing URLs may start with customer id's, e.g. http://<id>.company.com.

Under that URL the customer operates a shop-system. One may put goods into a basket and then proceed to payment etc. Payment is done using SSL, so at one point the appliation forwards the user to a SSL-URL. So far, so good.

When the <id> above is some string like "customer" all works fine. If <id> however consists of digits like "282267", the test fails upon forwarding to the SSL-URL.

The log of Selenium RC contains this when the error happens:

{noformat}
15:22:43.440 DEBUG - Tunnel: org.mortbay.http.HttpTunnel@164dbd5
15:22:43.471 DEBUG - REQUEST from ProxyHandler$SslRelay2@0.0.0.0:1606:
GET https://10.10.10.101:443/de/DE/Shop/Basket/index HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shock
wave-flash, */*
Referer: http://282267.vm01.virtual/de/DE/Shop
Accept-Language: de
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
Host: 282267.vm01.virtual
Connection: keep-alive
Cookie: pulang=de; pbic=3; PHPSESSID=f6csbaicdl28qb30palesd24v7


15:22:43.471 DEBUG - Try HttpContext[/,/],0
15:22:43.471 DEBUG - Handler org.openqa.selenium.server.ProxyHandler in HttpCont
ext[/,/]
15:22:43.471 DEBUG - PROXY URL=https://10.10.10.101:443/de/DE/Shop/Basket/index
15:22:43.487 DEBUG - Could not proxy https://10.10.10.101:443/de/DE/Shop/Basket/
index
java.io.IOException: HTTPS hostname wrong: should be <10.10.10.101>
        at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(Unknown Sourc
e)
        at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.setNewC
lient(Unknown Source)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.setNewC
lient(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.writeRequests(Unknown Sou
rce)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
        at java.net.HttpURLConnection.getResponseCode(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unk
nown Source)
        at org.openqa.selenium.server.ProxyHandler.proxyPlainTextRequest(ProxyHa
ndler.java:374)
        at org.openqa.selenium.server.ProxyHandler.handle(ProxyHandler.java:250)

        at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
        at org.mortbay.http.HttpServer.service(HttpServer.java:909)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
244)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
15:22:43.502 DEBUG - Handled by org.openqa.selenium.server.ProxyHandler in HttpC
ontext[/,/]
15:22:43.502 DEBUG - RESPONSE:
HTTP/1.1 400 Could+not+proxy+https%3A%2F%2F10%2E10%2E10%2E101%3A443%2Fde%2FDE%2F
Shop%2FBasket%2Findex%0Ajava%2Eio%2EIOException%3A+HTTPS+hostname+wrong%3A++shou
ld+be+%3C10%2E10%2E10%2E101%3E
Date: Sun, 20 Jan 2008 14:22:43 GMT
Server: Jetty/5.1.x (Windows XP/5.1 x86 java/1.5.0_06
Content-Type: text/html
Content-Length: 1496
{noformat}

So it seems the hostname is converted to an IP at some point (this does only happen when <id> consists of digits), which results in this error.

 All   Comments   Work Log   Change History      Sort Order:
Hendrik Seffler - 12/Jun/08 08:52 AM
Hmm, any progress? Anything I can do?