commit 34d6e58d15c80e1b419c325dcf13f3445a0c0e8b
Author: Tim Hinrichs <email address hidden>
Date: Mon Mar 7 17:35:50 2016 -0800
Reject rules with column refs on non-datasources
Previously, the policy engine would accept rules that had
column references on tables in policies that were not
datasource policies and disable them. Unfortunately,
there was no way to enable those same rules because
there is no way to set the schema other than for
datasource policies.
This change throws an exception when someone tries
to insert a rule that has a column reference
for a table within a non-datasource policy.
Also, fixed bug where eliminate_column_references
for Literal and Rule were not fully polymorphic.
Literal and Rule expected different arguments, but
the callers were providing the same arguments.
Reviewed: https:/ /review. openstack. org/289650 /git.openstack. org/cgit/ openstack/ congress/ commit/ ?id=34d6e58d15c 80e1b419c325dcf 13f3445a0c0e8b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 34d6e58d15c80e1 b419c325dcf13f3 445a0c0e8b
Author: Tim Hinrichs <email address hidden>
Date: Mon Mar 7 17:35:50 2016 -0800
Reject rules with column refs on non-datasources
Previously, the policy engine would accept rules that had
column references on tables in policies that were not
datasource policies and disable them. Unfortunately,
there was no way to enable those same rules because
there is no way to set the schema other than for
datasource policies.
This change throws an exception when someone tries
to insert a rule that has a column reference
for a table within a non-datasource policy.
Also, fixed bug where eliminate_ column_ references
for Literal and Rule were not fully polymorphic.
Literal and Rule expected different arguments, but
the callers were providing the same arguments.
Change-Id: Ia0f1a9980befb0 189d5727dfcfaca d376fab94fe Bug:#1553433
Closes-