[SOLVED] Basic Authentication not working with OWS 1.2.1
Posted: 12 Oct 2020, 17:39
Hi,
we hit a problem with OpenWebStart for installations where the server requires basic authentication.
With Java-Webstart, there's a popup once asking for the credentials.
I saw a github issue about the reverse problem in IcedTeaWeb (too many popups):
https://github.com/AdoptOpenJDK/IcedTea-Web/issues/607
so it seems that basic authentication should work somehow with OWS?
When writing a DEBUG log, I see that the server is sending the expected 401-response, but it's not handled:
[ITW-CORE][2020-10-12 17:12:20.500 MESZ][DEBUG][net.adoptopenjdk.icedteaweb.http.HttpUtils]
Following exception should be harmless, but may help in finding root cause.
java.io.IOException: Server returned HTTP response code: 401 for URL: https://....jnlpx
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
at net.adoptopenjdk.icedteaweb.http.CloseableConnection.getInputStream(CloseableConnection.java:58)
at net.adoptopenjdk.icedteaweb.http.HttpUtils.consumeAndCloseConnection(HttpUtils.java:74)
at net.adoptopenjdk.icedteaweb.http.HttpUtils.consumeAndCloseConnectionSilently(HttpUtils.java:61)
at net.adoptopenjdk.icedteaweb.resources.initializer.UrlProber.getUrlResponseCodeWithRedirectionResult(UrlProber.java:67)
at net.adoptopenjdk.icedteaweb.resources.initializer.BaseResourceInitializer.testUrl(BaseResourceInitializer.java:103)
at net.adoptopenjdk.icedteaweb.resources.initializer.BaseResourceInitializer.lambda$null$0(BaseResourceInitializer.java:83)
Any idea?
thanx, Arndt
we hit a problem with OpenWebStart for installations where the server requires basic authentication.
With Java-Webstart, there's a popup once asking for the credentials.
I saw a github issue about the reverse problem in IcedTeaWeb (too many popups):
https://github.com/AdoptOpenJDK/IcedTea-Web/issues/607
so it seems that basic authentication should work somehow with OWS?
When writing a DEBUG log, I see that the server is sending the expected 401-response, but it's not handled:
[ITW-CORE][2020-10-12 17:12:20.500 MESZ][DEBUG][net.adoptopenjdk.icedteaweb.http.HttpUtils]
Following exception should be harmless, but may help in finding root cause.
java.io.IOException: Server returned HTTP response code: 401 for URL: https://....jnlpx
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
at net.adoptopenjdk.icedteaweb.http.CloseableConnection.getInputStream(CloseableConnection.java:58)
at net.adoptopenjdk.icedteaweb.http.HttpUtils.consumeAndCloseConnection(HttpUtils.java:74)
at net.adoptopenjdk.icedteaweb.http.HttpUtils.consumeAndCloseConnectionSilently(HttpUtils.java:61)
at net.adoptopenjdk.icedteaweb.resources.initializer.UrlProber.getUrlResponseCodeWithRedirectionResult(UrlProber.java:67)
at net.adoptopenjdk.icedteaweb.resources.initializer.BaseResourceInitializer.testUrl(BaseResourceInitializer.java:103)
at net.adoptopenjdk.icedteaweb.resources.initializer.BaseResourceInitializer.lambda$null$0(BaseResourceInitializer.java:83)
Any idea?
thanx, Arndt