Program: 166411
Project: 166411
Buggy source:
@Override public void commence(HttpServletRequest request,HttpServletResponse response,AuthenticationException authException) throws IOException, ServletException {
  HttpSession httpSession=request.getSession();
  String ajaxRequestHeader=request.getHeader("String_Node_Str");
  if (logger.isDebugEnabled()) {
    logger.debug("String_Node_Str" + ajaxRequestHeader);
  }
  String requestURL=(request.getRequestURL() != null) ? request.getRequestURL().toString() : "String_Node_Str";
  String servletPath=PropertiesUtil.getProperty("String_Node_Str","String_Node_Str");
  String reqServletPath=configUtil.getWebAppRootURL() + "String_Node_Str" + servletPath;
  response.setContentType("String_Node_Str");
  response.setHeader("String_Node_Str","String_Node_Str");
  Date curentDate=new Date();
  Long currentDateInMillis=(long)(((((curentDate.getHours() * 60) + curentDate.getMinutes()) * 60) + curentDate.getSeconds()) * 1000);
  if (httpSession.getMaxInactiveInterval() * 60000 >= (currentDateInMillis - httpSession.getLastAccessedTime())) {
    ajaxRequestHeader=null;
    VXResponse vXResponse=new VXResponse();
    vXResponse.setStatusCode(SC_AUTHENTICATION_TIMEOUT);
    vXResponse.setMsgDesc("String_Node_Str");
    response.setStatus(SC_AUTHENTICATION_TIMEOUT);
    response.getWriter().write(jsonUtil.writeObjectAsString(vXResponse));
  }
 else {
    try {
      VXResponse vXResponse=new VXResponse();
      vXResponse.setStatusCode(HttpServletResponse.SC_UNAUTHORIZED);
      vXResponse.setMsgDesc("String_Node_Str");
      response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
      response.getWriter().write(jsonUtil.writeObjectAsString(vXResponse));
    }
 catch (    IOException e) {
      logger.info("String_Node_Str");
    }
  }
  if (ajaxRequestHeader != null && ajaxRequestHeader.equalsIgnoreCase("String_Node_Str")) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + ajaxReturnCode + "String_Node_Str"+ request.getRequestURI());
    }
    response.sendError(ajaxReturnCode,"String_Node_Str");
  }
 else   if (!(requestURL.startsWith(reqServletPath))) {
    super.commence(request,response,authException);
  }
}

Fixed version (ground truth):
@Override public void commence(HttpServletRequest request,HttpServletResponse response,AuthenticationException authException) throws IOException, ServletException {
  String ajaxRequestHeader=request.getHeader("String_Node_Str");
  if (logger.isDebugEnabled()) {
    logger.debug("String_Node_Str" + ajaxRequestHeader);
  }
  String requestURL=(request.getRequestURL() != null) ? request.getRequestURL().toString() : "String_Node_Str";
  String servletPath=PropertiesUtil.getProperty("String_Node_Str","String_Node_Str");
  String reqServletPath=configUtil.getWebAppRootURL() + "String_Node_Str" + servletPath;
  if ("String_Node_Str".equals(ajaxRequestHeader)) {
    try {
      VXResponse vXResponse=new VXResponse();
      vXResponse.setStatusCode(SC_AUTHENTICATION_TIMEOUT);
      vXResponse.setMsgDesc("String_Node_Str");
      response.setStatus(SC_AUTHENTICATION_TIMEOUT);
      response.getWriter().write(jsonUtil.writeObjectAsString(vXResponse));
    }
 catch (    IOException e) {
      logger.info("String_Node_Str");
    }
    return;
  }
 else {
    try {
      VXResponse vXResponse=new VXResponse();
      vXResponse.setStatusCode(HttpServletResponse.SC_UNAUTHORIZED);
      vXResponse.setMsgDesc("String_Node_Str");
      response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
      response.getWriter().write(jsonUtil.writeObjectAsString(vXResponse));
    }
 catch (    IOException e) {
      logger.info("String_Node_Str");
    }
  }
  if (ajaxRequestHeader != null && ajaxRequestHeader.equalsIgnoreCase("String_Node_Str")) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + ajaxReturnCode + "String_Node_Str"+ request.getRequestURI());
    }
    response.sendError(ajaxReturnCode,"String_Node_Str");
  }
 else   if (!(requestURL.startsWith(reqServletPath))) {
    super.commence(request,response,authException);
  }
}