jabref icon indicating copy to clipboard operation
jabref copied to clipboard

isOnlineLink() does not recognize ftp:// links

Open vedanth1101-source opened this issue 4 months ago • 3 comments

LinkedFile.isOnlineLink() currently recognizes only http://, https://, and www. links. However, URLUtil also recognizes ftp:// URLs.

Because of this inconsistency, FTP links are not classified as online links by LinkedFile.isOnlineLink() and may proceed to local file path lookup instead.

Extend LinkedFile.isOnlineLink() to recognize ftp:// links so that its behavior is consistent with URLUtil.

This was noticed while working on PR #16391. The fix was intentionally kept out of that PR because changing LinkedFile.isOnlineLink() affects many call sites (cleanup, indexing, integrity checks, file lookup, etc.) and is broader than the scope of that bug fix.

vedanth1101-source avatar Jul 28 '26 16:07 vedanth1101-source

/assign-me

akilan590 avatar Jul 29 '26 13:07 akilan590

Thank you for your continued work in JabRef. At this point, you probably already know the basics and the important links. If not, our contributing guidelines is the place you should go to.

At this point in time, you raised 1 pull request(s) of which 0% (0/1) have been merged.

jabref-machine avatar Jul 29 '26 13:07 jabref-machine

We think that this issue was fixed. Please head to https://builds.jabref.org/main to download a development build and try it out.

For any feedback, add a comment to the pull request at https://github.com/JabRef/jabref/pull/16423.

github-actions[bot] avatar Jul 30 '26 18:07 github-actions[bot]