Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
POL_4007 specifies two mutually exclusive intents at the Composite level. The intents are constrained to sca:binding, so we should only be checking for exclusivity at the binding level. Right now, we are checking (and failing) the intents in this test case at the Component level.
There is some code in ComponentPolicyBuilderImpl.removeConstrainedIntents() that attempts to remove intents from any policy subject to which they do not apply. However, it does this based on the ExtensionType for the subject, which seems to be null for all SCA constructs other than bindings and implementations. It looks like it may be null for the default binding as well.