thibaud-rohmer/PhotoShow — Issue #41: No directory thumbnail shown for a directory with mixed-rights on sub-dirs
Author: ymorin
Created: 2011-12-07 12:38:56+00:00
State: open

Given the following directory structure :
Misc/ (public)
Misc/Familly (restricted to group "familly")
Misc/Friends (restricted to group "friends")

When not logged at all :
- the "Misc" directory is shown (expected and correct, as it is public)
- no thumbnail is shown (expected and correct, as no public picture exist in any sub-dir)
--> what I'd suggest : display a generic thumbnail ( eg. a big red cross ;-) )

When logged as a user of the "familly" group :
- the "Misc" directory displays a picture from the "Misc/Familly" sub-dir (expected, correct)
- hovering over the directory, only thumbnails from the "Misc/Familly" sub-dir are shown (expected and correct)
- however, the number of thumbnails displayed is wrong

When logged as a user of the "friends" group :
- the "Misc" directory shows no initial thumbnail.
- hovering over the directory, only thumbnails from the "Misc/Friends" sub-dir are eventually shown (expected and correct)
- however, the number of thumbnails displayed is wrong

For these two last situations, it appears the list of available images is not trimmed before deciding which thumbnail to display, but when a protected thumbnail is requested, it is simply not shown.

( Yes, I have weird use-cases!!! ;-) Feel free to ignore them if it too complex to solve.)