Program: 52542
Project: 52542
Buggy source:
protected void doDSPost(Context context,HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException {
  String contentType=request.getContentType();
  if (contentType != null && contentType.indexOf("String_Node_Str") != -1) {
    processUploadLogo(context,request,response);
    return;
  }
  int action=UIUtil.getIntParameter(request,"String_Node_Str");
  Community community=Community.find(context,UIUtil.getIntParameter(request,"String_Node_Str"));
  Collection collection=Collection.find(context,UIUtil.getIntParameter(request,"String_Node_Str"));
  request.setAttribute("String_Node_Str",community);
  request.setAttribute("String_Node_Str",collection);
  if (request.getParameter("String_Node_Str") != null) {
    showControls(context,request,response);
    return;
  }
switch (action) {
case START_EDIT_COMMUNITY:
    JSPManager.showJSP(request,response,"String_Node_Str");
  break;
case START_DELETE_COMMUNITY:
JSPManager.showJSP(request,response,"String_Node_Str");
break;
case START_CREATE_COMMUNITY:
JSPManager.showJSP(request,response,"String_Node_Str");
break;
case START_EDIT_COLLECTION:
JSPManager.showJSP(request,response,"String_Node_Str");
break;
case START_DELETE_COLLECTION:
JSPManager.showJSP(request,response,"String_Node_Str");
break;
case START_CREATE_COLLECTION:
JSPManager.showJSP(request,response,"String_Node_Str");
break;
case CONFIRM_EDIT_COMMUNITY:
processConfirmEditCommunity(context,request,response,community);
break;
case CONFIRM_DELETE_COMMUNITY:
community.delete();
showControls(context,request,response);
context.complete();
break;
case CONFIRM_EDIT_COLLECTION:
processConfirmEditCollection(context,request,response,community,collection);
break;
case CONFIRM_DELETE_COLLECTION:
community.removeCollection(collection);
showControls(context,request,response);
context.complete();
break;
default :
log.warn(LogManager.getHeader(context,"String_Node_Str",UIUtil.getRequestLogInfo(request)));
JSPManager.showIntegrityError(request,response);
}
}

Fixed version (ground truth):
protected void doDSPost(Context context,HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException {
  String contentType=request.getContentType();
  if (contentType != null && contentType.indexOf("String_Node_Str") != -1) {
    processUploadLogo(context,request,response);
    return;
  }
  int action=UIUtil.getIntParameter(request,"String_Node_Str");
  Community community=Community.find(context,UIUtil.getIntParameter(request,"String_Node_Str"));
  Collection collection=Collection.find(context,UIUtil.getIntParameter(request,"String_Node_Str"));
  request.setAttribute("String_Node_Str",community);
  request.setAttribute("String_Node_Str",collection);
  if (request.getParameter("String_Node_Str") != null) {
    showControls(context,request,response);
    return;
  }
switch (action) {
case START_EDIT_COMMUNITY:
    JSPManager.showJSP(request,response,"String_Node_Str");
  break;
case START_DELETE_COMMUNITY:
JSPManager.showJSP(request,response,"String_Node_Str");
break;
case START_CREATE_COMMUNITY:
JSPManager.showJSP(request,response,"String_Node_Str");
break;
case START_EDIT_COLLECTION:
JSPManager.showJSP(request,response,"String_Node_Str");
break;
case START_DELETE_COLLECTION:
JSPManager.showJSP(request,response,"String_Node_Str");
break;
case START_CREATE_COLLECTION:
response.sendRedirect(response.encodeRedirectURL(request.getContextPath() + "String_Node_Str" + community.getID()));
break;
case CONFIRM_EDIT_COMMUNITY:
processConfirmEditCommunity(context,request,response,community);
break;
case CONFIRM_DELETE_COMMUNITY:
community.delete();
showControls(context,request,response);
context.complete();
break;
case CONFIRM_EDIT_COLLECTION:
processConfirmEditCollection(context,request,response,community,collection);
break;
case CONFIRM_DELETE_COLLECTION:
community.removeCollection(collection);
showControls(context,request,response);
context.complete();
break;
default :
log.warn(LogManager.getHeader(context,"String_Node_Str",UIUtil.getRequestLogInfo(request)));
JSPManager.showIntegrityError(request,response);
}
}