Maintenance utility "remove data for orphaned files" doesn't work properly

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
CyrilS
Posts: 2
Joined: Mon Jan 20, 2025 3:45 pm

Maintenance utility "remove data for orphaned files" doesn't work properly

Post by CyrilS »

Subject: 1.8.3 : Maintenance utility "remove data for orphaned files" doesn't work properly.

XnView: MP 1.8.3 - 64 bit
OS: Windows 64bit

Effect: no visible effect, but incorrect database content

To reproduce:

1. Close XnView MP
2. Move an image from one folder to another with Windows Explorer
3. Launch XnView MP
4. Run the following query on the SQLite database:

Code: Select all

SELECT f.pathname, i.*
from Images i
join folders f on i.folderId = f.folderId
where filename like '%désert%'
Result: the query returns 2 rows corresponding to the old and new folders of the image, which is quite normal.

5. Launch the maintenance utility by checking the box "remove data for orphaned files"
6. rerun the previous query on the database.
Result: the record corresponding to the old folder is still present :bug:

Expected behaviour: the query should return only one row, corresponding to the new image folder
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Maintenance utility "remove data for orphaned files" doesn't work properly

Post by xnview »

it works correctly here, are you able to reproduce each time?
Pierre.
CyrilS
Posts: 2
Joined: Mon Jan 20, 2025 3:45 pm

Re: Maintenance utility "remove data for orphaned files" doesn't work properly

Post by CyrilS »

I was systematically reproducing the problem in version 1.8.3, but since upgrading to 1.9.1, it seems to have been solved :)

Note that images present in the database but deleted from disk (via Windows Explorer, for example) are displayed as thumbnails. Ideally, when you delete the thumbnail (by right-clicking Delete), it should also delete the corresponding entry in the database.
Post Reply