From f48e53177645bf156a9f663bc980078d0b167a15 Mon Sep 17 00:00:00 2001 From: shekhar16 Date: Fri, 15 Jul 2022 00:13:01 +0530 Subject: [PATCH] fix: fix for display name --- .../document/store/provider/DBDocumentStoreProvider.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core-document-store/src/main/java/org/gluu/service/document/store/provider/DBDocumentStoreProvider.java b/core-document-store/src/main/java/org/gluu/service/document/store/provider/DBDocumentStoreProvider.java index 287ce5c1..b81fa456 100644 --- a/core-document-store/src/main/java/org/gluu/service/document/store/provider/DBDocumentStoreProvider.java +++ b/core-document-store/src/main/java/org/gluu/service/document/store/provider/DBDocumentStoreProvider.java @@ -92,7 +92,7 @@ public boolean saveDocument(String name, String documentContent, Charset charset oxDocument.setInum(documentService.generateInumForNewOxDocument()); String dn = "inum="+ oxDocument.getInum() +",ou=document,o=gluu"; oxDocument.setDn(dn); - oxDocument.setDescription("Testing the document saving"); + oxDocument.setDescription(name); oxDocument.setOxEnabled("true"); oxDocument.setOxModuleProperty("oxtrusr server"); documentService.addOxDocument(oxDocument); @@ -121,8 +121,7 @@ public boolean saveDocumentStream(String name, InputStream documentStream) { oxDocument.setInum(inum); String dn = "inum="+ oxDocument.getInum() +",ou=document,o=gluu"; oxDocument.setDn(dn); - oxDocument.setDisplayName("Test"); - oxDocument.setDescription("Testing the document saving"); + oxDocument.setDescription(name); oxDocument.setOxEnabled("true"); oxDocument.setOxModuleProperty("oxtrusr server"); documentService.addOxDocument(oxDocument);