[ https://issues.apache.org/jira/browse/CMIS-1017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15905657#comment-15905657 ]
Florian Müller commented on CMIS-1017: -------------------------------------- I cannot reproduce this with the OpenCMIS InMemory repository. When I execute your code snippet I get this: {noformat} "Name","Label","Latest","Major","Latest Major","Id","Filename","MIME Type","Length" "vers","2.0",true,true,true,"138","vers","application/octet-stream",0 "vers","1.0",false,true,false,"137","vers","application/octet-stream",0 {noformat} It also seems to work fine against Alfresco 5.2 (at cmis.alfresco.com): {noformat} "Name","Label","Latest","Major","Latest Major","Id","Filename","MIME Type","Length" "test.txt","2.0",true,true,true,"2efbda9f-6177-48ee-b742-467e2c745893;2.0","test.txt","text/plain",0 "test.txt","1.0",false,true,false,"2efbda9f-6177-48ee-b742-467e2c745893;1.0","test.txt","text/plain",0 {noformat} This seems to be an Alfresco 4 issue. > CheckIn functionality (with major flag = true) does not set new version's > major flag to true > -------------------------------------------------------------------------------------------- > > Key: CMIS-1017 > URL: https://issues.apache.org/jira/browse/CMIS-1017 > Project: Chemistry > Issue Type: Bug > Components: opencmis-client, opencmis-workbench > Affects Versions: OpenCMIS 0.14.0 > Environment: Java 6, Window 7 64 bit, Alfresco Enterprise 4.2.3 with > CMIS version 1.1 > Reporter: Justin Kim > > After checking out document, I tried checking in document with following > codes: > ObjectId oi = doc.checkOut(); > Document pwc = (Document) session.getObject(oi); > ObjectId oi2 = pwc.checkIn(true, null, doc.getContentStream(), "ver 2"); > My expectation (for new versioned document) is as follow: > Is Latest - true > Is Major - true > Is Latest Major - true > Actual is as follow: > Is Latest - true > Is Major - false > Is Latest Major - false -- This message was sent by Atlassian JIRA (v6.3.15#6346)