document-management-system icon indicating copy to clipboard operation
document-management-system copied to clipboard

CmisRepository version label wrongly returns filename instead of actualVersion

Open rohitmp opened this issue 2 years ago • 1 comments

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

rohitmp avatar Apr 16 '22 14:04 rohitmp

@gnujavasergio Take in consideration only the documents have version, in the case of folders etc.. .should always set 1.0 by default

darkman97i avatar Apr 19 '22 06:04 darkman97i