Program: 47369
Project: 47369
Buggy source:
/** 
 * Update an existing blockout <p><b>Example Request:</b><br /> POST api/scheduler/blockout/update </p>
 * @param jobId The jobId of the blockout we are editing<pre function="syntax.xml"> admin%09BlockoutAction%091408459814192 </pre>
 * @param jobScheduleRequest The payload containing the definition of the blockout<pre function="syntax.xml"> &lt;jobScheduleRequest&gt; &lt;jobName&gt;DAILY-1820438815:admin:7740000&lt;/jobName&gt; &lt;complexJobTrigger&gt; &lt;uiPassParam&gt;DAILY&lt;/uiPassParam&gt; &lt;daysOfWeek&gt;1&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;2&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;3&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;4&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;5&lt;/daysOfWeek&gt; &lt;startTime&gt;2012-01-12T10:51:00.000-04:00&lt;/startTime&gt; &lt;endTime /&gt; &lt;/complexJobTrigger&gt; &lt;inputFile&gt;&lt;/inputFile&gt; &lt;outputFile&gt;&lt;/outputFile&gt; &lt;duration&gt;7740000&lt;/duration&gt; &lt;timeZone&gt;America/New_York&lt;/timeZone&gt; &lt;/jobScheduleRequest&gt; </pre>
 * @return a Response object which contains the ID of the blockout which was created<pre function="syntax.xml"> admin	BlockoutAction	1408473190419 </pre>
 */
@POST @Path("String_Node_Str") @Consumes({APPLICATION_JSON,APPLICATION_XML}) @StatusCodes({@ResponseCode(code=200,condition="String_Node_Str"),@ResponseCode(code=401,condition="String_Node_Str")}) public Response updateBlockout(@QueryParam("String_Node_Str") String jobId,JobScheduleRequest jobScheduleRequest){
  try {
    Job job=schedulerService.updateBlockout(jobId,jobScheduleRequest);
    return buildPlainTextOkResponse(job.getJobId());
  }
 catch (  IOException e) {
    return buildStatusResponse(Status.UNAUTHORIZED);
  }
catch (  SchedulerException e) {
    return buildStatusResponse(Status.UNAUTHORIZED);
  }
catch (  IllegalAccessException e) {
    return buildStatusResponse(Status.UNAUTHORIZED);
  }
}

Fixed version (ground truth):
/** 
 * Update an existing blockout <p><b>Example Request:</b><br /> POST api/scheduler/blockout/update </p>
 * @param jobId The jobId of the blockout we are editing<pre function="syntax.xml"> admin%09BlockoutAction%091408459814192 </pre>
 * @param jobScheduleRequest The payload containing the definition of the blockout<pre function="syntax.xml"> &lt;jobScheduleRequest&gt; &lt;jobName&gt;DAILY-1820438815:admin:7740000&lt;/jobName&gt; &lt;complexJobTrigger&gt; &lt;uiPassParam&gt;DAILY&lt;/uiPassParam&gt; &lt;daysOfWeek&gt;1&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;2&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;3&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;4&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;5&lt;/daysOfWeek&gt; &lt;startTime&gt;2012-01-12T10:51:00.000-04:00&lt;/startTime&gt; &lt;endTime /&gt; &lt;/complexJobTrigger&gt; &lt;inputFile&gt;&lt;/inputFile&gt; &lt;outputFile&gt;&lt;/outputFile&gt; &lt;duration&gt;7740000&lt;/duration&gt; &lt;timeZone&gt;America/New_York&lt;/timeZone&gt; &lt;/jobScheduleRequest&gt; </pre>
 * @return a Response object which contains the ID of the blockout which was created<p><b>Example Response:</b></p> <pre function="syntax.xml"> admin	BlockoutAction	1408473190419 </pre>
 */
@POST @Path("String_Node_Str") @Consumes({APPLICATION_JSON,APPLICATION_XML}) @StatusCodes({@ResponseCode(code=200,condition="String_Node_Str"),@ResponseCode(code=401,condition="String_Node_Str")}) public Response updateBlockout(@QueryParam("String_Node_Str") String jobId,JobScheduleRequest jobScheduleRequest){
  try {
    Job job=schedulerService.updateBlockout(jobId,jobScheduleRequest);
    return buildPlainTextOkResponse(job.getJobId());
  }
 catch (  IOException e) {
    return buildStatusResponse(Status.UNAUTHORIZED);
  }
catch (  SchedulerException e) {
    return buildStatusResponse(Status.UNAUTHORIZED);
  }
catch (  IllegalAccessException e) {
    return buildStatusResponse(Status.UNAUTHORIZED);
  }
}