Comment 9 for bug 1254555

Revision history for this message
yong sheng gong (gongysh) wrote :

<salv-orlando> I think enikanorov was working on this. The reason is that context.is_admin uses a policy to validate what it means to be an admin. To do so it loads the policy engine. The policy engine has also a rule for allowing everyone to see external networks. This rule needs to evaluate the router:external field and verify it matches to True (as a boolean value); to do so it uses the converter which is specified in the RESOURCE_ATTRIBUTE_MAP. The
<salv-orlando> are some cases where this happens before all the extensions are loaded, and this would lead to skipping the conversion, with the result that the policy evaluation fails.
<salv-orlando> This happens usually when a plugin does db operations on initialization
<salv-orlando> there are several ways to fix it, and one would be doing the conversion at every evaluation, which is a bit expensive but perhaps negligible.
<salv-orlando> I don't know if enikanorov is still actively working on this bug. You can ask him.
<salv-orlando> gongysh^