Hi,
I want to use a listener to delete automaticaly old archived version (autoversionning is activated) which do not have a comment when a user increment the version. Unfortunately, the method getDescription() of VersionModel always returns a null String :
DocumentRef docRef = model.getRef();
CoreSession session = model.getCoreSession();
List<VersionModel> versions = session.getVersionsForDocument(docRef);
for (VersionModel currentVersion : versions) {
String desc = currentVersion.getDescription();
//desc is always null
...
}
Is this the good way to do or is this a bug ?
Thanks.