Created attachment 175252 [details] Failure to access files after update-by-hash partial update SUMMARY After renaming image files, "refreshing" the database updates the names shown in the browser, but the image paths are not updated. Also, operation "put on top of stack" on those images fails, I can't tell if that's because of wrong path or reveals other internal inconsistencies. Saving and restarting kPhotoAlbum fixes the inconsistencies. STEPS TO REPRODUCE 1. display the thumbnails of some images 2. (recalculate their hashes to make sure hashes are up-to-date) 3. rename the files in filesystem 4. refresh the kPhotoAlbum database 5. wait for the displayed names to be updated 6. try some operation that involves access to the files (recalculate hashes again, display in full,...) OBSERVED RESULT kPhotoAlbum browser tries to open non-updated file paths, and fails. EXPECTED RESULT All the information about the files should be updated by the refresh operation, in both database and browser. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Linux Ubuntu 22.04.5 LTS KDE Plasma Version: 5.24.7 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3
Thanks for reporting this bug. I could reproduce this using the demo database. It seems to be a problem with updating the view, since the problem goes away if one browses to a different view and comes back to the same thumbnail view.