Expand my Community achievements bar.

SOLVED

Regarding acs-common

Avatar

Level 4

How can we validate that my acs-common's list replicated to publish instance

neerajsankalia_0-1680096511745.png

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee

How are you reading the resource? To read this you create a system user and provided the appropriate permissions. Can you share the code snippet that you are using to read the list? 

View solution in original post

16 Replies

Avatar

Employee Advisor

Hi @neeraj_24412 ,

The acs commons generic list is stored under "/etc/acs-commons/lists".  As an anonymous user, you will not have access to this path. If you are on a server and don't have login credentials to publish, you can only verify by reading the list within your code logic and printing the values. The other way to check is the logs while replicating, if the replication is successful, it will show in the logs.

Link to generic list acs commons - https://adobe-consulting-services.github.io/acs-aem-commons/features/generic-lists/index.html

 

Avatar

Level 4

Thanks @Anish-Sinha for reply,
I am not able to read this list on publish instance.I am not getting this "/etc/acs-commons/lists" as resource.

Please check this post for more details 
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/regarding-acs-common-s-lis...

Avatar

Correct answer by
Employee

How are you reading the resource? To read this you create a system user and provided the appropriate permissions. Can you share the code snippet that you are using to read the list? 

Avatar

Level 4

neerajsankalia_1-1679653953647.pngaa.png

Here how can i access the list,It is working on the author instance but not in publish instance

Avatar

Employee Advisor

Hi @neeraj_24412 ,

 

It still looks like the issue with the access to the node. The resolver is not able to read the node and hence returns an empty value. Can you try creating a system user and then assigning read permission to the etc node? It should resolve your issue. Below link that describes the steps to get a resource resolver using a system user.

 

https://unlocklearning.in/resource-resolver-in-aem/

 

Avatar

Employee Advisor

Hi @neeraj_24412 ,

I can connect with you if you are available now. I am online here:- https://meet.google.com/ant-ojsk-umv

feel free to join.

Avatar

Level 4

@Anish-Sinha ,What the reason for not seeing generic list on aem cloud,I am not able to replicate it to publish instance?

 

Avatar

Community Advisor

I believe you need to provide anonymous user access to acs commons list node otherwise it won’t work without logging on the aem publisher. In order to verify if it will work first login on aem publisher with admin user and see if you are able to access those acs-commons list node and if yes then you need the anonymous user to have read permission on those nodes 

Avatar

Level 4

Node is not there in publish instance after publish the generic list

Avatar

Community Advisor

Then it seems your publishing is not happening. Are you publishing with your own user and do you have permissions to publish those nodes? Can you try re-publishing the nodes and at the same time can you check the error.logs to check what happens during the replication? Can you also share the list jar:content screenshot ?

Avatar

Community Advisor

You need to check the author error log since publishing is happening there also check the replication queue and log while publishing. Can you also share the screenshot from crx/de for /etc/acs-commons/lists node. Make sure you are logged in as admin on both author and publisher to test.

 

Avatar

Level 4

Thanks,

Issue was resolved now,what's the reason for not able to publish generic list on aem cloud