checkin change modifier of old version

cancel
Showing results for 
Search instead for 
Did you mean: 
Member II

checkin change modifier of old version

Hello everyone!

I'm using org.apache.chemistry.opencmis.client.api.Document to create a new version of a file.

Here is my code

doc.refresh();
ObjectId idOfCheckedOutDocument = doc.checkOut();
Document privateWorkingCopy = (Document) getCmisSession().getObject(idOfCheckedOutDocument, op);
ObjectId objectId = privateWorkingCopy.checkIn(isMajor, null, contentStream, rev);
doc = (Document) session.getObject(objectId);

The new version has been correctly created but the cm:modifier of the old version has been changed with the same user that create the newer.

Why??? How can I maintain the original modifier in the old version?