PerficientDigital / AEM-DataLayer

Simple DataLayer API for Adobe Experience Manager
Apache License 2.0
34 stars 13 forks source link

Publish instance error #2

Closed gborgono closed 7 years ago

gborgono commented 7 years ago

Hi I get the following errors when open a page on the Publish Instance with Datalayer cloud service active, using anonymous user. javax.el.ELException: Error reading 'config' on type com.perficient.aem.datalayer.core.models.AEMDataLayerManager If I use an authenticate user in the Administrator Group, it works and window.digitalData fields are populated.

What authorization have I to set on publish instance to enable it ? Thanks a lot for any support Giuseppe Borgonovo

ghost commented 7 years ago

Problem is the anonymous user is not able to read config from /etc/cloudservices/aemdatalayer on publish instance. To avoid the problem, it is possible to set a rep:policy node under /etc/cloudservices/aemdatalayer configuration to grant access to "everyone" user/group or better to define a proper user (to replicate it on publish istance) to be able to read config settings from /etc/cloudservices/aemdatalayer. For instance, you can use the ootb user dtmservice and set ALLOW jcr:read under /etc/cloudservices/aemdatalayer path.

Thanks Gaetano Polizzi

gborgono commented 7 years ago

Thanks Gaetano; it works with this setting. Ciao Giuseppe