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

Global decorators declared in a route cannot refer to decorators declared in the same route

    XMLWordPrintable

Details

    Description

      Does the application of the globalDecorators in a route not see the heap of the route the decorators are being applied to ?

      In

      org.forgerock.openig.decoration.global.GlobalDecorator#decorate
      

      the

      Heap heap = context.getHeap();
      

      does not seem to see an updated capture decorator from the route heap I have created, it seems to be using the default one.

      For example:

      {
        "name": "docs",
        "baseURI": "http://localhost:8080|http://localhost:8080/",
        "condition": "${matches(request.uri.path, '^/docs')}",
        "heap": [
          {
            "name": "capture",
            "type": "CaptureDecorator",
            "config": {
              "captureEntity": true,
              "captureContext": true
            }
          }
        ],
        "globalDecorators": {
          "capture": "all"
        },
        "handler": "ReverseProxyHandler"
      }
      

       

      Attachments

        Activity

          People

            guillaume.sauthier Guillaume Sauthier
            guillaume.sauthier Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: