Highlighted

AEM6.3 SP1 - TagManager does not resolve tag

vikashy47555224

14-05-2019

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.

Replies

Highlighted

jbrar

Employee

15-05-2019

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