#5463 Caching of ipaconfig does not work in framework
Closed: Fixed None Opened 8 years ago 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:

  • 7f0d018 fix caching in get_ipa_config

ipa-4-2:

  • 0ca4c1d fix caching in get_ipa_config

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

7 years ago

Login to comment on this ticket.

Metadata