Program: 174783
Project: 174783
Buggy source:
/** 
 * Gets information about the CMIS repository and the capabilities it supports.
 * @param parameters repositoryId: repository Id
 * @return CMIS repository Info
 * @throws PermissionDeniedException
 * @throws UpdateConflictException
 * @throws ObjectNotFoundException
 * @throws OperationNotSupportedException
 * @throws InvalidArgumentException
 * @throws RuntimeException
 * @throws ConstraintViolationException
 */
public CmisRepositoryInfoType getRepositoryInfo(GetRepositoryInfo parameters) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException {
  Descriptor serverDescriptor=descriptorService.getServerDescriptor();
  if (serverDescriptor.getId().equals(parameters.getRepositoryId()) == false) {
    throw new InvalidArgumentException("String_Node_Str");
  }
  CmisRepositoryInfoType repositoryInfoType=new CmisRepositoryInfoType();
  repositoryInfoType.setRepositoryId(serverDescriptor.getId());
  repositoryInfoType.setRepositoryName(serverDescriptor.getName());
  repositoryInfoType.setRepositoryRelationship("String_Node_Str");
  repositoryInfoType.setRepositoryDescription("String_Node_Str");
  repositoryInfoType.setRootFolderId((String)cmisPropertyService.getProperty(cmisService.getDefaultRootNodeRef(),CMISMapping.PROP_OBJECT_ID));
  repositoryInfoType.setVendorName("String_Node_Str");
  repositoryInfoType.setProductName("String_Node_Str" + serverDescriptor.getEdition() + "String_Node_Str");
  repositoryInfoType.setProductVersion(serverDescriptor.getVersion());
  CmisRepositoryCapabilitiesType capabilities=new CmisRepositoryCapabilitiesType();
  capabilities.setCapabilityMultifiling(true);
  capabilities.setCapabilityUnfiling(false);
  capabilities.setCapabilityVersionSpecificFiling(false);
  capabilities.setCapabilityPWCUpdateable(true);
  capabilities.setCapabilityAllVersionsSearchable(cmisQueryService.getAllVersionsSearchable());
  capabilities.setCapabilityJoin(joinEnumMapping.get(cmisQueryService.getJoinSupport()));
  capabilities.setCapabilityFullText(fulltextEnumMapping.get(cmisQueryService.getFullTextSearchSupport()));
  repositoryInfoType.setCapabilities(capabilities);
  repositoryInfoType.setCmisVersionsSupported(cmisService.getCMISVersion());
  return repositoryInfoType;
}

Fixed version (ground truth):
/** 
 * Gets information about the CMIS repository and the capabilities it supports.
 * @param parameters repositoryId: repository Id
 * @return CMIS repository Info
 * @throws PermissionDeniedException
 * @throws UpdateConflictException
 * @throws ObjectNotFoundException
 * @throws OperationNotSupportedException
 * @throws InvalidArgumentException
 * @throws RuntimeException
 * @throws ConstraintViolationException
 */
public CmisRepositoryInfoType getRepositoryInfo(GetRepositoryInfo parameters) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException {
  checkRepositoryId(parameters.getRepositoryId());
  Descriptor serverDescriptor=descriptorService.getCurrentRepositoryDescriptor();
  CmisRepositoryInfoType repositoryInfoType=new CmisRepositoryInfoType();
  repositoryInfoType.setRepositoryId(serverDescriptor.getId());
  repositoryInfoType.setRepositoryName(serverDescriptor.getName());
  repositoryInfoType.setRepositoryRelationship("String_Node_Str");
  repositoryInfoType.setRepositoryDescription("String_Node_Str");
  repositoryInfoType.setRootFolderId((String)cmisPropertyService.getProperty(cmisService.getDefaultRootNodeRef(),CMISMapping.PROP_OBJECT_ID));
  repositoryInfoType.setVendorName("String_Node_Str");
  repositoryInfoType.setProductName("String_Node_Str" + serverDescriptor.getEdition() + "String_Node_Str");
  repositoryInfoType.setProductVersion(serverDescriptor.getVersion());
  CmisRepositoryCapabilitiesType capabilities=new CmisRepositoryCapabilitiesType();
  capabilities.setCapabilityMultifiling(true);
  capabilities.setCapabilityUnfiling(false);
  capabilities.setCapabilityVersionSpecificFiling(false);
  capabilities.setCapabilityPWCUpdateable(true);
  capabilities.setCapabilityAllVersionsSearchable(cmisQueryService.getAllVersionsSearchable());
  capabilities.setCapabilityJoin(joinEnumMapping.get(cmisQueryService.getJoinSupport()));
  capabilities.setCapabilityFullText(fulltextEnumMapping.get(cmisQueryService.getFullTextSearchSupport()));
  repositoryInfoType.setCapabilities(capabilities);
  repositoryInfoType.setCmisVersionsSupported(cmisService.getCMISVersion());
  return repositoryInfoType;
}