Faced an error when saving tag fields an image property after applying the AEM 6.5.13 update package. | Community
Skip to main content
aliaksandr_hvoz
Level 2
August 31, 2022
Solved

Faced an error when saving tag fields an image property after applying the AEM 6.5.13 update package.

  • August 31, 2022
  • 1 reply
  • 1485 views

Hello.

I ran into a problem that after accepting the 6.5.13 service pack, I encounter an error when saving changes to the tags in the image properties.

 

After research, I found that a change was made to the render for the field tag.

In AEM SP 6.5.12

for (String value : values) { com.day.cq.tagging.Tag cqTag = tagManager.resolve(value); String text; if (cqTag != null) { text = cqTag.getTitlePath(request.getLocale()); %><coral-tag multiline value="<%= xssAPI.encodeForHTMLAttr(value) %>"><%= xssAPI.encodeForHTML(text) %></coral-tag><% } }

In AEM SP 6.5.13

for (String value : values) { com.day.cq.tagging.Tag cqTag = tagManager.resolve(value); String text; if (cqTag != null) { text = cqTag.getTitlePath(request.getLocale()); %><coral-tag multiline value="<%= xssAPI.encodeForHTMLAttr(value) %>"><%= xssAPI.encodeForHTML(text) %></coral-tag><% } else { %><coral-tag multiline value="<%= xssAPI.encodeForHTMLAttr(value) %>" style="display:none;"></coral-tag><% } }

I use tag:

<someTag cq:showOnCreate="{Boolean}true" jcr:primaryType="nt:unstructured" sling:resourceType="cq/gui/components/coral/common/form/tagfield" fieldLabel="Some Tag" metaType="tags" allowCreate="{Boolean}true" cq-msm-lockable="cq:tags" multiple="{Boolean}false" name="./jcr:content/metadata/someTags" rootPath="/etc/tags/SomeTags"/>

 

Can you please tell me how to fix this situation besides override render.jsp in tag field by path /libs/cq/gui/components/coral/common/form/tagfield/render.jsp?

 

Thank you.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sachin_Arora_

This message appears due to the fact that the entered data is created under /etc/tags and not in the image metadata under /jcr:content. With the rights everything is fine, I'm as an administrator.


Please check "Map to property" field in Schema of that property. It should be something like ./jcr:content/metadata/propertyName.

 

1 reply

Sachin_Arora_
Community Advisor
Community Advisor
September 1, 2022

Please confirm by Image properties you mean Asset Properties? 

I tried same in 6.5.13 on one of the we-retail Assets and I am not facing this issue.

 

aliaksandr_hvoz
Level 2
September 1, 2022

Yes. Its assets properties. I use extra tag property.

Sachin_Arora_
Community Advisor
Community Advisor
September 1, 2022

I updated schema to add a new tag field and that too is working fine. Please try in vanilla instance once, it should work fine.