Program: 45587
Project: 45587
Buggy source:
/** 
 * Returns the JAXB XML serialization of the cell directory given the name of the root WFS (without the -wfs extension) and the path of the cell within the WFS (without any -wld or -wlc.xml extensions). Returns the XML via an HTTP GET request.
 * @param wfsName The name of the WFS root (no -wfs extension)
 * @param path The relative path of the file (no -wld, -wlc.xml extensions)
 * @return The XML serialization of the cell setup information via HTTP GET.
 */
@GET @Produces("String_Node_Str") public Response getCellResource(@PathParam("String_Node_Str") String wfsName,@PathParam("String_Node_Str") String path){
  Logger logger=WFSManager.getLogger();
  WFSManager wfsm=WFSManager.getWFSManager();
  WFS wfs=wfsm.getWFS(wfsName);
  if (wfs == null) {
    logger.warning("String_Node_Str" + wfsName);
    ResponseBuilder rb=Response.status(Response.Status.BAD_REQUEST);
    return rb.build();
  }
  WFSCellDirectory dir=wfs.getRootDirectory();
  if (dir == null) {
    logger.warning("String_Node_Str" + wfsName);
    ResponseBuilder rb=Response.status(Response.Status.BAD_REQUEST);
    return rb.build();
  }
  String paths[]=new String[0];
  if (path.compareTo("String_Node_Str") != 0) {
    paths=path.split("String_Node_Str");
  }
  for (int i=0; i < paths.length; i++) {
    WFSCell cell=dir.getCellByName(paths[i]);
    if (cell == null) {
      logger.info("String_Node_Str" + path);
      ResponseBuilder rb=Response.status(Response.Status.BAD_REQUEST);
      return rb.build();
    }
    if ((dir=cell.getCellDirectory()) == null) {
      ResponseBuilder rb=Response.status(Response.Status.BAD_REQUEST);
      return rb.build();
    }
  }
  String names[]=dir.getCellNames();
  if (names == null) {
    logger.info("String_Node_Str" + path);
    ResponseBuilder rb=Response.status(Response.Status.BAD_REQUEST);
    return rb.build();
  }
  LinkedList<Cell> list=new LinkedList<Cell>();
  for (  String name : names) {
    WFSCell cell=dir.getCellByName(name);
    if (cell == null) {
      logger.info("String_Node_Str" + name);
      continue;
    }
    list.add(new Cell(name,cell.getLastModified()));
  }
  Cell[] childs=list.toArray(new Cell[]{});
  CellList children=new CellList(path,childs);
  try {
    StringWriter sw=new StringWriter();
    children.encode(sw);
    ResponseBuilder rb=Response.ok(sw.toString());
    return rb.build();
  }
 catch (  JAXBException excp) {
    logger.info("String_Node_Str" + path + "String_Node_Str"+ excp.toString());
    ResponseBuilder rb=Response.status(Response.Status.BAD_REQUEST);
    return rb.build();
  }
}

Fixed version (ground truth):
/** 
 * Returns the JAXB XML serialization of the cell directory given the name of the root WFS (without the -wfs extension) and the path of the cell within the WFS (without any -wld or -wlc.xml extensions). Returns the XML via an HTTP GET request.
 * @param wfsName The name of the WFS root (no -wfs extension)
 * @param path The relative path of the file (no -wld, -wlc.xml extensions)
 * @return The XML serialization of the cell setup information via HTTP GET.
 */
@GET @Produces({"String_Node_Str","String_Node_Str","String_Node_Str"}) public Response getCellResource(@PathParam("String_Node_Str") String wfsName,@PathParam("String_Node_Str") String path){
  LOGGER.fine("String_Node_Str" + wfsName + "String_Node_Str"+ path);
  WFS wfs=WFSManager.getWFSManager().getWFS(wfsName);
  if (wfs == null) {
    LOGGER.warning("String_Node_Str" + wfsName);
    return Response.status(Response.Status.BAD_REQUEST).build();
  }
  WFSCellDirectory dir=wfs.getRootDirectory();
  if (dir == null) {
    LOGGER.warning("String_Node_Str" + wfsName);
    return Response.status(Response.Status.BAD_REQUEST).build();
  }
  String paths[]=new String[0];
  if (path.compareTo("String_Node_Str") != 0) {
    paths=path.split("String_Node_Str");
  }
  for (int i=0; i < paths.length; i++) {
    WFSCell cell=dir.getCellByName(paths[i]);
    if (cell == null) {
      LOGGER.warning("String_Node_Str" + path);
      return Response.status(Response.Status.BAD_REQUEST).build();
    }
    dir=cell.getCellDirectory();
    if (dir == null && i < paths.length - 1) {
      LOGGER.warning("String_Node_Str" + path);
      return Response.status(Response.Status.BAD_REQUEST).build();
    }
 else     if (dir == null) {
      LOGGER.fine("String_Node_Str" + path + "String_Node_Str");
      CellList children=new CellList(path,new Cell[]{});
      return Response.ok(children).build();
    }
  }
  String names[]=dir.getCellNames();
  if (names == null) {
    LOGGER.fine("String_Node_Str" + path + "String_Node_Str");
    CellList children=new CellList(path,new Cell[]{});
    return Response.ok(children).build();
  }
  LOGGER.fine("String_Node_Str" + path + "String_Node_Str"+ names.length);
  LinkedList<Cell> list=new LinkedList<Cell>();
  for (  String name : names) {
    WFSCell cell=dir.getCellByName(name);
    if (cell == null) {
      LOGGER.warning("String_Node_Str" + name);
      continue;
    }
    LOGGER.fine("String_Node_Str" + name + "String_Node_Str"+ path);
    list.add(new Cell(name,cell.getLastModified()));
  }
  Cell[] childs=list.toArray(new Cell[]{});
  LOGGER.fine("String_Node_Str" + path + "String_Node_Str"+ childs);
  CellList children=new CellList(path,childs);
  return Response.ok(children).build();
}