Program: 45566
Project: 45566
Buggy source:
/** 
 * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
 * @param request servlet request
 * @param response servlet response
 * @throws ServletException if a servlet-specific error occurs
 * @throws IOException if an I/O error occurs
 */
protected void processRequest(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
  ServletContext sc=getServletContext();
  WebContentRepositoryRegistry reg=WebContentRepositoryRegistry.getInstance();
  WebContentRepository wcr=reg.getRepository(sc);
  if (wcr == null) {
    error(request,response,"String_Node_Str" + "String_Node_Str");
    return;
  }
  ContentCollection xAppsCollection=null;
  try {
    ContentCollection sysRoot=wcr.getSystemRoot();
    ContentNode xappsNode=sysRoot.getChild("String_Node_Str");
    if (xappsNode == null) {
      xappsNode=sysRoot.createChild("String_Node_Str",Type.COLLECTION);
    }
    xAppsCollection=(ContentCollection)xappsNode;
  }
 catch (  ContentRepositoryException excp) {
    logger.log(Level.WARNING,"String_Node_Str",excp);
    error(request,response,"String_Node_Str" + "String_Node_Str");
    return;
  }
  try {
    String action=request.getParameter("String_Node_Str");
    if (action != null && action.equalsIgnoreCase("String_Node_Str") == true) {
      handleDelete(request,response,xAppsCollection);
    }
 else     if (action != null && action.equalsIgnoreCase("String_Node_Str") == true) {
      handleAdd(request,response,xAppsCollection);
    }
 else     if (action != null && action.equalsIgnoreCase("String_Node_Str") == true) {
      handleCheck(request,response,xAppsCollection);
    }
    handleBrowse(request,response,xAppsCollection);
  }
 catch (  java.lang.Exception cre) {
    throw new ServletException(cre);
  }
}

Fixed version (ground truth):
/** 
 * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
 * @param request servlet request
 * @param response servlet response
 * @throws ServletException if a servlet-specific error occurs
 * @throws IOException if an I/O error occurs
 */
protected void processRequest(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
  ServletContext sc=getServletContext();
  WebContentRepositoryRegistry reg=WebContentRepositoryRegistry.getInstance();
  WebContentRepository wcr=reg.getRepository(sc);
  if (wcr == null) {
    error(request,response,"String_Node_Str" + "String_Node_Str");
    return;
  }
  ContentCollection xAppsCollection=null;
  try {
    ContentCollection sysRoot=wcr.getSystemRoot();
    ContentNode xappsNode=sysRoot.getChild("String_Node_Str");
    if (xappsNode == null) {
      xappsNode=sysRoot.createChild("String_Node_Str",Type.COLLECTION);
    }
    xAppsCollection=(ContentCollection)xappsNode;
  }
 catch (  ContentRepositoryException excp) {
    logger.log(Level.WARNING,"String_Node_Str",excp);
    error(request,response,"String_Node_Str" + "String_Node_Str");
    return;
  }
  try {
    String action=request.getParameter("String_Node_Str");
    if (action != null && action.equalsIgnoreCase("String_Node_Str") == true) {
      handleDelete(request,response,xAppsCollection);
    }
 else     if (action != null && action.equalsIgnoreCase("String_Node_Str") == true) {
      handleAdd(request,response,xAppsCollection);
    }
 else     if (action != null && action.equalsIgnoreCase("String_Node_Str") == true) {
      handleCheck(request,response,xAppsCollection);
    }
 else {
      handleBrowse(request,response,xAppsCollection);
    }
  }
 catch (  java.lang.Exception cre) {
    throw new ServletException(cre);
  }
}