Program: 47371
Project: 47371
Buggy source:
/** 
 * Return the information for a specified job <p><b>Example Request:</b><br /> GET api/scheduler/jobInfo?jobId=admin%09PentahoSystemVersionCheck%091408387651641 </p>
 * @param jobId The jobId of the job for which we are requesting information
 * @param asCronString Cron string (Unused)
 * @return A Job object containing the info for the specified job<pre function="syntax.xml"> &lt;job&gt; &lt;jobId&gt;admin	PentahoSystemVersionCheck	1408387651641&lt;/jobId&gt; &lt;jobName&gt;PentahoSystemVersionCheck&lt;/jobName&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.versionchecker.VersionCheckerAction&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;lineage-id&lt;/name&gt; &lt;value&gt;da116fa7-539f-43ca-b6d7-8ce5408c97ce&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;versionRequestFlags&lt;/name&gt; &lt;value&gt;0&lt;/value&gt; &lt;/jobParams&gt; &lt;/jobParams&gt; &lt;jobTrigger xsi:type="simpleJobTrigger"&gt; &lt;duration&gt;-1&lt;/duration&gt; &lt;startTime&gt;2014-08-18T14:47:31.639-04:00&lt;/startTime&gt; &lt;repeatCount&gt;-1&lt;/repeatCount&gt; &lt;repeatInterval&gt;86400&lt;/repeatInterval&gt; &lt;/jobTrigger&gt; &lt;lastRun&gt;2014-08-18T14:47:31.639-04:00&lt;/lastRun&gt; &lt;nextRun&gt;2014-08-19T14:47:31.639-04:00&lt;/nextRun&gt; &lt;state&gt;NORMAL&lt;/state&gt; &lt;userName&gt;admin&lt;/userName&gt; &lt;/job&gt; </pre>
 */
@GET @Path("String_Node_Str") @Produces({APPLICATION_JSON,APPLICATION_XML}) @StatusCodes({@ResponseCode(code=200,condition="String_Node_Str"),@ResponseCode(code=500,condition="String_Node_Str")}) public Job getJob(@QueryParam("String_Node_Str") String jobId,@DefaultValue("String_Node_Str") @QueryParam("String_Node_Str") String asCronString){
  try {
    return schedulerService.getJobInfo(jobId);
  }
 catch (  SchedulerException e) {
    throw new RuntimeException(e);
  }
}

Fixed version (ground truth):
/** 
 * Return the information for a specified job <p><b>Example Request:</b><br /> GET api/scheduler/jobInfo?jobId=admin%09PentahoSystemVersionCheck%091408387651641 </p>
 * @param jobId The jobId of the job for which we are requesting information
 * @param asCronString Cron string (Unused)
 * @return A Job object containing the info for the specified job<p><b>Example Response:</b></p> <pre function="syntax.xml"> &lt;job&gt; &lt;jobId&gt;admin	PentahoSystemVersionCheck	1408387651641&lt;/jobId&gt; &lt;jobName&gt;PentahoSystemVersionCheck&lt;/jobName&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.versionchecker.VersionCheckerAction&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;lineage-id&lt;/name&gt; &lt;value&gt;da116fa7-539f-43ca-b6d7-8ce5408c97ce&lt;/value&gt; &lt;/jobParams&gt; &lt;jobParams&gt; &lt;name&gt;versionRequestFlags&lt;/name&gt; &lt;value&gt;0&lt;/value&gt; &lt;/jobParams&gt; &lt;/jobParams&gt; &lt;jobTrigger xsi:type="simpleJobTrigger"&gt; &lt;duration&gt;-1&lt;/duration&gt; &lt;startTime&gt;2014-08-18T14:47:31.639-04:00&lt;/startTime&gt; &lt;repeatCount&gt;-1&lt;/repeatCount&gt; &lt;repeatInterval&gt;86400&lt;/repeatInterval&gt; &lt;/jobTrigger&gt; &lt;lastRun&gt;2014-08-18T14:47:31.639-04:00&lt;/lastRun&gt; &lt;nextRun&gt;2014-08-19T14:47:31.639-04:00&lt;/nextRun&gt; &lt;state&gt;NORMAL&lt;/state&gt; &lt;userName&gt;admin&lt;/userName&gt; &lt;/job&gt; </pre>
 */
@GET @Path("String_Node_Str") @Produces({APPLICATION_JSON,APPLICATION_XML}) @StatusCodes({@ResponseCode(code=200,condition="String_Node_Str"),@ResponseCode(code=500,condition="String_Node_Str")}) public Job getJob(@QueryParam("String_Node_Str") String jobId,@DefaultValue("String_Node_Str") @QueryParam("String_Node_Str") String asCronString){
  try {
    return schedulerService.getJobInfo(jobId);
  }
 catch (  SchedulerException e) {
    throw new RuntimeException(e);
  }
}