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:
Gary Spencer
2007-02-05 14:47:26 +00:00
parent 3bb108712d
commit f1cfa53733
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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