{"issue":{"created_at":"2011-12-07T12:38:56Z","state":"open","updated_at":"2011-12-07T14:31:48Z","user":{"gravatar_id":"0e04e666d2931385f3699799196e4773","id":1244172,"url":"https://api.github.com/users/ymorin","login":"ymorin","avatar_url":"https://secure.gravatar.com/avatar/0e04e666d2931385f3699799196e4773?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":2,"body":"Given the following directory structure :\r\nMisc/                   (public)\r\nMisc/Familly     (restricted to group \"familly\")\r\nMisc/Friends     (restricted to group \"friends\")\r\n\r\nWhen not logged at all :\r\n- the \"Misc\" directory is shown (expected and correct, as it is public)\r\n- no thumbnail is shown (expected and correct, as no public picture exist in any sub-dir)\r\n--> what I'd suggest : display a generic thumbnail ( eg. a big red cross ;-) )\r\n\r\nWhen logged as a user of the \"familly\" group :\r\n- the \"Misc\" directory displays a picture from the \"Misc/Familly\" sub-dir (expected, correct)\r\n- hovering over the directory, only thumbnails from the \"Misc/Familly\" sub-dir are shown (expected and correct)\r\n- however, the number of thumbnails displayed is wrong\r\n\r\nWhen logged as a user of the \"friends\" group :\r\n- the \"Misc\" directory shows no initial thumbnail.\r\n- hovering over the directory, only thumbnails from the \"Misc/Friends\" sub-dir are eventually shown (expected and correct)\r\n- however, the number of thumbnails displayed is wrong\r\n\r\nFor 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.\r\n\r\n( Yes, I have weird use-cases!!! ;-) Feel free to ignore them if it too complex to solve.)","assignee":null,"id":2474123,"number":41,"labels":[{"name":"bugs","color":"e10c02","url":"https://api.github.com/repos/thibaud-rohmer/PhotoShow/labels/bugs"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"No directory thumbnail shown for a directory with mixed-rights on sub-dirs","html_url":"https://github.com/thibaud-rohmer/PhotoShow/issues/41","closed_at":null,"url":"https://api.github.com/repos/thibaud-rohmer/PhotoShow/issues/41","milestone":null},"action":"created","comment":{"created_at":"2011-12-07T14:31:48Z","updated_at":"2011-12-07T14:31:48Z","user":{"gravatar_id":"7f4954ea7bafea1e573bed11d9b0adb4","id":1241830,"url":"https://api.github.com/users/mathieu-lecoeur","login":"mathieu-lecoeur","avatar_url":"https://secure.gravatar.com/avatar/7f4954ea7bafea1e573bed11d9b0adb4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"  \"When not logged at all :\r\n  - the \"Misc\" directory is shown (expected and correct, as it is public)\r\n  - no thumbnail is shown (expected and correct, as no public picture exist in any sub-dir)\r\n  --> what I'd suggest : display a generic thumbnail ( eg. a big red cross ;-) )\"\r\n\r\nThe misc directory shouldn't be shown because for a none logged user it is empty ( as said int he #33 issue \"Handle Empty Galleries in the left hand-side menu\")","id":3047756,"url":"https://api.github.com/repos/thibaud-rohmer/PhotoShow/issues/comments/3047756"}}