Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy authentication problem #7627

Open
panklucznik opened this issue Apr 13, 2021 · 8 comments
Open

Proxy authentication problem #7627

panklucznik opened this issue Apr 13, 2021 · 8 comments

Comments

@panklucznik
Copy link

JabRef 5.3--2021-04-12--e3094ac
Linux 5.10.0-5-amd64 amd64
Java 15.0.2
JavaFX 16+8

I use a university proxy to access paywalled scientific journals.
When I try to use it within JabRef, it doesn't authenticate.

Steps to reproduce:

  1. Set proxy server, port, username and password
  2. Try to download fulltext
  3. Download Failed

java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 407 Proxy Authentication Required"
at java.base/sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at org.jabref@5.3.262/org.jabref.logic.net.URLDownload.openConnection(Unknown Source)
at org.jabref@5.3.262/org.jabref.logic.net.URLDownload.asInputStream(Unknown Source)
at org.jabref@5.3.262/org.jabref.gui.externalfiles.FileDownloadTask.call(Unknown Source)
at org.jabref@5.3.262/org.jabref.gui.externalfiles.FileDownloadTask.call(Unknown Source)
at org.jabref@5.3.262/org.jabref.gui.util.BackgroundTask$3.call(Unknown Source)
at org.jabref@5.3.262/org.jabref.gui.util.DefaultTaskExecutor$1.call(Unknown Source)
at org.jabref.merged.module@5.3.262/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

@ruanych
Copy link
Contributor

ruanych commented Apr 22, 2021

Hello, can you successfully test the Check connection in the preferences?

@panklucznik
Copy link
Author

Hi, thanks for the reply. No, I cannot, but it doesn't produce output other than the short message that connection failed.

@ruanych
Copy link
Contributor

ruanych commented Apr 30, 2021

I am having difficulties with the proxy test that requires certification, can I contact you for some help?

@panklucznik
Copy link
Author

I am very sorry for the delay. Of course, how can we contact directly?

@ruanych
Copy link
Contributor

ruanych commented May 16, 2021

I am very sorry for the delay. Of course, how can we contact directly?

I am glad to get your help, contact me via my email ruanyc@mail.sustech.edu.cn.

@mlep
Copy link
Contributor

mlep commented Sep 15, 2021

Same issue with:
JabRef 5.4--2021-09-13--fbfa35b
Linux 4.19.0-17-amd64 amd64
Java 16.0.2
JavaFX 17+18

In the preferences, Check connection works, but Help -> Check for updates leads to an exception window with the following stack trace:

java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required"
at java.base/sun.net.www.protocol.http.HttpURLConnection.doTunneling0(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at org.jabref@5.4.208/org.jabref.logic.util.Version.getAllAvailableVersions(Unknown Source)
at org.jabref@5.4.208/org.jabref.gui.help.VersionWorker.getNewVersion(Unknown Source)
at org.jabref@5.4.208/org.jabref.gui.util.BackgroundTask$1.call(Unknown Source)
at org.jabref@5.4.208/org.jabref.gui.util.DefaultTaskExecutor$1.call(Unknown Source)
at org.jabref.merged.module@5.4.208/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

@Siedlerchr
Copy link
Member

@blacky-i
Copy link

blacky-i commented Feb 28, 2023

Had the same issue. My workaround is to patch /opt/jabref/lib/app/JabRef.cfg file and add to section [JavaOptions] two lines:

java-options=-Djdk.http.auth.tunneling.disabledSchemes=""
java-options=-Djdk.http.auth.proxying.disabledSchemes=""

And proxy settings starts to work.

I think same file can be found in Windows and Mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants