I have a client that wants to allow a set of users permission to view the dynamic media menu for published images. When logged in under and administrator account, the user can see a menu of different renditions for images that have been published. As a different logged in user, they can only see the original image and no dynamic media at all.
We tried enabling read, modify, and create access to the /etc/dam/drm/DynamicMediaConfig path. When I enabled this, the page wouldn't render images and the error log is filled with exceptions that image processor could not be loaded.
*ERROR* [0:0:0:0:0:0:0:1  GET /email@example.com/profile/photos/primary/image.prof.thumbnail.24.24.png HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught Throwable
java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader
What do I need to do in order to enable the dynamic media menu and allow the user to view dynamic media renditions?
Solved! Go to Solution.
did you try giving access to /etc/dam completely and see if it works. DynamicMediaConfig may also need some dependent permissions like workflows etc
Can you also post the complete error log ?
We marked all of the permissions for that folder and then none of the images, and I do mean none, were displayed due to the exception in the original post. If I left the permissions off, the user could see the image and the local renditions but not the Dynamic versions.
See if you can upload the file or atleast give little more logs which gives us the better idea !! the one line which you have mentioned doesnt give much of a clue !
Looks like we found it. It is a complicated group of permissions that have to be set up as well as a config file.
When I get more info, I'll try to post it so it can become a golden nugget.