Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
6.2.10
-
None
-
Empty show more show less
-
Yes
-
Yes
-
UI FW 37, UI FW 38
-
2
Description
Steps to reproduce
- Open admincentral in demo
- Open the browser debugger tools to check the network activity
- Open assets app and expand tours folder
- Check generated URLs
Expected results
URL to thumbnails should contain a valid format
Actual results
Extension is incorrectly processed and result is an URL containing two consecutive dots
Workaround
Set extension: jpg instead of default .jpg in the preview definition.
Development notes
// Crafting link manually; // ImagingSupport should eventually create the link but it only supports the original variation so far // manual: /.imaging/thumbnail/dam/374f8dbe-a8d7-4829-b9e7-3386a5ecb58f/blindtiger.png.jpg // imaging: /.imaging/default/dam/blindtiger.png/jcr:content.png String imagePath = Text.escapePath(contextPath + "/" + preview.getServletPath() + "/" + generator + "/" + node.getSession().getWorkspace().getName() + "/" + imageNode.getIdentifier() + "/" + imageName + "." + preview.getExtension()); // Add cache fingerprint so that browser caches asset only until asset is modified. Calendar lastModified = getLastModified(node); imagePath = LinkUtil.addFingerprintToLink(imagePath, lastModified);
Checklists
Acceptance criteria
Attachments
Issue Links
- to be documented by
-
MGNLUI-6911 DOC: Update JCR preview definition
-
- Closed
-