Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1538

Interceptors delegating chain forwarding to scoped objects cause infinite loop

    XMLWordPrintable

Details

      • setup a basic Interceptor test case
      • inject @ApplicationScoped bean inside Interceptor
      • pass InvocationContext to bean
      • invoke InvocationContext#proceed() from within bean

    Description

      If an interceptor delegates the invocation of the intercepted method (via context.proceeed() or ctx.getMethd(ctx.getTarget(),ctx.getParameters())
      to any scoped bean (e.g. ApplicationScoped), the proxy that handles the bean delegates to the beginning of the interceptor chains, hence invokes the delegating interceptor in what becomes an infinite loop.

      Attachments

        Activity

          People

            rhn-engineering-jharting Jozef Hartinger
            fabio.simeoni Fabio Simeoni (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: