mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Resolve ALF-4522: Accessing document via /alfresco/service/api/path doesn't work - "Company Home" token is duplicated
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22073 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -45,7 +45,8 @@ public class ObjectPathReference extends AbstractObjectReference
|
||||
{
|
||||
super(cmisServices, repo);
|
||||
this.path = path.startsWith("/") ? path : "/" + path;
|
||||
this.path = (!cmisServices.getDefaultRootPath().equals("/")) ? cmisServices.getDefaultRootPath() + this.path : this.path;
|
||||
this.path = (cmisServices.getDefaultRootPath().equals("/") || this.path.startsWith(cmisServices.getDefaultRootPath())) ?
|
||||
this.path : cmisServices.getDefaultRootPath() + this.path;
|
||||
String[] splitPath = this.path.split("/");
|
||||
String[] pathSegments = new String[splitPath.length -1];
|
||||
System.arraycopy(splitPath, 1, pathSegments, 0, splitPath.length -1);
|
||||
|
Reference in New Issue
Block a user