Program: 90133
Project: 90133
Buggy source:
/** 
 * Submit a new job.
 * @param job request object containing job info element for new job
 * @param hsr servlet context
 * @return The submitted job
 * @throws GenieException
 */
@POST @Consumes(MediaType.APPLICATION_JSON) @ApiOperation(value="String_Node_Str",notes="String_Node_Str",response=Job.class) @ApiResponses(value={@ApiResponse(code=HttpURLConnection.HTTP_CREATED,message="String_Node_Str",response=Job.class),@ApiResponse(code=HttpURLConnection.HTTP_BAD_REQUEST,message="String_Node_Str"),@ApiResponse(code=HttpURLConnection.HTTP_CONFLICT,message="String_Node_Str"),@ApiResponse(code=HttpURLConnection.HTTP_PRECON_FAILED,message="String_Node_Str"),@ApiResponse(code=HttpURLConnection.HTTP_INTERNAL_ERROR,message="String_Node_Str")}) public Response submitJob(@ApiParam(value="String_Node_Str",required=true) final Job job,@ApiParam(value="String_Node_Str",required=true) @Context final HttpServletRequest hsr) throws GenieException {
  LOG.info("String_Node_Str" + job);
  if (job == null) {
    throw new GenieException(HttpURLConnection.HTTP_PRECON_FAILED,"String_Node_Str");
  }
  String clientHost=hsr.getHeader("String_Node_Str");
  if (clientHost != null) {
    clientHost=clientHost.split("String_Node_Str")[0];
  }
 else {
    clientHost=hsr.getRemoteAddr();
  }
  if (StringUtils.isBlank(clientHost)) {
    LOG.debug("String_Node_Str" + clientHost);
    job.setClientHost(clientHost);
  }
  final Job createdJob=this.xs.submitJob(job);
  return Response.created(this.uriInfo.getAbsolutePathBuilder().path(createdJob.getId()).build()).entity(createdJob).build();
}

Fixed version (ground truth):
/** 
 * Submit a new job.
 * @param job request object containing job info element for new job
 * @param hsr servlet context
 * @return The submitted job
 * @throws GenieException
 */
@POST @Consumes(MediaType.APPLICATION_JSON) @ApiOperation(value="String_Node_Str",notes="String_Node_Str",response=Job.class) @ApiResponses(value={@ApiResponse(code=HttpURLConnection.HTTP_CREATED,message="String_Node_Str",response=Job.class),@ApiResponse(code=HttpURLConnection.HTTP_BAD_REQUEST,message="String_Node_Str"),@ApiResponse(code=HttpURLConnection.HTTP_CONFLICT,message="String_Node_Str"),@ApiResponse(code=HttpURLConnection.HTTP_PRECON_FAILED,message="String_Node_Str"),@ApiResponse(code=HttpURLConnection.HTTP_INTERNAL_ERROR,message="String_Node_Str")}) public Response submitJob(@ApiParam(value="String_Node_Str",required=true) final Job job,@ApiParam(value="String_Node_Str",required=true) @Context final HttpServletRequest hsr) throws GenieException {
  LOG.info("String_Node_Str" + job);
  if (job == null) {
    throw new GenieException(HttpURLConnection.HTTP_PRECON_FAILED,"String_Node_Str");
  }
  final boolean forwarded=job.isForwarded();
  String clientHost=hsr.getHeader("String_Node_Str");
  if (clientHost != null) {
    clientHost=clientHost.split("String_Node_Str")[0];
  }
 else {
    clientHost=hsr.getRemoteAddr();
  }
  if (StringUtils.isBlank(clientHost)) {
    LOG.debug("String_Node_Str" + clientHost);
    job.setClientHost(clientHost);
  }
  final Job createdJob=this.xs.submitJob(job);
  if (forwarded) {
    return Response.ok().entity(createdJob).build();
  }
 else {
    return Response.created(this.uriInfo.getAbsolutePathBuilder().path(createdJob.getId()).build()).entity(createdJob).build();
  }
}