cancel
Showing results for 
Search instead for 
Did you mean: 

Creating document without version via CMIS

mr_t
Champ in-the-making
Champ in-the-making
Hi,

This may be a duplicated question but since I have not found the answer, if anyone have the answer or can point me to the topic with the  answer that I'm looking for, Im greatly appreciated.

I have tried to send CMIS requests to create a document using AtomPub as well as WebServices. The results were different were inconsistent as in the table below:

|         Web services                     |                                AtomPub                                   |
| w/o versionable     | w/ versionable      | w/o versionable                          | w/ versionable                           |
| Version 1.0 created | Version 0.1 created | Error: This document type is versionable | Error: This document type is versionable |


I'm puzzled that via AtomPub connection without versionable set on the Alfresco, it fails. But using WebServices it works but sets version 1.0.

What would be the correct behaviour?
I was expecting both connections have same behavior but obviously not. And if versionable is not set, the document should get created without version, but it's not.
I'm currently using Alfresco Enterprise v4.1.5. Should a newer version work as expected manner?

I'd greatly appreciated if anyone can shed a light on this.
Thank you in advance.

2 REPLIES 2

mrogers
Star Contributor
Star Contributor
IIRC. Cmis specifies documents are versioned.   That should be for all bindings.

mr_t
Champ in-the-making
Champ in-the-making
mrogers, thank you for your reply.

Do you suggest that we should avoid sending requests for creating document without version to Alfresco servers, or are the behaviors using those bindings as expected even those they are not consistent?

Additionally, does Alfresco support creating a document without version? This is because that specifying versionable does not eem to have any effect at least with the version I'm using.

Thank you.