Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-219

Sentry Cache Backend Provider initialization does not work as expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.4.0
    • None
    • None

    Description

      Currently, the usage is meant to be:

      1. Create a ProviderBackend
      2. Create a ProviderBackendContext and call setHandle()
      3. Call providerBackend.initialize(providerContext);
      4. Create a SimpleDbPolicyEngine and pass the "initialized()" provider backend.

      However, creating a SimpleDbPolicyEngine will creates a new ProviderBackendContext in the ctor and calls ProviderBackend.initialize() effectively wiping out the handle that was set previously. The workaround is to call initialize() on the ProviderBackend again, after creating the policy engine.
      Perhaps, initialize() can be a no-op if it has already been called?

      Attachments

        1. SENTRY-219.patch
          1 kB
          Lenni Kuff

        Activity

          People

            lskuff Lenni Kuff
            lskuff Lenni Kuff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: