Tag Title rendering - Publish server on 6.1 | Adobe Higher Education
Skip to main content
Level 2
December 10, 2015
Besvarat

Tag Title rendering - Publish server on 6.1

  • December 10, 2015
  • 4 svar
  • 1438 visningar

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
Det här ämnet har stängts för svar.
Bästa svar av JK_Kendall

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 svar

JK_Kendall
Level 9
December 10, 2015

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

Lokesh_Shivalingaiah
Level 10
December 10, 2015

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 10
December 10, 2015

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

RajySkribent
Level 2
December 10, 2015

Thanks JK, bsloki and Jitendra! Really appreciate it!