lookfirst / sardine

an easy to use webdav client for java
Other
579 stars 185 forks source link

Cannot enable preemptive authentication for multiple ports #206

Closed jochenberger closed 9 years ago

jochenberger commented 9 years ago

It is currently not possible to enable preemptive authentication for multiple HTTP or multiple HTTPS ports. There is com.github.sardine.impl.SardineImpl.enablePreemptiveAuthentication(String, int, int) (#181), but if that's called multiple times, the old AuthCache is cleared. The method should check if there is already an AuthCache present and extend it in that case. Unfortunately, I cannot override the method and add that behavior because I'd need to access com.github.sardine.impl.SardineImpl.context which is private.

lookfirst commented 9 years ago

Closed with #207