Issue 10 in alfresco-opencmis-extension: Copy fails when run against Alfresco 4.2.e and CMIS 1.0 AtomPub

183 views
Skip to first unread message

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

unread,
Mar 4, 2014, 10:57:18 AM3/4/14
to alfresco-open...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 10 by jeff.po...@alfresco.com: Copy fails when run against
Alfresco 4.2.e and CMIS 1.0 AtomPub
http://code.google.com/a/apache-extras.org/p/alfresco-opencmis-extension/issues/detail?id=10

What steps will reproduce the problem?
1. Create a document and add one or more custom aspects to the document.
2. Set one or more properties defined on those custom aspects.
3. Get a CMIS session, making sure to use the OpenCMIS extension.
4. Call the copy method on AlfrescoDocument to copy the document you
created in step 1 to a folder.

What is the expected output? What do you see instead?
Expected output is that the copy succeeds. Instead you will get:
Exception in thread "main" java.lang.IllegalArgumentException:
Property 'sc:isActive' is neither an object type property nor an aspect
property!
at
org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl.convertProperties(AlfrescoObjectFactoryImpl.java:191)
at
org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:751)
at
org.apache.chemistry.opencmis.client.runtime.DocumentImpl.copyViaClient(DocumentImpl.java:207)
at
org.apache.chemistry.opencmis.client.runtime.DocumentImpl.copy(DocumentImpl.java:155)
at
org.apache.chemistry.opencmis.client.runtime.DocumentImpl.copy(DocumentImpl.java:172)
at
com.alfresco.cmis.example.CmisCopyExample.doExample(CmisCopyExample.java:27)
at com.alfresco.cmis.example.CmisCopyExample.main(CmisCopyExample.java:18)

What version of the product are you using? On what operating system?
OpenCMIS Extension 0.7 with OpenCMIS 0.10.0 on Alfresco 4.2.e using both
the new "Public API" AtomPub 1.0 service URL and the old /cmisatom AtomPub
1.0 service URL.



--
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 11, 2014, 5:59:07 AM9/11/14
to alfresco-open...@googlegroups.com

Comment #1 on issue 10 by tahir.ma...@contezza.nl: Copy fails when run
against Alfresco 4.2.e and CMIS 1.0 AtomPub
https://code.google.com/a/apache-extras.org/p/alfresco-opencmis-extension/issues/detail?id=10

I have the same issue, is this fixed? or any progress on it?

The problem is probably that you can't add properties of an aspect without
adding the aspect first.

So the same issue exists in OpenCMIS Extension 0.12.
Reply all
Reply to author
Forward
0 new messages