QuestionQ16

Designing a solution architecture

A component must retrieve data from the repository and display it on a page by using a Sling Model. After the page is published, the component does not render correctly for anonymous users.

What should an Architect do to fix this issue?

  • A Use a system user
  • B Add everyone to a group with read access
  • C Add read access for everyone on the node
  • D Use an admin session
Explanation

Anonymous requests on AEM Publish can read only repository nodes for which they have effective jcr:read permission. Granting read access to the required node for the everyone principal allows the Sling Model to retrieve the public data during anonymous page rendering. In AEM, every user is a member of the everyone group, which is used to apply permissions broadly.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!