bug on vre folder displayName on folder containing - in the name solved
This commit is contained in:
parent
0711d8a702
commit
2033af4572
|
@ -510,15 +510,15 @@ public class GroupManager {
|
|||
|
||||
String name = groupId;
|
||||
|
||||
String title = groupId.substring(groupId.lastIndexOf("-")+1);
|
||||
String displayName = groupId.replaceAll("[^\\-]*\\-[^\\-]*\\-(.*)", "$1");
|
||||
|
||||
log.info("creating vreFolder with name {} and title {} and owner {}", name, title, owner);
|
||||
log.info("creating vreFolder with name {} and title {} and owner {}", name, displayName, owner);
|
||||
|
||||
Node folder= Utils.createFolderInternally(session, sharedRootNode, name, "VREFolder for "+groupId, false, owner, null);
|
||||
folder.setPrimaryType(PrimaryNodeType.NT_WORKSPACE_SHARED_FOLDER);
|
||||
folder.setProperty(NodeProperty.IS_VRE_FOLDER.toString(), true);
|
||||
folder.setProperty(NodeProperty.TITLE.toString(), name);
|
||||
folder.setProperty(NodeProperty.DISPLAY_NAME.toString(), title);
|
||||
folder.setProperty(NodeProperty.DISPLAY_NAME.toString(), displayName);
|
||||
session.save();
|
||||
|
||||
AccessControlManager acm = session.getAccessControlManager();
|
||||
|
|
Loading…
Reference in New Issue