diff --git a/documents-storage-jcr/src/main/java/org/exoplatform/documents/storage/jcr/util/JCRDocumentsUtil.java b/documents-storage-jcr/src/main/java/org/exoplatform/documents/storage/jcr/util/JCRDocumentsUtil.java index e79b916eb..8c6c93a34 100644 --- a/documents-storage-jcr/src/main/java/org/exoplatform/documents/storage/jcr/util/JCRDocumentsUtil.java +++ b/documents-storage-jcr/src/main/java/org/exoplatform/documents/storage/jcr/util/JCRDocumentsUtil.java @@ -966,6 +966,14 @@ public static void createFile(Node node, if (node == null) { return; } + if (node.isNodeType(NodeTypeConstants.EXO_SYMLINK)) { + String sourceID = node.getProperty(NodeTypeConstants.EXO_SYMLINK_UUID).getString(); + Node sourceNode = getNodeByIdentifier(node.getSession(), sourceID); + if (sourceNode != null) { + createFile(sourceNode, getPathWithTitles(node), getPathWithTitles(sourceNode), tempFolderPath, parentNode); + } + return; + } Node jrcNode = node.getNode("jcr:content"); InputStream inputStream = jrcNode.getProperty("jcr:data").getStream(); String path = "";