tagManager.resolve(tagPath) is returning null without logging into Publish?

Avatar

Avatar

manasip

Avatar

manasip

manasip

19-07-2018

Hi All,

I have written a servlet which will be executed when below url is called:

http://localhost:4503/content/experience-fragments/TestProject/en-us/banners.searchConditionalConten...

This url fetch the correct data based on the query written in servlet service. Now on publish server, the data is fetched only if I am logged into Publish server through crxde. If I am not logged into the publisher through crx de the servlet is not responding the expected data. why?

I have created a system user for this service/servlet and used this session.

while debugging I found that :

While executing Tag tag = tagManager.resolve(tagPath); I am getting tag = null, where tagpath is /etc/tags/project/test/sources/512 which is published to the publisher. and I checked that this tag is available in the publisher. The respective content is also published.

Any pointers to find this? or debugging.

Thanks,

Manasi

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

edubey

Avatar

edubey

edubey

21-07-2018

By Default, Anonymous user will not have permission /etc/tags
Either you can provide permission or read this via service user which as permission

Answers (2)

Answers (2)

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

22-07-2018

Also - we are running an Ask the AEM Community Experts on this on Tues - this is your chance to ask questions like this during the webinar -- Sign up here -- Scott's Digital Community: [Webinar | July ] Ask the AEM Community Experts: Adobe Experience Manager...

Avatar

Avatar

Kunwar

Employee

Avatar

Kunwar

Employee

Kunwar
Employee

20-07-2018

Go to useradmin, For everyone group make sure you have read permissions to /etc/tags and folder under it.

In AEM 6.4, the path for the tags would be /content/cq:tags. You can check for the same permission for the everyone group.