Community
Participate
Working Groups
1. Go to sites.html, create a new site 2. Click on the site's name to open it in edit-site.html 3. Click the "Add..." button and choose "URL..." 4. Leave the added entry as-is. It should look like this: Target Mount at http://someurl /mountPoint 5. Save, return to sites.html, and start the site. 6. Visit http://<startedSiteHostName>/mountPoint in your browser. After a few seconds' pause, you'll see an 500 Internal Server error and a Java stack trace. This error needs to be handled, returning an error details object instead of a stack trace, and with a more correct response code.
Here's the stack trace java.net.UnknownHostException: someurl at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.<init>(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at org.eclipse.orion.internal.server.hosting.HostedSiteServlet.proxyRemoteUrl(HostedSiteServlet.java:206) at org.eclipse.orion.internal.server.hosting.HostedSiteServlet.serve(HostedSiteServlet.java:107) at org.eclipse.orion.internal.server.hosting.HostedSiteServlet.doGet(HostedSiteServlet.java:57) ....
Fixed by Bug 340065