Program: 83956
Project: 83956
Buggy source:
public synchronized void handle(HttpExchange exchange){
  logger.info("String_Node_Str" + exchange.getLocalAddress().getHostName() + "String_Node_Str"+ exchange.getLocalAddress().getPort()+ "String_Node_Str"+ exchange.getRemoteAddress());
  try {
    String eUri=exchange.getRequestURI().toString();
    if (eUri.contains("String_Node_Str"))     eUri=eUri.substring(0,eUri.indexOf("String_Node_Str"));
    if (!eUri.contains("String_Node_Str")) {
      logger.info("String_Node_Str" + ResourceUtils.translateType(TYPE));
      if (TYPE != ResourceUtils.SYMLINK_RSRC) {
        String URI2=null;
        if (this.URI.endsWith("String_Node_Str"))         URI2=this.URI.substring(0,this.URI.length() - 1);
 else         URI2=this.URI + "String_Node_Str";
        logger.info("String_Node_Str" + this.URI + "String_Node_Str"+ URI2+ "String_Node_Str"+ exchange.getRequestURI());
        String myUri=null;
        if (eUri.contains("String_Node_Str")) {
          myUri=eUri.substring(0,eUri.indexOf("String_Node_Str"));
        }
 else {
          myUri=eUri;
        }
        if ((!myUri.equalsIgnoreCase(this.URI) && !myUri.equalsIgnoreCase(URI2)) || !isActiveResource(this.URI)) {
          sendResponse(exchange,404,null,false,null);
          return;
        }
      }
      if (exchange.getHttpContext() != thisContext && exchange.getHttpContext().getFilters().size() == 0) {
        this.parseParams(exchange);
        thisContext=exchange.getHttpContext();
        thisContext.getFilters().add(this);
        logger.warning("String_Node_Str");
      }
      try {
        String requestMethod=exchange.getRequestMethod();
        if (requestMethod.equalsIgnoreCase("String_Node_Str")) {
          logger.info("String_Node_Str");
          sfsStats.incGet();
          this.get(exchange,false,null);
          return;
        }
 else         if (requestMethod.equalsIgnoreCase("String_Node_Str")) {
          logger.info("String_Node_Str");
          sfsStats.incPut();
          String obj=getPutPostData(exchange);
          this.put(exchange,obj,false,null);
          sfsStats.docReceived(obj);
          return;
        }
 else         if (requestMethod.equalsIgnoreCase("String_Node_Str")) {
          logger.info("String_Node_Str");
          sfsStats.incPost();
          String obj=getPutPostData(exchange);
          this.post(exchange,obj,false,null);
          sfsStats.docReceived(obj);
          return;
        }
 else         if (requestMethod.equalsIgnoreCase("String_Node_Str")) {
          logger.info("String_Node_Str");
          sfsStats.incDelete();
          this.delete(exchange,false,null);
          return;
        }
      }
 catch (      Exception e) {
        logger.log(Level.WARNING,"String_Node_Str",e);
      }
    }
 else {
      if (exchange.getHttpContext() != thisContext && exchange.getHttpContext().getFilters().size() == 0) {
        this.parseParams(exchange);
        thisContext=exchange.getHttpContext();
        thisContext.getFilters().add(this);
      }
      handleRecursiveFSQuery(exchange,false,null);
    }
  }
 catch (  Exception e) {
    logger.log(Level.WARNING,"String_Node_Str",e);
  }
 finally {
    try {
      if (exchange != null) {
        exchange.getRequestBody().close();
        exchange.close();
      }
    }
 catch (    Exception e) {
      logger.log(Level.WARNING,"String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
public synchronized void handle(HttpExchange exchange){
  logger.info("String_Node_Str" + exchange.getLocalAddress().getHostName() + "String_Node_Str"+ exchange.getLocalAddress().getPort()+ "String_Node_Str"+ exchange.getRemoteAddress());
  try {
    String eUri=exchangeJSON.getString("String_Node_Str");
    if (eUri.contains("String_Node_Str"))     eUri=eUri.substring(0,eUri.indexOf("String_Node_Str"));
    if (!eUri.contains("String_Node_Str")) {
      logger.info("String_Node_Str" + ResourceUtils.translateType(TYPE));
      if (TYPE != ResourceUtils.SYMLINK_RSRC) {
        String URI2=null;
        if (this.URI.endsWith("String_Node_Str"))         URI2=this.URI.substring(0,this.URI.length() - 1);
 else         URI2=this.URI + "String_Node_Str";
        logger.info("String_Node_Str" + this.URI + "String_Node_Str"+ URI2+ "String_Node_Str"+ exchangeJSON.getString("String_Node_Str"));
        String myUri=null;
        if (eUri.contains("String_Node_Str")) {
          myUri=eUri.substring(0,eUri.indexOf("String_Node_Str"));
        }
 else {
          myUri=eUri;
        }
        if ((!myUri.equalsIgnoreCase(this.URI) && !myUri.equalsIgnoreCase(URI2)) || !isActiveResource(this.URI)) {
          sendResponse(exchange,404,null,false,null);
          return;
        }
      }
      if (exchange.getHttpContext() != thisContext && exchange.getHttpContext().getFilters().size() == 0) {
        this.parseParams(exchange);
        thisContext=exchange.getHttpContext();
        thisContext.getFilters().add(this);
        logger.warning("String_Node_Str");
      }
      try {
        String requestMethod=exchange.getRequestMethod();
        if (requestMethod.equalsIgnoreCase("String_Node_Str")) {
          logger.info("String_Node_Str");
          sfsStats.incGet();
          this.get(exchange,false,null);
          return;
        }
 else         if (requestMethod.equalsIgnoreCase("String_Node_Str")) {
          logger.info("String_Node_Str");
          sfsStats.incPut();
          String obj=getPutPostData(exchange);
          this.put(exchange,obj,false,null);
          sfsStats.docReceived(obj);
          return;
        }
 else         if (requestMethod.equalsIgnoreCase("String_Node_Str")) {
          logger.info("String_Node_Str");
          sfsStats.incPost();
          String obj=getPutPostData(exchange);
          this.post(exchange,obj,false,null);
          sfsStats.docReceived(obj);
          return;
        }
 else         if (requestMethod.equalsIgnoreCase("String_Node_Str")) {
          logger.info("String_Node_Str");
          sfsStats.incDelete();
          this.delete(exchange,false,null);
          return;
        }
      }
 catch (      Exception e) {
        logger.log(Level.WARNING,"String_Node_Str",e);
      }
    }
 else {
      if (exchange.getHttpContext() != thisContext && exchange.getHttpContext().getFilters().size() == 0) {
        this.parseParams(exchange);
        thisContext=exchange.getHttpContext();
        thisContext.getFilters().add(this);
      }
      logger.info("String_Node_Str" + exchangeJSON.toString());
      handleRecursiveFSQuery(exchange,false,null);
    }
  }
 catch (  Exception e) {
    logger.log(Level.WARNING,"String_Node_Str",e);
  }
 finally {
    try {
      if (exchange != null) {
        exchange.getRequestBody().close();
        exchange.close();
      }
    }
 catch (    Exception e) {
      logger.log(Level.WARNING,"String_Node_Str",e);
    }
  }
}