Merged HEAD-BUG-FIX (Cloud33/4.3) to HEAD (Cloud33/4.3)

62919: Merged PLATFORM1 (Cloud33) to HEAD-BUG-FIX (Cloud33/4.3)
      62510: ACE-33 - fix for unit test


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62974 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-02-20 14:36:47 +00:00
parent 2e25d15ed1
commit 4e6a415eb2

View File

@@ -1238,6 +1238,20 @@ public class FileFolderServiceImpl extends AbstractBaseCopyService implements Fi
Map<QName, Serializable> properties = new HashMap<QName, Serializable>(11);
properties.put(ContentModel.PROP_NAME, (Serializable) name);
// Check the type is valid for file/folder service
FileFolderServiceType type = getType(typeQName);
switch (type)
{
case SYSTEM_FOLDER:
throw new InvalidTypeException("System Folders are not handled by this service :" + typeQName);
case INVALID:
throw new InvalidTypeException("Type is not handled by this service: " + typeQName);
case FILE:
case FOLDER:
default:
}
// create the node
if (assocQName == null)
{