mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
57053: Merged V4.2-BUG-FIX (4.2.1) to HEAD-BUG-FIX (Cloud/4.3) 56520: Merged HEAD-BUG-FIX to V4.2-BUG-FIX (4.2.1) 56403: Various format fixes made during investigations e.g. ALF-20221 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@61687 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -401,7 +401,7 @@ public class FileFolderServiceImpl extends AbstractBaseCopyService implements Fi
|
||||
{
|
||||
return totalCount;
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
@@ -560,9 +560,9 @@ public class FileFolderServiceImpl extends AbstractBaseCopyService implements Fi
|
||||
|
||||
public NodeRef searchSimple(NodeRef contextNodeRef, String name)
|
||||
{
|
||||
ParameterCheck.mandatory("name", name);
|
||||
ParameterCheck.mandatory("contextNodeRef", contextNodeRef);
|
||||
|
||||
ParameterCheck.mandatory("name", name);
|
||||
ParameterCheck.mandatory("contextNodeRef", contextNodeRef);
|
||||
|
||||
NodeRef childNodeRef = nodeService.getChildByName(contextNodeRef, ContentModel.ASSOC_CONTAINS, name);
|
||||
if (logger.isTraceEnabled())
|
||||
{
|
||||
@@ -1009,15 +1009,15 @@ public class FileFolderServiceImpl extends AbstractBaseCopyService implements Fi
|
||||
{
|
||||
if (dictionaryService.isSubClass(targetParentType, ContentModel.TYPE_FOLDER))
|
||||
{
|
||||
assocTypeQname = ContentModel.ASSOC_CONTAINS; // cm:folder -> cm:contains
|
||||
assocTypeQname = ContentModel.ASSOC_CONTAINS; // cm:folder -> cm:contains
|
||||
}
|
||||
else if (dictionaryService.isSubClass(targetParentType, ContentModel.TYPE_CONTAINER))
|
||||
{
|
||||
assocTypeQname = ContentModel.ASSOC_CHILDREN; // sys:container -> sys:children
|
||||
assocTypeQname = ContentModel.ASSOC_CHILDREN; // sys:container -> sys:children
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new InvalidTypeException("Unexpected type (" + targetParentType + ") for target parent: " + targetParentRef);
|
||||
throw new InvalidTypeException("Unexpected type (" + targetParentType + ") for target parent: " + targetParentRef);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1126,10 +1126,10 @@ public class FileFolderServiceImpl extends AbstractBaseCopyService implements Fi
|
||||
final ContentReader reader = contentService.getReader(targetNodeRef, ContentModel.PROP_CONTENT);
|
||||
String newMimetype = mimetypeService.guessMimetype(newName, reader);
|
||||
if (!targetMimetype.equalsIgnoreCase(newMimetype))
|
||||
{
|
||||
{
|
||||
contentData = ContentData.setMimetype(contentData, newMimetype);
|
||||
nodeService.setProperty(targetNodeRef, ContentModel.PROP_CONTENT, contentData);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (DuplicateChildNodeNameException e)
|
||||
|
Reference in New Issue
Block a user