#5463 Caching of ipaconfig does not work in framework
Closed: Fixed Opened by mbasti.

Method: get_ipa_config() in ldap2.py does not work as expected.
The ipaconfig values are not cached and method always asks directly LDAP server.

The issues is that the is operator return false even if the connection is the same as was before.

        try:
            config_entry = getattr(context, 'config_entry')
            if config_entry.conn is self.conn:
                return config_entry
        except AttributeError:
            # Not in our context yet
            pass

Details are also here: http://www.redhat.com/archives/freeipa-devel/2015-November/msg00238.html


master:

  • 7f0d018c66da1fe2adedd45aa9f5a63c913e4527 fix caching in get_ipa_config

ipa-4-2:

  • 0ca4c1db3ee6d9366f447d0d704fa56d98e366b4 fix caching in get_ipa_config

Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1283748

Metadata Update from @mbasti:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.2.4

Metadata