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

saibul

16-07-2020

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"

Accepted Solutions (1)

Accepted Solutions (1)

vanegi

Employee

16-07-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? 

Answers (1)

Answers (1)

saibul

06-08-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);