Program: 47375
Project: 47375
Buggy source:
/** 
 * Checks if the selected blockout schedule will be fired <p><b>Example Request:</b><br /> POST api/scheduler/blockout/willFire </p>
 * @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 true or false indicating whether or not the blockout will fire<pre function="syntax.xml"> true </pre>
 */
@POST @Path("String_Node_Str") @Consumes({APPLICATION_JSON,APPLICATION_XML}) @Produces({TEXT_PLAIN}) @StatusCodes({@ResponseCode(code=200,condition="String_Node_Str"),@ResponseCode(code=500,condition="String_Node_Str")}) public Response blockoutWillFire(JobScheduleRequest jobScheduleRequest){
  Boolean willFire;
  try {
    willFire=schedulerService.willFire(convertScheduleRequestToJobTrigger(jobScheduleRequest));
  }
 catch (  UnifiedRepositoryException e) {
    return buildServerErrorResponse(e);
  }
catch (  SchedulerException e) {
    return buildServerErrorResponse(e);
  }
  return buildOkResponse(willFire.toString());
}

Fixed version (ground truth):
/** 
 * Checks if the selected blockout schedule will be fired <p><b>Example Request:</b><br /> POST api/scheduler/blockout/willFire </p>
 * @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 true or false indicating whether or not the blockout will fire<p><b>Example Response:</b></p> <pre function="syntax.xml"> true </pre>
 */
@POST @Path("String_Node_Str") @Consumes({APPLICATION_JSON,APPLICATION_XML}) @Produces({TEXT_PLAIN}) @StatusCodes({@ResponseCode(code=200,condition="String_Node_Str"),@ResponseCode(code=500,condition="String_Node_Str")}) public Response blockoutWillFire(JobScheduleRequest jobScheduleRequest){
  Boolean willFire;
  try {
    willFire=schedulerService.willFire(convertScheduleRequestToJobTrigger(jobScheduleRequest));
  }
 catch (  UnifiedRepositoryException e) {
    return buildServerErrorResponse(e);
  }
catch (  SchedulerException e) {
    return buildServerErrorResponse(e);
  }
  return buildOkResponse(willFire.toString());
}