Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3606

POL_4007 Problems with mutually exclusive intent checking

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Java SCA Policy
    • 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.

      Attachments

        Activity

          People

            bdaniel Brent Daniel
            bdaniel Brent Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment