Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-685

./events api should raise an error if the database session cannot be opened

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.12.9
    • None

    Description

      Current Situation

      • The ./events api is called by JOC to know when a site should be updated.
      • Whenever this web service responses with HTTP code 200 then it is called immediately again for next events.
      • If this web service cannot open a database session then it doesn't send an error message.
        It sends {"events":[]} with HTTP code 200 again and again in rapid repetition and logs only
        No valid session factory available. Can not open hibernate session.

      Desired Behavior

      • ./events api should send a HTTP code 420 with error message if the database session cannot be opened.

      Workaround

      A patch is provided for JOC Cockpit 1.12.7
      See the description how to apply a patch in JOC

      Attachments

        Activity

          People

            oh Oliver Haufe
            oh Oliver Haufe
            Mahendra Patidar Mahendra Patidar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: