Program: 125128
Project: 125128
Buggy source:
private static void uploadProcess(IProcess2 process,String unzipDir) throws OozieJobDeployException {
  String appPathOnHDFSParent=(String)process.getElementParameter("String_Node_Str").getValue();
  org.apache.hadoop.fs.FileSystem fs=null;
  org.apache.hadoop.conf.Configuration config=new org.apache.hadoop.conf.Configuration();
  config.set("String_Node_Str",CorePlugin.getDefault().getPreferenceStore().getString(ITalendCorePrefConstants.OOZIE_SHCEDULER_NAME_NODE_ENDPOINT));
  String userName=CorePlugin.getDefault().getPreferenceStore().getString(ITalendCorePrefConstants.OOZIE_SCHEDULER_USER_NAME);
  if (userName == null || "String_Node_Str".equals(userName)) {
    try {
      fs=org.apache.hadoop.fs.FileSystem.get(config);
    }
 catch (    IOException e) {
      throw new OozieJobDeployException("String_Node_Str",e);
    }
  }
 else {
    try {
      fs=org.apache.hadoop.fs.FileSystem.get(new java.net.URI(config.get("String_Node_Str")),config,userName);
    }
 catch (    IOException e) {
      throw new OozieJobDeployException("String_Node_Str",e);
    }
catch (    InterruptedException e) {
      throw new OozieJobDeployException("String_Node_Str",e);
    }
catch (    URISyntaxException e) {
      throw new OozieJobDeployException("String_Node_Str",e);
    }
  }
  try {
    fs.mkdirs(new org.apache.hadoop.fs.Path(appPathOnHDFSParent + "String_Node_Str"));
  }
 catch (  IOException e) {
    throw new OozieJobDeployException("String_Node_Str",e);
  }
  File unzipDirFile=new File(unzipDir);
  File[] files=unzipDirFile.listFiles(new FileFilter(){
    @Override public boolean accept(    File file){
      if (file != null && file.isDirectory()) {
        return true;
      }
      return false;
    }
  }
);
  if (files != null && files.length > 0) {
    for (int i=0; i < files.length; i++) {
      File file=files[i];
      File[] tempFiles=file.listFiles();
      if (tempFiles != null && tempFiles.length > 0) {
        for (int j=0; j < tempFiles.length; j++) {
          File tempFile=tempFiles[j];
          org.apache.hadoop.fs.Path srcPath=new org.apache.hadoop.fs.Path(tempFile.getAbsolutePath());
          org.apache.hadoop.fs.Path distpath=new org.apache.hadoop.fs.Path(appPathOnHDFSParent + "String_Node_Str");
          try {
            fs.copyFromLocalFile(false,true,srcPath,distpath);
          }
 catch (          IOException e) {
            throw new OozieJobDeployException("String_Node_Str",e);
          }
        }
      }
    }
  }
}

Fixed version (ground truth):
private static void uploadProcess(IProcess2 process,String unzipDir) throws OozieJobDeployException {
  String appPathOnHDFSParent=(String)process.getElementParameter("String_Node_Str").getValue();
  org.apache.hadoop.fs.FileSystem fs=null;
  org.apache.hadoop.conf.Configuration config=new org.apache.hadoop.conf.Configuration();
  config.set("String_Node_Str",CorePlugin.getDefault().getPreferenceStore().getString(ITalendCorePrefConstants.OOZIE_SHCEDULER_NAME_NODE_ENDPOINT));
  String userName=CorePlugin.getDefault().getPreferenceStore().getString(ITalendCorePrefConstants.OOZIE_SCHEDULER_USER_NAME);
  if (StringUtils.isEmpty(userName)) {
    try {
      fs=org.apache.hadoop.fs.FileSystem.get(config);
    }
 catch (    IOException e) {
      throw new OozieJobDeployException("String_Node_Str",e);
    }
  }
 else {
    try {
      fs=org.apache.hadoop.fs.FileSystem.get(new java.net.URI(config.get("String_Node_Str")),config,userName);
    }
 catch (    IOException e) {
      throw new OozieJobDeployException("String_Node_Str" + userName + "String_Node_Str",e);
    }
catch (    InterruptedException e) {
      throw new OozieJobDeployException("String_Node_Str",e);
    }
catch (    URISyntaxException e) {
      throw new OozieJobDeployException("String_Node_Str",e);
    }
  }
  try {
    if (fs.exists(new org.apache.hadoop.fs.Path(appPathOnHDFSParent + "String_Node_Str"))) {
      fs.delete(new org.apache.hadoop.fs.Path(appPathOnHDFSParent + "String_Node_Str"),true);
    }
    fs.mkdirs(new org.apache.hadoop.fs.Path(appPathOnHDFSParent + "String_Node_Str"));
  }
 catch (  IOException e) {
    throw new OozieJobDeployException("String_Node_Str",e);
  }
  File unzipDirFile=new File(unzipDir);
  File[] files=unzipDirFile.listFiles(new FileFilter(){
    @Override public boolean accept(    File file){
      if (file != null && file.isDirectory()) {
        return true;
      }
      return false;
    }
  }
);
  if (files != null && files.length > 0) {
    for (int i=0; i < files.length; i++) {
      File file=files[i];
      File[] tempFiles=file.listFiles();
      if (tempFiles != null && tempFiles.length > 0) {
        for (int j=0; j < tempFiles.length; j++) {
          File tempFile=tempFiles[j];
          org.apache.hadoop.fs.Path srcPath=new org.apache.hadoop.fs.Path(tempFile.getAbsolutePath());
          org.apache.hadoop.fs.Path distpath=new org.apache.hadoop.fs.Path(appPathOnHDFSParent + "String_Node_Str");
          try {
            fs.copyFromLocalFile(false,true,srcPath,distpath);
          }
 catch (          IOException e) {
            throw new OozieJobDeployException("String_Node_Str",e);
          }
        }
      }
    }
  }
}