Uploaded image for project: 'Identity Gateway'
  1. Identity Gateway
  2. OPENIG-2752

A route with AmService fails to load if AM is unavailable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.5.0
    • Component/s: OpenAM, WebSocket
    • Labels:
      None
    • Support Ticket IDs:
    • Sprint:
      OpenIG Sprint 134, OpenIG Sprint 135
    • Story Points:
      5

      Description

      If an AmService in a route fails to connect to AM at startup, the route is not loaded and there is no attempt to retry connecting to AM.

      This can make automated deployments difficult if IG is deployed before AM is ready.

       

      Steps to reproduce.

       

      1. Configure AmService as per,

      https://backstage.forgerock.com/docs/ig/6/reference/#cache-evict-example

      2. Shutdown AM.

      3. Start IG. Route will fail to load on startup.

      4. Start AM.

      5. Test the route again.

       

      Expected results

      Route is loaded and IG will be able to handle requests on the route.

       

      Actual results

      No route found for the request.

       

      Workaround.

      Remove the 'agent' and 'sessioncache' settings from the AmService.

      Or

      After AM has started reload the route.

      "touch .openig/config/routes/04-route.json"

       

        Attachments

          Activity

            People

            Assignee:
            guillaume.sauthier Guillaume Sauthier
            Reporter:
            andrew.dunn Andrew Dunn [X] (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: