gthumb doesn't re-scan thumbnails when permissions change

Bug #33494 reported by Geoff Jacobsen
8
Affects Status Importance Assigned to Milestone
gThumb
Invalid
Medium
gthumb (Ubuntu)
Invalid
Medium
Ubuntu Desktop Bugs

Bug Description

If one has previewed a directory where they do not have read permission to the photos and then the permission is changed so they do have read permission then gthumb does not update - and provides no manual way of updating - the photo thumbnails.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for your bug report, but I do not quite understand. First of all: which version of Ubuntu and gthumb do you use?

1) I changed to not have read permissions, as a result I got an error message from gthumb telling me that I can't look at the pictures
2) I changed to have read permissions and could have a look at the pictures.

What exactly is the problem? And please give detailed steps to reproduce the problem. Thanks.

Changed in gthumb:
status: Unconfirmed → Needs Info
Revision history for this message
Geoff Jacobsen (geoffj) wrote :

gthumb version: 2.7.3-0ubuntu3
Hi Daniel,

Sorry for not making my report clearer. It is not the directory that I don't have read access to; it is the pictures.

1. First off you must start with a picture that you do not have read access to and that gthumb has not browsed previously so that the thumbnail is the "tree and the sunset" icon.

2. Then "chmod a+r" on the picture and gthumb will not change the icon to a thumbnail of the picture.

The only way I can see to get gthumb to build the thumbnail is rename the file or modify it.

This situation I find is typical when you share a computer with another user.

I hope that is clearer
Thanks.

Geoff Jacobsen (geoffj)
Changed in gthumb:
assignee: nobody → dholbach
status: Needs Info → Unconfirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

Could you try with 2.7.5.1 once it hits the archive?

Changed in gthumb:
assignee: dholbach → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
Geoff Jacobsen (geoffj) wrote :

Tried 2.7.5.1 but no difference:

1. copied abc.jpg to xyz.jpg, change owner and permissions on xyz.jpg to root 600.

2. opened gthumb no thumbnail for xyz.jpg as expected.

3. chown and chmod back to me for xyz.jpg but still no thumbnail.

4. Tried <Ctrl>-R, still no thumbnail.

5. "touch"ed file, now thumbnail appears.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for following up, I reported the issue to the upstream developers: http://bugzilla.gnome.org/show_bug.cgi?id=335496

Changed in gthumb:
status: Needs Info → Confirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

From: http://bugzilla.gnome.org/show_bug.cgi?id=335496#c1
The thumbnailing code determines the thumbnail "freshness" based on the file
mtime. chmod doesn't change the mtime, but touch does.

It isn't worth the added complexity to track the ctime too (which changes when
permissions are changed). We use GnomeThumbnail (from libgnomeui), which relies
on mtime.

This is a deliberate design choice, so I'm marking it as "NOTABUG".

Changed in gthumb:
status: Confirmed → Rejected
Changed in gthumb:
status: Unconfirmed → Rejected
Changed in gthumb:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.