Program: 47377
Project: 47377
Buggy source:
/** 
 * Check the status of the selected blockout schedule. <p><b>Example Request:</b><br /> POST api/scheduler/blockout/blockstatus </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 a Response object which contains a BlockStatusProxy which contains totallyBlocked and partiallyBlocked flags<pre function="syntax.xml"> &lt;blockStatusProxy&gt; &lt;partiallyBlocked&gt;true&lt;/partiallyBlocked&gt; &lt;totallyBlocked&gt;true&lt;/totallyBlocked&gt; &lt;/blockStatusProxy&gt; </pre>
 */
@POST @Path("String_Node_Str") @Consumes({APPLICATION_JSON,APPLICATION_XML}) @Produces({APPLICATION_JSON,APPLICATION_XML}) @StatusCodes({@ResponseCode(code=200,condition="String_Node_Str"),@ResponseCode(code=401,condition="String_Node_Str")}) public Response getBlockStatus(JobScheduleRequest jobScheduleRequest){
  try {
    BlockStatusProxy blockStatusProxy=schedulerService.getBlockStatus(jobScheduleRequest);
    return buildOkResponse(blockStatusProxy);
  }
 catch (  SchedulerException e) {
    return buildStatusResponse(Status.UNAUTHORIZED);
  }
}

Fixed version (ground truth):
/** 
 * Check the status of the selected blockout schedule. <p><b>Example Request:</b><br /> POST api/scheduler/blockout/blockstatus </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 a Response object which contains a BlockStatusProxy which contains totallyBlocked and partiallyBlocked flags<p><b>Example Response:</b></p> <pre function="syntax.xml"> &lt;blockStatusProxy&gt; &lt;partiallyBlocked&gt;true&lt;/partiallyBlocked&gt; &lt;totallyBlocked&gt;true&lt;/totallyBlocked&gt; &lt;/blockStatusProxy&gt; </pre>
 */
@POST @Path("String_Node_Str") @Consumes({APPLICATION_JSON,APPLICATION_XML}) @Produces({APPLICATION_JSON,APPLICATION_XML}) @StatusCodes({@ResponseCode(code=200,condition="String_Node_Str"),@ResponseCode(code=401,condition="String_Node_Str")}) public Response getBlockStatus(JobScheduleRequest jobScheduleRequest){
  try {
    BlockStatusProxy blockStatusProxy=schedulerService.getBlockStatus(jobScheduleRequest);
    return buildOkResponse(blockStatusProxy);
  }
 catch (  SchedulerException e) {
    return buildStatusResponse(Status.UNAUTHORIZED);
  }
}