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

    Details

    • Type: Fix Fix
    • Status: Released (View Workflow)
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.12.9
    • Component/s: None
    • Labels:

      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Oliver Haufe
            Reporter:
            Oliver Haufe
            Approver:
            Mahendra Patidar
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: