Program: 47372
Project: 47372
Buggy source:
/** 
 * Get all the blockout jobs in the system <p><b>Example Request:</b><br /> GET /scheduler/blockout/blockoutJobs </p>
 * @return A Response object that contains a list of blockout jobs<pre function="syntax.xml"> &lt;jobs&gt; &lt;job&gt; &lt;groupName&gt;admin&lt;/groupName&gt; &lt;jobId&gt;admin	BlockoutAction	1408457558636&lt;/jobId&gt; &lt;jobName&gt;BlockoutAction&lt;/jobName&gt; &lt;jobParams&gt; &lt;jobParams&gt; &lt;name&gt;TIME_ZONE_PARAM&lt;/name&gt; &lt;value&gt;America/New_York&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;DURATION_PARAM&lt;/name&gt; &lt;value&gt;10080000&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;uiPassParam&lt;/name&gt; &lt;value&gt;DAILY&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;user_locale&lt;/name&gt; &lt;value&gt;en_US&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;ActionAdapterQuartzJob-ActionUser&lt;/name&gt; &lt;value&gt;admin&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;ActionAdapterQuartzJob-ActionClass&lt;/name&gt; &lt;value&gt;org.pentaho.platform.scheduler2.blockout.BlockoutAction&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;lineage-id&lt;/name&gt; &lt;value&gt;0989726c-3247-4864-bc79-8e2a1dc60c58&lt;/value&gt; &lt;/jobParams&gt; &lt;/jobParams&gt; &lt;jobTrigger xsi:type="complexJobTrigger"&gt; &lt;cronString&gt;0 12 10 ? * 2,3,4,5,6 *&lt;/cronString&gt; &lt;duration&gt;10080000&lt;/duration&gt; &lt;startTime&gt;2014-08-19T10:12:00-04:00&lt;/startTime&gt; &lt;uiPassParam&gt;DAILY&lt;/uiPassParam&gt; &lt;dayOfMonthRecurrences /&gt; &lt;dayOfWeekRecurrences&gt; &lt;recurrenceList&gt; &lt;values&gt;2&lt;/values&gt; &lt;values&gt;3&lt;/values&gt; &lt;values&gt;4&lt;/values&gt; &lt;values&gt;5&lt;/values&gt; &lt;values&gt;6&lt;/values&gt; &lt;/recurrenceList&gt; &lt;/dayOfWeekRecurrences&gt; &lt;hourlyRecurrences&gt; &lt;recurrenceList&gt; &lt;values&gt;10&lt;/values&gt; &lt;/recurrenceList&gt; &lt;/hourlyRecurrences&gt; &lt;minuteRecurrences&gt; &lt;recurrenceList&gt; &lt;values&gt;12&lt;/values&gt; &lt;/recurrenceList&gt; &lt;/minuteRecurrences&gt; &lt;monthlyRecurrences /&gt; &lt;secondRecurrences&gt; &lt;recurrenceList&gt; &lt;values&gt;0&lt;/values&gt; &lt;/recurrenceList&gt; &lt;/secondRecurrences&gt; &lt;yearlyRecurrences /&gt; &lt;/jobTrigger&gt; &lt;nextRun&gt;2014-08-20T10:12:00-04:00&lt;/nextRun&gt; &lt;state&gt;NORMAL&lt;/state&gt; &lt;userName&gt;admin&lt;/userName&gt; &lt;/job&gt; &lt;/jobs&gt; </pre>
 */
@GET @Path("String_Node_Str") @Produces({APPLICATION_JSON,APPLICATION_XML}) @StatusCodes({@ResponseCode(code=200,condition="String_Node_Str")}) public List<Job> getBlockoutJobs(){
  return schedulerService.getBlockOutJobs();
}

Fixed version (ground truth):
/** 
 * Get all the blockout jobs in the system <p><b>Example Request:</b><br /> GET /scheduler/blockout/blockoutJobs </p>
 * @return A Response object that contains a list of blockout jobs<p><b>Example Response:</b></p> <pre function="syntax.xml"> &lt;jobs&gt; &lt;job&gt; &lt;groupName&gt;admin&lt;/groupName&gt; &lt;jobId&gt;admin	BlockoutAction	1408457558636&lt;/jobId&gt; &lt;jobName&gt;BlockoutAction&lt;/jobName&gt; &lt;jobParams&gt; &lt;jobParams&gt; &lt;name&gt;TIME_ZONE_PARAM&lt;/name&gt; &lt;value&gt;America/New_York&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;DURATION_PARAM&lt;/name&gt; &lt;value&gt;10080000&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;uiPassParam&lt;/name&gt; &lt;value&gt;DAILY&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;user_locale&lt;/name&gt; &lt;value&gt;en_US&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;ActionAdapterQuartzJob-ActionUser&lt;/name&gt; &lt;value&gt;admin&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;ActionAdapterQuartzJob-ActionClass&lt;/name&gt; &lt;value&gt;org.pentaho.platform.scheduler2.blockout.BlockoutAction&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;lineage-id&lt;/name&gt; &lt;value&gt;0989726c-3247-4864-bc79-8e2a1dc60c58&lt;/value&gt; &lt;/jobParams&gt; &lt;/jobParams&gt; &lt;jobTrigger xsi:type="complexJobTrigger"&gt; &lt;cronString&gt;0 12 10 ? * 2,3,4,5,6 *&lt;/cronString&gt; &lt;duration&gt;10080000&lt;/duration&gt; &lt;startTime&gt;2014-08-19T10:12:00-04:00&lt;/startTime&gt; &lt;uiPassParam&gt;DAILY&lt;/uiPassParam&gt; &lt;dayOfMonthRecurrences /&gt; &lt;dayOfWeekRecurrences&gt; &lt;recurrenceList&gt; &lt;values&gt;2&lt;/values&gt; &lt;values&gt;3&lt;/values&gt; &lt;values&gt;4&lt;/values&gt; &lt;values&gt;5&lt;/values&gt; &lt;values&gt;6&lt;/values&gt; &lt;/recurrenceList&gt; &lt;/dayOfWeekRecurrences&gt; &lt;hourlyRecurrences&gt; &lt;recurrenceList&gt; &lt;values&gt;10&lt;/values&gt; &lt;/recurrenceList&gt; &lt;/hourlyRecurrences&gt; &lt;minuteRecurrences&gt; &lt;recurrenceList&gt; &lt;values&gt;12&lt;/values&gt; &lt;/recurrenceList&gt; &lt;/minuteRecurrences&gt; &lt;monthlyRecurrences /&gt; &lt;secondRecurrences&gt; &lt;recurrenceList&gt; &lt;values&gt;0&lt;/values&gt; &lt;/recurrenceList&gt; &lt;/secondRecurrences&gt; &lt;yearlyRecurrences /&gt; &lt;/jobTrigger&gt; &lt;nextRun&gt;2014-08-20T10:12:00-04:00&lt;/nextRun&gt; &lt;state&gt;NORMAL&lt;/state&gt; &lt;userName&gt;admin&lt;/userName&gt; &lt;/job&gt; &lt;/jobs&gt; </pre>
 */
@GET @Path("String_Node_Str") @Produces({APPLICATION_JSON,APPLICATION_XML}) @StatusCodes({@ResponseCode(code=200,condition="String_Node_Str")}) public List<Job> getBlockoutJobs(){
  return schedulerService.getBlockOutJobs();
}