JabRef / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
3.58k stars 2.49k forks source link

Exception when downloading file with parameters #4480

Closed tobiasdiez closed 5 years ago

tobiasdiez commented 5 years ago
JabRef version 5dev on Windows 10

Steps to reproduce the behavior:

  1. Open entry editor > General fields tab
  2. Using the "Download button" next to the file field, try to download an url with parameters like https://www.jstor.org/stable/pdfplus/10.2307/2373250.pdf?acceptTC=true
  3. Get exception
  java.nio.file.InvalidPathException: Illegal char <?> at index 65: Smale1965 - An Infinite Dimensional Version of Sard's Theorem.pdf?accepttc=true
    at sun.nio.fs.WindowsPathParser.normalize(Unknown Source)
    at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
    at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
    at sun.nio.fs.WindowsPath.parse(Unknown Source)
    at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source)
    at sun.nio.fs.AbstractPath.resolve(Unknown Source)
    at org.jabref.gui.fieldeditors.LinkedFileViewModel.lambda$download$375(LinkedFileViewModel.java:370)
    at org.jabref.gui.util.BackgroundTask$1.call(BackgroundTask.java:46)
    at org.jabref.gui.util.BackgroundTask$3.call(BackgroundTask.java:171)
    at org.jabref.gui.util.DefaultTaskExecutor$1.call(DefaultTaskExecutor.java:116)
    at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Plump-Panda commented 5 years ago

Hello, I'm new to contributing to open source projects. Has this issue been solved yet? If not I'd like to try and fix it.

Siedlerchr commented 5 years ago

Hi thanks for your interest. This issue was solved a couple of days ago but we forgot to close the issue. Sorry! But there are plenty of other issues you can take.