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

AEM6.3 SP1 - TagManager does not resolve tag

vikashy47555224
Level 2
Level 2

Hi,

on author and publish instances TagManager successfully resolve tag but it fails to resolve tags when we access through webserver. We are resolving tags using fully qualified tag id(ex: mynamespace:car/color/red).

TagManager tagManager = resolver.adaptTo(TagManager.class);

Tag tag = tagManager.resolve("<fully qualified tag id>");

Here resolve(-) returns null value.

2 Replies
jbrar
Employee
Employee

Do you have any sling mappings for web server URL? If yes, try removing the mappings and try again.

Also, setting up a DEBUG logger on the following classes will provide more info on what's going on:

  • org.apache.sling.resourceresolver
  • com.day.cq.tagging