mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix ALF-2774: Atompub createDocument with versioningState=checkedout followed by checkin does not create major version
Fix ALF-2782: AtomPub binding incorrectly handles atom:title when no value is provided (often done for compliant atom entry) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20190 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -998,6 +998,13 @@ public class CMISServicesImpl implements CMISServices, ApplicationContextAware,
|
||||
return source;
|
||||
case CHECKED_OUT:
|
||||
validateVersionable(source);
|
||||
if (this.nodeService.hasAspect(source, ContentModel.ASPECT_VERSIONABLE) == false)
|
||||
{
|
||||
Map<QName, Serializable> props = new HashMap<QName, Serializable>();
|
||||
props.put(ContentModel.PROP_INITIAL_VERSION, false);
|
||||
props.put(ContentModel.PROP_AUTO_VERSION, false);
|
||||
this.nodeService.addAspect(source, ContentModel.ASPECT_VERSIONABLE, props);
|
||||
}
|
||||
return this.checkOutCheckInService.checkout(source);
|
||||
default:
|
||||
validateVersionable(source);
|
||||
|
Reference in New Issue
Block a user