Page 1 of 1

[SOLVED] Basic Authentication not working with OWS 1.2.1

Posted: 12 Oct 2020, 17:39
by abrensch

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):

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. Server returned HTTP response code: 401 for URL: https://....jnlpx
at net.adoptopenjdk.icedteaweb.http.CloseableConnection.getInputStream(
at net.adoptopenjdk.icedteaweb.http.HttpUtils.consumeAndCloseConnection(
at net.adoptopenjdk.icedteaweb.http.HttpUtils.consumeAndCloseConnectionSilently(
at net.adoptopenjdk.icedteaweb.resources.initializer.UrlProber.getUrlResponseCodeWithRedirectionResult(
at net.adoptopenjdk.icedteaweb.resources.initializer.BaseResourceInitializer.testUrl(
at net.adoptopenjdk.icedteaweb.resources.initializer.BaseResourceInitializer.lambda$null$0(

Any idea?

thanx, Arndt

Re: Basic Authentication not working with OWS 1.2.1

Posted: 12 Oct 2020, 19:55
by Janak Mulani

Thanks for reporting.

We are aware of

Code: Select all
and already have an issue on our internal list.

We will take it up after assessing the effort and available resources.

Is it an urgent high priority issue for you? Would you be willing to support us?

- Janak

Re: Basic Authentication not working with OWS 1.2.1

Posted: 23 Oct 2020, 12:57
by Janak Mulani

I started investigating this by making a small sample. When I start

Code: Select all

javaws http://host/abc.jnlp
it shows me the authentication dialog twice : once in stage 1 for downloading jnlp and second time in stage 2 when it starts the jnlp. After this it does not show Authentication dialog for jar files. After this the app runs.

Can you please tell me what your experience has been? Does the app run at all or not? How is your jnlp structured? does it have extensions? Are jars and jnlp are under the same codebase? How is Basic Auth configured on the server?

It will help if you can share the jnlp.


Re: Basic Authentication not working with OWS 1.2.1

Posted: 03 Nov 2020, 12:04
by Stephan Classen
We found the underlying issue and will release a fix with version 1.3.0 in mid November
For details see