Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

4 Replies

Avatar

Employee

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.

Avatar

Correct answer by
Level 10

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

Avatar

Level 6
FYI... I am using the CQ tag manager api... Tagmananger.resolve(tagid) this is returning as null everytime ... I mrunning in local as admin.... All tags are there I checked strictly.... Admin has all the permission .... Tagid is also correct like namesapce:fruit/apple kind of...... What can be problem.......

Avatar

Level 10

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...