mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix an edge case when a CIFS path can not be bult due to permission settings.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3370 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -398,11 +398,19 @@ public class NavigationBean
|
|||||||
{
|
{
|
||||||
ContentContext contentCtx = (ContentContext) diskShare.getContext();
|
ContentContext contentCtx = (ContentContext) diskShare.getContext();
|
||||||
NodeRef rootNode = contentCtx.getRootNode();
|
NodeRef rootNode = contentCtx.getRootNode();
|
||||||
|
try
|
||||||
|
{
|
||||||
String cifsPath = Repository.getNamePath(this.nodeService, path, rootNode, "\\", "file:///" + getCIFSServerPath(diskShare));
|
String cifsPath = Repository.getNamePath(this.nodeService, path, rootNode, "\\", "file:///" + getCIFSServerPath(diskShare));
|
||||||
|
|
||||||
node.getProperties().put("cifsPath", cifsPath);
|
node.getProperties().put("cifsPath", cifsPath);
|
||||||
node.getProperties().put("cifsPathLabel", cifsPath.substring(8)); // strip file:/// part
|
node.getProperties().put("cifsPathLabel", cifsPath.substring(8)); // strip file:/// part
|
||||||
}
|
}
|
||||||
|
catch(AccessDeniedException ade)
|
||||||
|
{
|
||||||
|
node.getProperties().put("cifsPath", "");
|
||||||
|
node.getProperties().put("cifsPathLabel",""); // strip file:/// part
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.currentNode = node;
|
this.currentNode = node;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user