lookfirst / sardine

an easy to use webdav client for java
Other
577 stars 184 forks source link

Connecting via SOCKS Proxy without authentication sends System username #301

Closed DJGummikuh closed 5 years ago

DJGummikuh commented 5 years ago

Hello!

We are using Sardine to connect to WebDAV over a SOCKS Proxy which does not need authentication. However, logs of the Socks server (dante, for test purposes) show, that in case no username is provided by us, the system username is sent instead. We debugged into the code because we assume that somewhere there is a misconfiguration in how the HTTPClient is instanciated but could not find the reason why this is happening.

Interestingly enough, when we test with SSH's embedded Socks Server functionality it is working, most likely because SSH is simply discarding the authentication attempt made by us. However, we should not have to rely on the socks server ignoring stuff it doesn't expect since that username is ultimately unneeded.

Can you please tell me if there is something we miss or if this is a bug?

DJGummikuh commented 5 years ago

We just found out that this is also happening with Ftp clients from apache using our socks proxy so this is an apache problem, not a sardine problem.