Program: 90661
Project: 90661
Buggy source:
/** 
 * Indicates that a portlet resource Serving occured in the current request and calls the processServeResource method of this portlet.
 * @param internalPortletWindow the portlet Window
 * @param request               the servlet request
 * @param response              the servlet response
 * @throws PortletException          if one portlet has trouble fulfillingthe request
 * @throws PortletContainerException if the portlet container implementationhas trouble fulfilling the request
 */
public void doServeResource(PortletWindow portletWindow,HttpServletRequest request,HttpServletResponse response) throws PortletException, IOException, PortletContainerException {
  ensureInitialized();
  InternalPortletWindow internalPortletWindow=new InternalPortletWindowImpl(PortletContextManager.getPortletContext(servletContext,portletWindow.getContextPath()),portletWindow);
  debugWithName("String_Node_Str" + portletWindow.getPortletName());
  InternalResourceRequest resourceRequest=getOptionalContainerServices().getPortletEnvironmentService().createResourceRequest(this,request,response,internalPortletWindow);
  InternalResourceResponse resourceResponse=getOptionalContainerServices().getPortletEnvironmentService().createResourceResponse(this,request,response,internalPortletWindow);
  PortletInvokerService invoker=optionalContainerServices.getPortletInvokerService();
  try {
    ContainerInvocation.setInvocation(this,internalPortletWindow);
    invoker.render(resourceRequest,resourceResponse,internalPortletWindow);
  }
  finally {
    ContainerInvocation.clearInvocation();
  }
  debugWithName("String_Node_Str" + portletWindow.getPortletName());
}

Fixed version (ground truth):
/** 
 * Indicates that a portlet resource Serving occured in the current request and calls the processServeResource method of this portlet.
 * @param internalPortletWindow the portlet Window
 * @param request               the servlet request
 * @param response              the servlet response
 * @throws PortletException          if one portlet has trouble fulfillingthe request
 * @throws PortletContainerException if the portlet container implementationhas trouble fulfilling the request
 */
public void doServeResource(PortletWindow portletWindow,HttpServletRequest request,HttpServletResponse response) throws PortletException, IOException, PortletContainerException {
  ensureInitialized();
  InternalPortletWindow internalPortletWindow=new InternalPortletWindowImpl(PortletContextManager.getPortletContext(servletContext,portletWindow.getContextPath()),portletWindow);
  debugWithName("String_Node_Str" + portletWindow.getPortletName());
  InternalResourceRequest resourceRequest=getOptionalContainerServices().getPortletEnvironmentService().createResourceRequest(this,request,response,internalPortletWindow);
  InternalResourceResponse resourceResponse=getOptionalContainerServices().getPortletEnvironmentService().createResourceResponse(this,request,response,internalPortletWindow);
  PortletInvokerService invoker=optionalContainerServices.getPortletInvokerService();
  try {
    ContainerInvocation.setInvocation(this,internalPortletWindow);
    invoker.serveResource(resourceRequest,resourceResponse,internalPortletWindow);
  }
  finally {
    ContainerInvocation.clearInvocation();
  }
  debugWithName("String_Node_Str" + portletWindow.getPortletName());
}