Loading...
 
Skip to main content

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
(0)
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 OK

From 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 helps

I'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+
Demonstrate Bug (older Tiki versions)
Ticket ID
5693
Created
Saturday 08 August, 2015 00:12:25 UTC
by tdresel
LastModif
Thursday 12 November, 2015 03:52:30 UTC


Show PHP error messages