Bug 101640 - Thumbnails for deleted documents are not removed from Start Center
Summary: Thumbnails for deleted documents are not removed from Start Center
Status: RESOLVED DUPLICATE of bug 101302
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-21 16:40 UTC by Pedro
Modified: 2016-08-30 20:35 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro 2016-08-21 16:40:05 UTC
In branch 5.0 the thumbnails of documents no longer available (deleted from temp folders, moved to other folders) were not displayed on next load.

In branches 5.1 and 5.2 the thumbnails are displayed but clicking on them reports file <path> does not exist

This is a regression.
Comment 1 V Stuart Foote 2016-08-21 18:07:20 UTC
Confirming the behavior 5.0 -> 5.1 and 5.2, but is this a bug?

The thumbnails are held as base64 images in the user profile--registrymodifications.xcu--and when deleted via UI from the StartCenter or the Most Recently Used Used list (File -> Recent Documents) the stanza is immediately removed from the user profile. Until deleted from the profile (via the UI, or directly editing the .xcu) the thumbnail will remain. 

What seems to have been changed is testing existence of each entry on the Thumbnail view/MRU during launch of LibreOffice.  No clear idea of where it was changed--but suspect some adjustment would have been needed as testing for availability of a document on launch would be expensive for a network/cloud resource.

@Kendy, might this change in housekeeping of thumbnail views be result of your work on bug 95095?
Comment 2 Pedro 2016-08-22 08:03:03 UTC
(In reply to V Stuart Foote from comment #1)
> Confirming the behavior 5.0 -> 5.1 and 5.2, but is this a bug?

IMHO yes. What is the point of showing thumbnails of files that no longer exist?

I think that the logic should be: if the drive is available but the file is not present, remove thumbnail and MRU entry.
This would clean up removed files but keep thumbnails for non-connected remote drives and non-connected external disks.
Comment 3 Jean-Baptiste Faure 2016-08-22 08:52:26 UTC
(In reply to Pedro from comment #2)
[...]
> This would clean up removed files but keep thumbnails for non-connected
> remote drives and non-connected external disks.

I guess that the problem is not with non-connected remote devices but with connected devices with low speed resulting in long delay to check if the file is still available.

Best regards. JBF
Comment 4 Maxim Monastirsky 2016-08-30 20:35:43 UTC

*** This bug has been marked as a duplicate of bug 101302 ***