Skip to content

BUG: Provider event handlers are disappearing #1919

Closed

Description

@man85

There are some event handlers:

...
        val uncheckedClient=openFeatureAPI.getClient(UNCHECKED_DOMAIN)
        val checkedClient=openFeatureAPI.client
...
        uncheckedClient.onProviderConfigurationChanged { eventDetails: EventDetails ->
            uncheckedListeners.forEach { it.onChanged(eventDetails) }
        }
        checkedClient.onProviderConfigurationChanged { eventDetails: EventDetails ->
            checkedListeners.forEach { it.onChanged(eventDetails) }
        }
        uncheckedClient.onProviderReady { eventDetails: EventDetails ->
            uncheckedListeners.forEach { it.onChanged(eventDetails) }
        }
        checkedClient.onProviderReady { eventDetails: EventDetails ->
            checkedListeners.forEach { it.onChanged(eventDetails) }
        }

At some time I noticed that event handler hasn't be invoked.
It was deleted from OpenFeatureAPI.eventSupport after flags were sent to the provider without a domain.
This happens here.
I suppose the EventSupport.getAllDomainNames() should return a copy of keyset.
The same suggestion for ProviderRepository.getAllBoundDomains().

Activity

  1. aepfli commented on Apr 1, 2026

    @aepfli
    Member

    thank you for the report, we will take a look into this. if you feel like you found the culprit already, any contribution is highly appreciated

  2. man85 commented on Apr 2, 2026

    @man85
    ContributorAuthor

    @aepfli Could you grant me access?

    git push origin HEAD
    ERROR: Permission to open-feature/java-sdk.git denied to man85.
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    

    I would like to make a PR

  3. aepfli commented on Apr 2, 2026

    @aepfli
    Member

    Hey, we do not grant everyone push rights to the repository. But the usual flow is a forking https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project

    And you can open a pr from your fork to our main repo.

    If you need help, please let me know.

    All the best

  4. man85 commented on Apr 2, 2026

    @man85
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions