Skip to content

PDF indexing should be paused when adding a file via drag and drop #8182

@koppor

Description

@koppor

JabRef version

Latest development branch build (please note build date below)

Operating system

Windows

Details on version and operating system

Windows 10

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. Configure explicit directory for library (refs "General file directory" is not respected when dropping a file #8179)
  2. Drag a PDF file from c:\temp
  3. Drop file at an existing entry

Expected behavior:

File is moved and renamed

Current behavior:

At first attempt, an IOException is risen:

java.nio.file.FileSystemException: C:\TEMP\xy.pdf -> C:\TEMP\FMC - FMC_ an Approach Towards Architecture Centric System Development.pdf: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird

Then, the user can detach the file from the entry and try again. Then, it works.

Solution propsal

Stop PDF indexing during drop handling. Start indexing again after drop (includes file move!!) is finished

Metadata

Metadata

Assignees

Labels

[outdated] type: bugConfirmed bugs or reports that are very likely to be bugs

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions