mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
URL link now appears in the CIFS root folder, desktop actions are not shown in the root folder. Fix for AR-1042.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5036 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -154,9 +154,9 @@ public class PseudoFileImpl implements PseudoFileInterface
|
||||
|
||||
boolean isCIFS = sess instanceof SMBSrvSession;
|
||||
|
||||
// Add the desktop action pseudo files
|
||||
// Add the desktop action pseudo files, except to the root folder
|
||||
|
||||
if ( isCIFS && ctx.numberOfDesktopActions() > 0)
|
||||
if ( isCIFS && ctx.numberOfDesktopActions() > 0 && path.equals(FileName.DOS_SEPERATOR_STR) == false)
|
||||
{
|
||||
// If the file state is null create a file state for the path
|
||||
|
||||
|
@@ -545,8 +545,8 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
|
||||
ContentContext ctx = (ContentContext) tree.getContext();
|
||||
NodeRef infoParentNodeRef = ctx.getRootNode();
|
||||
|
||||
if ( path == null)
|
||||
path = "";
|
||||
if ( path == null || path.length() == 0)
|
||||
path = FileName.DOS_SEPERATOR_STR;
|
||||
|
||||
String infoPath = path;
|
||||
|
||||
@@ -776,7 +776,7 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
|
||||
{
|
||||
// See if the folder to be searched has a file state, we can avoid having to walk the path
|
||||
|
||||
if ( paths[0] != null && paths[0].length() > 1)
|
||||
if ( paths[0] != null && paths[0].length() >= 1)
|
||||
{
|
||||
// Find the node ref for the folder being searched
|
||||
|
||||
|
Reference in New Issue
Block a user