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:
David Caruana
2010-05-12 10:10:01 +00:00
parent 39febbbcd8
commit a9267014d7

View File

@@ -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);