SOCKS 5 Authentication
I am trying to use a SOCKS 5 connection from Spark to a SOCKS 5 proxy that expects a username and password as part of the SOCKS request.
When I enter the username and password for the proxy in Spark, “Advanced Connection Preferences”, there is a problem:
Spark is passing my Windows OS username and a blank password to the proxy server, not the username password entered into the dialog.
I had a quick look at the Spark code and the Java documentation at:
Link: http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html
I guess spark code in LoginDialog.java updateProxyConfig() should be updated from
if (protocol.equals(“SOCKS”)) {
System.setProperty(“socksProxyHost”, host);
System.setProperty(“socksProxyPort”, port);
}
to something like
if (protocol.equals(“SOCKS”)) {
System.setProperty(“socksProxyHost”, host);
System.setProperty(“socksProxyPort”, port);
System.setProperty(“java.net.socks.username”, username);
System.setProperty(“java.net.socks.password”, password);
}
Thanks for the report. I file SPARK-659 to fix this issue.
Cheers,
Derek