Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-2619

TenantedAuthorizationFacetFactory should not use Mixin Class to filter evaluators

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M5
    • 2.0.0-M6
    • Ext Sec Secman
    • None

    Description

      InteractionUtils.isUsableResult(FacetHolder, UsabilityContext) is being called for facetHolders of type ObjectActionMixedIn, but these are missing a facet of type TenantedAuthorizationFacetDefault

      In the TenantedAuthorizationFacetFactory the applicationTenancyEvaluator.handles method is being called with the Mixin Class and returns false. Instead it should be called with the type towards which the Mixin is contributing

      https://github.com/apache/isis/blob/53e535fd08e9dae4580fb8de7179b10620c14a69/extensions/security/secman/model/src/main/java/org/apache/isis/extensions/secman/model/facets/TenantedAuthorizationFacetFactory.java#L96

      {{}}

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            mwhesse Martin Hesse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: