-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Copy link
Labels
component: external-filesgood first issueAn issue intended for project-newcomers. Varies in difficulty.An issue intended for project-newcomers. Varies in difficulty.📌 Pinned📍 AssignedAssigned by assign-issue-action (or manually assigned)Assigned by assign-issue-action (or manually assigned)
Description
A user might move files in the file directory without JabRef.
Then, JabRef does not find the file:
But it still exists.
Example:
- Open `test-support\src\manual-tests\issue-9798\issue-9798.bib in JabRef
- Double click on the only entry to open the entry editor
- Select tab "General"
- See orange behind "minimal.pdf"

Normally org.jabref.gui.fieldeditors.LinkedFilesEditorViewModel#findAssociatedNotLinkedFiles is called (from org.jabref.gui.fieldeditors.LinkedFilesEditorViewModel#bindToEntry)
Task:
- Write test in org.jabref.gui.externalfiles.AutoSetFileLinksUtilTest for this case
- Adapt
org.jabref.gui.externalfiles.AutoSetFileLinksUtilto cover the case searching for the filename (in addition to citation key logic). - Ensure that new logic ignores already linked files (e.g., if "minimal.pdf" is already attached to another entry)
- Add test org.jabref.gui.externalfiles.AutoSetFileLinksUtilTest (if not already covered by 1)
- Test in JabRef GUI
One has to ensure that "automatically search and show unlinked files" is activated
Metadata
Metadata
Assignees
Labels
component: external-filesgood first issueAn issue intended for project-newcomers. Varies in difficulty.An issue intended for project-newcomers. Varies in difficulty.📌 Pinned📍 AssignedAssigned by assign-issue-action (or manually assigned)Assigned by assign-issue-action (or manually assigned)
Type
Projects
Status
Done

