Current behavior: The CmisRepository for a document node return the node path name. ( e.g my_resume.pdf )
Expected it should return the version number 1.2 or 4.0 etc.
Rootcause/fix
the bug lies in CmisRepository.java where the node pathName is being set
addPropertyString(result, typeId, filter, PropertyIds.VERSION_LABEL, PathUtils.getName(node.getPath()));
where as it should have been
addPropertyString(result, typeId, filter, PropertyIds.VERSION_LABEL, doc.getActualVersion().getName());
Current behavior: The CmisRepository for a document node return the node path name. ( e.g my_resume.pdf ) Expected it should return the version number 1.2 or 4.0 etc.
Rootcause/fix
the bug lies in CmisRepository.java where the node pathName is being set addPropertyString(result, typeId, filter, PropertyIds.VERSION_LABEL, PathUtils.getName(node.getPath()));
where as it should have been addPropertyString(result, typeId, filter, PropertyIds.VERSION_LABEL, doc.getActualVersion().getName());