Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-1505

JobScheduler should not crash if an order with a run time is added to a job chain that does not exist

    XMLWordPrintable

    Details

    • Type: Fix
    • Status: Released (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.9, 1.10
    • Fix Version/s: 1.8.4, 1.9.7, 1.10.1, 1.11
    • Component/s: None
    • Labels:
      None

      Description

      Current situation
      When adding an order with a run time to a job chain that does not exist JobScheduler crashes

      
      
      
      <job  name="job1">
          <script  language="java:javascript">
              <![CDATA[
      function spooler_process(){
      
         run_time = '<run_time ><weekdays ><day  day="1 2 3 4 5 6 7"> <period  single_start="10:00"/> </day></weekdays></run_time>';
      
         var order = spooler.create_order();
         order.run_time.xml=run_time;
         var job_chain = spooler.job_chain("xxx");
         job_chain.add_or_replace_order(order);
      
      
      	return false;
      }
              ]]>
          </script>
      
          <run_time />
      </job>
      

      Desired behaviour
      JobScheduler should not crash when running the job above

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jz Joacim Zschimmer
                Reporter:
                ur Uwe Risse
                Resolver:
                Joacim Zschimmer
                Approver:
                Uwe Risse
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: