isOnlineLink() does not recognize ftp:// links
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.
/assign-me
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.
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.