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

Tag Title rendering - Publish server on 6.1

Rajy
Level 2
Level 2

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
1 Accepted Solution
JK_Kendall
Correct answer by
Level 8
Level 8

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

View solution in original post

4 Replies
JK_Kendall
Correct answer by
Level 8
Level 8

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

View solution in original post

Lokesh_Shivalingaiah
Community Advisor
Community Advisor

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

Jitendra_S_Toma
Level 9
Level 9

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

Rajy
Level 2
Level 2

Thanks JK, bsloki and Jitendra! Really appreciate it!