Dynamic Media Viewer Presets Not Fully Loading due to rep:policy Node
Hi Community,
We recently encountered an issue with Dynamic Media Video Viewer Presets on our AEM 6.5.21 and wanted to share our findings in case others run into something similar.
Issue
In the Dynamic Media component, one author was able to see all custom Video Viewer Presets, while another author could see only a subset of the available presets.
The behavior was inconsistent across users even though the presets existed and were correctly configured.
Investigation
After comparing permissions and user groups, we found that the affected user was a member of the Administrators group.
While authoring the Dynamic Media component, errors were appearing in the logs. The issue was traced to:
/libs/dam/components/scene7/common/viewerpresetdatasource/viewerpresetdatasource.jsp

The JSP iterates through the preset nodes and attempts to retrieve:
preset.getNode(Node.JCR_CONTENT)For administrator users, the iteration also includes the rep:policy node because they have permission to view it. Since rep:policy does not contain a jcr:content child node, the code throws an exception, causing the datasource processing to terminate early. As a result, only a partial list of viewer presets is displayed in the Dynamic Media component.
Probable Fix
The issue can be resolved by overlaying the datasource JSP and adding a check to skip rep:policy nodes during iteration:
if (preset != null && !preset.getName().contains("rep:policy")) {
Node node = preset.getNode(Node.JCR_CONTENT);
Questions
- Has anyone else encountered this issue with Dynamic Media Viewer Presets?
- Is there an Adobe-recommended fix or hotfix available for this behavior?
- Has this been addressed in newer AEM service packs or AEMaaCS?
Any insights would be appreciated.
Thanks!