Program: 94120
Project: 94120
Buggy source:
protected void runRequest() throws Exception {
  int code=-1;
  try {
    setupProxies();
    setupAuthentication();
    setupTimeouts();
    URLConnection urlConnection=directoryOrFile.openConnection();
    if (directoryOrFile.getProtocol().equalsIgnoreCase("String_Node_Str")) {
      urlConnection.setUseCaches(false);
    }
    urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
    IURLConnectionModifier connectionModifier=Activator.getDefault().getURLConnectionModifier();
    if (connectionModifier != null) {
      connectionModifier.setSocketFactoryForConnection(urlConnection);
    }
    if (urlConnection instanceof HttpURLConnection) {
      HttpURLConnection httpConnection=(HttpURLConnection)urlConnection;
      httpConnection.setRequestMethod("String_Node_Str");
      httpConnection.connect();
    }
 else {
      InputStream ins=urlConnection.getInputStream();
      ins.close();
    }
    code=getResponseCode(urlConnection);
    if (isHTTP()) {
      if (code == HttpURLConnection.HTTP_OK) {
      }
 else       if (code == HttpURLConnection.HTTP_NOT_FOUND) {
        throw new BrowseFileTransferException(NLS.bind("String_Node_Str",directoryOrFile.toString()),code);
      }
 else       if (code == HttpURLConnection.HTTP_UNAUTHORIZED) {
        throw new BrowseFileTransferException("String_Node_Str",code);
      }
 else       if (code == HttpURLConnection.HTTP_FORBIDDEN) {
        throw new BrowseFileTransferException("String_Node_Str",code);
      }
 else       if (code == HttpURLConnection.HTTP_PROXY_AUTH) {
        throw new BrowseFileTransferException("String_Node_Str",code);
      }
 else {
        throw new BrowseFileTransferException(NLS.bind("String_Node_Str",new Integer(code)),code);
      }
    }
    remoteFiles=new IRemoteFile[1];
    remoteFiles[0]=new URLRemoteFile(urlConnection.getLastModified(),urlConnection.getContentLength(),fileID);
  }
 catch (  final FileNotFoundException e) {
    throw new IncomingFileTransferException(NLS.bind("String_Node_Str",directoryOrFile.toString()),404);
  }
catch (  Exception e) {
    Exception except=(e instanceof BrowseFileTransferException) ? e : new BrowseFileTransferException(NLS.bind("String_Node_Str",directoryOrFile),e,code);
    throw except;
  }
}

Fixed version (ground truth):
protected void runRequest() throws Exception {
  int code=-1;
  try {
    setupProxies();
    setupAuthentication();
    setupTimeouts();
    URLConnection urlConnection=directoryOrFile.openConnection();
    if (directoryOrFile.getProtocol().equalsIgnoreCase("String_Node_Str")) {
      urlConnection.setUseCaches(false);
    }
    urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
    IURLConnectionModifier connectionModifier=Activator.getDefault().getURLConnectionModifier();
    if (connectionModifier != null) {
      connectionModifier.setSocketFactoryForConnection(urlConnection);
    }
    if (urlConnection instanceof HttpURLConnection) {
      HttpURLConnection httpConnection=(HttpURLConnection)urlConnection;
      httpConnection.setRequestMethod("String_Node_Str");
      httpConnection.connect();
    }
 else {
      InputStream ins=urlConnection.getInputStream();
      ins.close();
    }
    code=getResponseCode(urlConnection);
    if (isHTTP()) {
      if (code == HttpURLConnection.HTTP_OK) {
      }
 else       if (code == HttpURLConnection.HTTP_NOT_FOUND) {
        throw new BrowseFileTransferException(NLS.bind("String_Node_Str",directoryOrFile.toString()),code);
      }
 else       if (code == HttpURLConnection.HTTP_UNAUTHORIZED) {
        throw new BrowseFileTransferException("String_Node_Str",code);
      }
 else       if (code == HttpURLConnection.HTTP_FORBIDDEN) {
        throw new BrowseFileTransferException("String_Node_Str",code);
      }
 else       if (code == HttpURLConnection.HTTP_PROXY_AUTH) {
        throw new BrowseFileTransferException("String_Node_Str",code);
      }
 else {
        throw new BrowseFileTransferException(NLS.bind("String_Node_Str",new Integer(code),urlConnection.getHeaderField(0)),code);
      }
    }
    remoteFiles=new IRemoteFile[1];
    remoteFiles[0]=new URLRemoteFile(urlConnection.getLastModified(),urlConnection.getContentLength(),fileID);
  }
 catch (  final FileNotFoundException e) {
    throw new IncomingFileTransferException(NLS.bind("String_Node_Str",directoryOrFile.toString()),404);
  }
catch (  Exception e) {
    Exception except=(e instanceof BrowseFileTransferException) ? e : new BrowseFileTransferException(NLS.bind("String_Node_Str",directoryOrFile),e,code);
    throw except;
  }
}