Issue 12 in alfresco-opencmis-extension: cm:title and cm:description not saved

105 views
Skip to first unread message

alfresco-opencmis-exte...@codespot.com

unread,
Sep 17, 2014, 1:07:17 PM9/17/14
to alfresco-open...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 12 by oliver.g...@gmail.com: cm:title and cm:description not saved
https://code.google.com/a/apache-extras.org/p/alfresco-opencmis-extension/issues/detail?id=12

What steps will reproduce the problem?
Juste execute the code in attachments.
I expect to have cm:title and cm:description saved to the document of type
MY:custom_document.
Whereas My:cdEan and MY:refSupport are saved correctly.


What is the expected output? What do you see instead?
I expect to add cmis:title in my document after saved it.


What version of the product are you using? On what operating system?
Afresco community 4.2
org.alfresco.cmis.client:alfresco-opencmis-extension:1.0
org.apache.chemistry.opencmis:chemistry-opencmis-client-impl:0.11.0




Attachments:
cmis example.txt 1.8 KB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/a/apache-extras.org/hosting/settings

alfresco-opencmis-exte...@codespot.com

unread,
Sep 17, 2014, 1:20:48 PM9/17/14
to alfresco-open...@googlegroups.com

Comment #1 on issue 12 by oliver.g...@gmail.com: cm:title and
It doesn't work for cmis:document instead of MY:custom_document

alfresco-opencmis-exte...@codespot.com

unread,
Sep 18, 2014, 6:33:05 AM9/18/14
to alfresco-open...@googlegroups.com

Comment #2 on issue 12 by oliver.g...@gmail.com: cm:title and
Ok, I found a solution :
NOT using this extension : alfresco-opencmis-extension

the answer is found here :
https://forums.alfresco.com/forum/developer-discussions/alfresco-api/alfresco-cmis-11-compliant-12132013-1009

1. upgraded to 4.2.e
2. Removed the OpenCMIS Extension and I am using the plain
org.apache.chemistry.opencmis.client.api
3. I am using the /public/cmis/versions/1.1/atom url
4. use the
org.apache.chemistry.opencmis:chemistry-opencmis-client-impl:0.12.0

Use this code to add aspects :

HashMap<String, Object> props = new HashMap<String, Object>();
props.put("cmis:objectTypeId", "cmis:folder");
ArrayList<String> secIds = new ArrayList<String>();
secIds.add("P:cm:titled");
props.put("cmis:secondaryObjectTypeIds", secIds);
props.put("cmis:name", "test");
props.put("cm:description", "test description");
folder = cmisSession.getRootFolder().createFolder(props);
Reply all
Reply to author
Forward
0 new messages