Unable to resolve tags in AEM 6.3 using Tag Manager | Community
Skip to main content
Level 2
Nov 17, 2017 1:24 PM UTC
Solved

Unable to resolve tags in AEM 6.3 using Tag Manager

Hi All,

We are upgrading from AEM 6.2 to AEM 6.3. In one of our jsp we are trying to get tags using Tag Manager but in publish instance tag manger is not able to find tags as etc is hidden for anonymous user.

We are getting Tag Manager by adapting resourceResolver (implicit object).

TagManager tagManager = resourceResolver.adaptTo(TagManager.class); // Geting Tag Manager value

Tag tag = tagManager.resolve("/etc/tags/abc"); // When resolving tag is null

Iterator<Tag> iteratorTag = tag.listChildren(); // null pointer exception

Could you please help in finding solution.

Thanks,

Megha Gowroji

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
manoj_devapath
manoj_devapathAccepted solution
Level 5
Nov 17, 2017 4:29 PM UTC

The current use always need at least read access to resolve any path in this case its Tag. There is no other approach to resolve. You need to update your instance permissions.

Ref:

User, Group and Access Rights Administration

5 replies

manoj_devapath
manoj_devapathAccepted solution
Level 5
Nov 17, 2017 4:29 PM UTC

The current use always need at least read access to resolve any path in this case its Tag. There is no other approach to resolve. You need to update your instance permissions.

Ref:

User, Group and Access Rights Administration

Translate
Level 2
Nov 17, 2017 4:14 PM UTC

Permissions for root tag are not given for anonymous user. issue is when we are accessing page in publish with active login.

It works if etc/tags permissions are given for anonymous user in publish environment. Is there any other way to do it? 

Translate
Level 2
Nov 17, 2017 4:09 PM UTC

Ya it works on author and works on publish if we give etc permissions to anonymous  user.  Is it recommended to do it or any other approach?

Translate
manoj_devapath
Level 5
Nov 17, 2017 3:43 PM UTC

Can you pls check user permissions for that tag or root tag. other that API looks straight forward.

Translate
smacdonald2008
Level 10
Nov 17, 2017 2:12 PM UTC

Does you solution work in Author?

Translate