Skip to main content
Level 2
Dec 10, 2015 12:12 AM UTC
Solved

Tag Title rendering - Publish server on 6.1

I'm having issues while rendering the tag titles on the publish server (AEM 6.1). I'm not facing this issue on Author environment as I'm logging as 'admin' user and even if I login as admin user on the publish server then tag names are rendering properly. I have checked the following options, in both the cases title is null

Option -1 

tagPath =/etc/tags/<my tag>

Resource tagResource = resource.getResourceResolver().getResource(tagPath);    //Resource is not null but tagResource is returning null
if(tagResource !=null){
    Tag tag = tagResource.adaptTo(Tag.class);                
    title = tag.getTitle();
}

Option2            
tagManager = resourceResolver.adaptTo(TagManager.class);            //tagManager is not null here but Tag is
returning null
Tag tag = tagManager.resolve(tagPath);

Do I need to create system users to access the Tags on 6.1 ?
Can you please help me in solving this issue?
 
Thanks in advance
RJ
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
JK_Kendall
JK_KendallAccepted solution
Level 9
Dec 10, 2015 2:00 AM UTC

Hi RJ,

Check out the documentation about setting tag permissions :

"As of AEM 6.1, 'secure (by default)' is now a best practice for the publish environment that requires read permission to be explicitly allowed for tags.  Bascially, this is done by creating a package of the Tag Namespace after permissions have been set on author, and installing the package on all publish instances..."

- JK

4 replies

JK_Kendall
JK_KendallAccepted solution
Level 9
Dec 10, 2015 2:00 AM UTC

Hi RJ,

Check out the documentation about setting tag permissions :

"As of AEM 6.1, 'secure (by default)' is now a best practice for the publish environment that requires read permission to be explicitly allowed for tags.  Bascially, this is done by creating a package of the Tag Namespace after permissions have been set on author, and installing the package on all publish instances..."

- JK

Translate
Lokesh_Shivalingaiah
Level 10
Dec 10, 2015 3:36 AM UTC

As JK mentioned, its a ACL problem, provide the read access to the tags node and it should solve the issue.

Translate
Jitendra_S_Toma
Level 10
Dec 10, 2015 3:49 AM UTC

YRJ wrote...

I'm having issues while rendering the tag titles on the publish server (AEM 6.1). I'm not facing this issue on Author environment as I'm logging as 'admin' user and even if I login as admin user on the publish server then tag names are rendering properly. I have checked the following options, in both the cases title is null

Option -1 

tagPath =/etc/tags/<my tag>

Resource tagResource = resource.getResourceResolver().getResource(tagPath);    //Resource is not null but tagResource is returning null
if(tagResource !=null){
    Tag tag = tagResource.adaptTo(Tag.class);                
    title = tag.getTitle();
}

Option2            
tagManager = resourceResolver.adaptTo(TagManager.class);            //tagManager is not null here but Tag is
returning null
Tag tag = tagManager.resolve(tagPath);

Do I need to create system users to access the Tags on 6.1 ?
Can you please help me in solving this issue?
 
Thanks in advance
RJ

 

As everyone pointed out correctly that you have to set read permission for the tags. And, just make sure, you set read permission for everyone group. Because that's how you can be sure that every new/old user has access to your tags.

--

Jitendra

Translate
RajyAuthor
Level 2
Dec 10, 2015 4:02 AM UTC

Thanks JK, bsloki and Jitendra! Really appreciate it!

Translate