Skip to content

Commit 77304a7

Browse files
committed
fix : In rest service getFoldersAndFiles, name have the same value than title - EXO-79569
Before this fix, the rest service getFoldersAndFiles return an xml object representing a file. If the title have capital letters, and the filename have not, the propery name and title, are the same, both with capital letters This fix ensure to use the file name in the property name
1 parent 21e8208 commit 77304a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/viewer/src/main/java/org/exoplatform/ecm/connector/platform/ManageDocumentService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ private Element createFileElement(Document document,
595595
AutoVersionService autoVersionService=WCMCoreUtils.getService(AutoVersionService.class);
596596
boolean canRemove = true;
597597
String sourcePath = sourceNode.getPath();
598-
file.setAttribute("name", Utils.getTitle(displayNode));
598+
file.setAttribute("name", displayNode.getName());
599599
file.setAttribute("title", Utils.getTitle(displayNode));
600600
file.setAttribute("workspaceName", workspaceName);
601601
file.setAttribute("id", sourceNode.getUUID());

0 commit comments

Comments
 (0)