Need to update parent record id validation for legal tag
Currently, parent validation is based on the old concept of allowing only 3 components for record ID, then adding the version number, therefore it is only expecting 4 components:
if (tokens.length != 4) {
String msg = String.format(ValidationDoc.INVALID_PARENT_RECORD_ID_FORMAT, parent);
Instead, it should be checking for valid record ID and record ID with version.
if (!recordId.matches(ValidationDoc.RECORD_ID_REGEX) && !recordId.matches(ValidationDoc.RECORD_ID_WITH_VERSION_REGEX))
Edited by Yauheni Lesnikau