Disabling "Disable Rewriting" in "Day CQ Link Checker Transformer" config causing  thumbnail issue | Community
Skip to main content
saibul
New Participant
July 16, 2020
Solved

Disabling "Disable Rewriting" in "Day CQ Link Checker Transformer" config causing  thumbnail issue

  • July 16, 2020
  • 2 replies
  • 2174 views

OS: RHEL 7.6 (Maipo)
Server: AEM-6.5.1 SP-6.5.1
Oak: 1.10.2
Dispatcher: build 4.2.3/apache2.4-linux-x86-64

 

 

I just disabled the disableRewriting disableChecking  by setting value to true. After setting this property the importing thumbnail image in page properties stopped working. 

 

 

# Configuration created by Apache Sling JCR Installer
linkcheckertransformer.strictExtensionCheck=B"false"
linkcheckertransformer.rewriteElements=["a:href","area:href","form:action","img:src","link:href","script:src"]
linkcheckertransformer.stripExtensionPathBlacklist=[""]
linkcheckertransformer.disableRewriting=B"true"
linkcheckertransformer.disableChecking=B"false"
linkcheckertransformer.stripHtmltExtension=B"false"
linkcheckertransformer.mapCacheSize=I"5000"

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 vanegi

I test the use case locally, but unable to recreate the same. To the best of my knowledge, I don't think disabling rewriting/checking can cause this issue with thumbnail. Can you upload a new asset into DAM, and see if it generates the thumbnail fine? What errors do you see in AEM error.log file for this time frame? 

2 replies

saibul
saibulAuthor
New Participant
August 6, 2020

Adobe confirmed that it is a bug and they replied the below in the support ticket.


After I discussed this issue internally, I came to know that there is already a bug created for the engineering team until the engineering team fix this issue, here is the workaround team shared with me which I tested myself:

 

1. To prevent this issue happening till we get fix from engineering
- Overlay or modify /libs/cq/gui/components/siteadmin/admin/properties/form/form.jsp to not escape the action. Have [B] instead of [A].

2. For thumbnail already uploaded
- Write a small script to move from <pagepath>/jcr:content/image/file.sftmp to <pagepath>/jcr:content/image/file

[A]
vm.put("action", Text.escapePath(contentPath));
[B]
vm.put("action", contentPath);

vanegi
vanegiAccepted solution
Employee
July 16, 2020

I test the use case locally, but unable to recreate the same. To the best of my knowledge, I don't think disabling rewriting/checking can cause this issue with thumbnail. Can you upload a new asset into DAM, and see if it generates the thumbnail fine? What errors do you see in AEM error.log file for this time frame? 

saibul
saibulAuthor
New Participant
July 17, 2020

Could you Upload Image in Thumbnail tab of page properties screen? after making true/false in linkcheckertransformer.disableRewriting property in said config.