AnsweredAssumed Answered

CMIS - Folder creation with namespace

Question asked by iv0id on Jun 12, 2014
Latest reply on Jun 13, 2014 by kaynezhang
Hi everyone,

After upgrading alfresco environment from 3.4.d to 4.0.e if i create a folder with this code :

Folder rootFolder = getSession().getRootFolder();
Map<String, Object> lFolderProps = new HashMap<String, Object>();
lFolderProps.put(PropertyIds.NAME, "folder test");
lFolderProps.put(PropertyIds.OBJECT_TYPE_ID, "F:test:folder");

where "F:test:folder" is a folder type that i created :

<type name="test:folder">
    <title>Test type folder</title>

this query returns empty result even though there is some documents inside the folder :
 SELECT * FROM cmis:document D WHERE CONTAINS(D,'PATH:"/app:company_home/test:folder_x0020_test//*"') 

But if i change "test" with "cm" the results are shown.

Thank you.