1a89fc3 CACHE_REQ: Ensure the domains are updated for "filter" related calls

1 file Authored by fidencio 3 years ago , Committed by lslebodn 3 years ago ,
    CACHE_REQ: Ensure the domains are updated for "filter" related calls
    
    As contacting the infopipe responder on a "filter" related call may lead
    to the situation where the cr_domains' list is not populated yet (as the
    domains and subdomains lists from the data provider are not processed
    yet), let's explicitly call sss_dp_get_domains() for those cases and
    avoid returning a wrong result to the caller.
    
    This situation may happen only because the schedule_get_domains_task(),
    that's called when the infopipe responder is initialized, may take some
    time to run/finish.
    
    While I'm not exactly sure whether it's the best solution to avoid the
    "race", it seems to be sane enough to avoid the issues.
    
    Resolves:
    https://pagure.io/SSSD/sssd/issue/3387
    
    Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
    Reviewed-by: Sumit Bose <sbose@redhat.com>
    Reviewed-by: Pavel Březina <pbrezina@redhat.com>