File Gallery Thumbnails missing after permission change
- Status
- Closed
- Subject
- File Gallery Thumbnails missing after permission change
- Version
- 12.x
- Category
- Error
- Feature
- File Gallery (elFinder or standard UI)
- Resolution status
- Fixed or Solved
- Submitted by
- tdresel
- Volunteered to solve
- Jonny Bradley
- Lastmod by
- lindon
- Rating
- Description
Clean install of v12.4
Logged in as Admin
Set File Galleries to Store in database
Global permission "Can view file galleries (tiki_p_view_file_gallery) set to Anonymous and "Can download files (tiki_p_download_files)" set to Anonymous (this was the default setting)Goto File Galleries-->List Galleries List Gallery view
Rollover file names produces popup thumbnail, also in Browse Images view preview images display
Uploading new file displays thumbnail and preview image OKFrom Fille Galleries goto Permissions, then edit global permissions and change "Can download files (tiki_p_download_files)" from Anonymous to Registered
Go back to File Galleries, refresh the page and most, if not all, thumbnails turn into question marks as well as the preview images in the Browse Images view. Clicking on the filename downloads the correct file and using the Action Display loads the file in a new page, which is what was expected. (This has the same results with a Registered user and with setting the single object permission)Resetting "Can download files (tiki_p_download_files)" back to Anonymous brings back the images.
Conclusion: if "Can download files (tiki_p_download_files)" is set to anything other then Anonymous the file gallery will not display thumbnail or preview images for any user.
I had expected to be able to use the "Can download files (tiki_p_download_files)" permission to limit who could download files, not who could see them.
- Solution
From what i can tell here the problem arose because the Display and Download menu options weren't checking the download_file permission properly (Download was, but Display wasn't).
Have fixed that in 14.x in r56103 - hope that helpsI'm guessing this issue has been fixed and am closing this report. Please re-open if any issues.
- Importance
- 10 high
- Priority
- 50
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 5693
- Created
- Saturday 08 August, 2015 00:12:25 UTC
by tdresel - LastModif
- Thursday 12 November, 2015 03:52:30 UTC