Program: 47488
Project: 47488
Buggy source:
public void importFile(IPlatformImportBundle bnd) throws PlatformImportException {
  if (bnd instanceof RepositoryFileImportBundle == false) {
    throw new PlatformImportException("String_Node_Str");
  }
  RepositoryFileImportBundle bundle=(RepositoryFileImportBundle)bnd;
  String repositoryFilePath=RepositoryFilenameUtils.concat(bundle.getPath(),bundle.getName());
  getLogger().trace("String_Node_Str" + repositoryFilePath + "String_Node_Str");
  final RepositoryFile file=repository.getFile(repositoryFilePath);
  if (file != null) {
    if (bundle.overwriteInRepossitory()) {
      if (!file.isFolder()) {
        copyFileToRepository(bundle,repositoryFilePath,file);
      }
 else {
        getLogger().trace("String_Node_Str" + repositoryFilePath + "String_Node_Str");
        if (bundle.getAcl() != null) {
          updateAclFromBundle(false,bundle,file);
        }
      }
    }
  }
 else {
    if (bundle.isFolder()) {
      getLogger().trace("String_Node_Str" + repositoryFilePath + "String_Node_Str");
      final Serializable parentId=getParentId(repositoryFilePath);
      if (bundle.getAcl() != null) {
        RepositoryFile repositoryFile=repository.createFolder(parentId,bundle.getFile(),bundle.getAcl(),null);
        updateAclFromBundle(true,bundle,repositoryFile);
      }
 else {
        repository.createFolder(parentId,bundle.getFile(),null);
      }
    }
 else {
      getLogger().trace("String_Node_Str" + repositoryFilePath + "String_Node_Str");
      copyFileToRepository(bundle,repositoryFilePath,null);
    }
  }
}

Fixed version (ground truth):
public void importFile(IPlatformImportBundle bnd) throws PlatformImportException {
  if (bnd instanceof RepositoryFileImportBundle == false) {
    throw new PlatformImportException("String_Node_Str");
  }
  RepositoryFileImportBundle bundle=(RepositoryFileImportBundle)bnd;
  String repositoryFilePath=RepositoryFilenameUtils.concat(bundle.getPath(),bundle.getName());
  getLogger().trace("String_Node_Str" + repositoryFilePath + "String_Node_Str");
  final RepositoryFile file=repository.getFile(repositoryFilePath);
  if (file != null) {
    if (bundle.overwriteInRepossitory()) {
      if (!file.isFolder()) {
        copyFileToRepository(bundle,repositoryFilePath,file);
      }
 else {
        getLogger().trace("String_Node_Str" + repositoryFilePath + "String_Node_Str");
        if (bundle.getAcl() != null) {
          updateAclFromBundle(false,bundle,file);
        }
      }
    }
 else {
      getLogger().trace("String_Node_Str" + repositoryFilePath + "String_Node_Str");
    }
  }
 else {
    if (bundle.isFolder()) {
      getLogger().trace("String_Node_Str" + repositoryFilePath + "String_Node_Str");
      final Serializable parentId=getParentId(repositoryFilePath);
      if (bundle.getAcl() != null) {
        RepositoryFile repositoryFile=repository.createFolder(parentId,bundle.getFile(),bundle.getAcl(),null);
        updateAclFromBundle(true,bundle,repositoryFile);
      }
 else {
        repository.createFolder(parentId,bundle.getFile(),null);
      }
    }
 else {
      getLogger().trace("String_Node_Str" + repositoryFilePath + "String_Node_Str");
      copyFileToRepository(bundle,repositoryFilePath,null);
    }
  }
}